public class UMLSService extends Object implements edu.cornell.mannlib.semservices.service.ExternalConceptService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
UMLSService() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
configurationFileExists() |
List<edu.cornell.mannlib.semservices.bo.Concept> |
getConcepts(String term) |
List<edu.cornell.mannlib.semservices.bo.Concept> |
getConceptsByURIWithSparql(String uri) |
protected String |
getJsonValue(com.fasterxml.jackson.databind.node.ObjectNode obj,
String key)
Get a string from a json object or an empty string if there is no value for the given key
|
boolean |
isConfigured() |
List<edu.cornell.mannlib.semservices.bo.Concept> |
processResults(String term) |
protected String |
stripConceptId(String uri) |
public static boolean configurationFileExists()
public boolean isConfigured()
public List<edu.cornell.mannlib.semservices.bo.Concept> getConcepts(String term) throws Exception
getConcepts in interface edu.cornell.mannlib.semservices.service.ExternalConceptServiceExceptionpublic List<edu.cornell.mannlib.semservices.bo.Concept> processResults(String term) throws Exception
processResults in interface edu.cornell.mannlib.semservices.service.ExternalConceptServiceExceptionpublic List<edu.cornell.mannlib.semservices.bo.Concept> getConceptsByURIWithSparql(String uri) throws Exception
getConceptsByURIWithSparql in interface edu.cornell.mannlib.semservices.service.ExternalConceptServiceuri - URIExceptionprotected String getJsonValue(com.fasterxml.jackson.databind.node.ObjectNode obj, String key)
obj - JSON Objectkey - Key to retrieveCopyright © 2022. All rights reserved.