public class UMLSService extends Object implements ExternalConceptService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
UMLSService() |
| Modifier and Type | Method and Description |
|---|---|
List<Concept> |
getConcepts(String term) |
List<Concept> |
getConceptsByURIWithSparql(String uri) |
protected String |
getJsonValue(net.sf.json.JSONObject obj,
String key)
Get a string from a json object or an empty string if there is no value for the given key
|
List<Concept> |
processResults(String term) |
protected String |
stripConceptId(String uri) |
public List<Concept> getConcepts(String term) throws Exception
getConcepts in interface ExternalConceptServiceterm - TermExceptionpublic List<Concept> processResults(String term) throws Exception
processResults in interface ExternalConceptServiceterm - TermExceptionpublic List<Concept> getConceptsByURIWithSparql(String uri) throws Exception
getConceptsByURIWithSparql in interface ExternalConceptServiceuri - URIExceptionprotected String getJsonValue(net.sf.json.JSONObject obj, String key)
obj - JSON Objectkey - Key to retrieveCopyright © 2016. All rights reserved.