public class AgrovocService extends Object implements edu.cornell.mannlib.semservices.service.ExternalConceptService
| Modifier and Type | Field and Description |
|---|---|
protected String |
conceptSkosMosBase |
protected String |
conceptSkosMosURL |
protected String |
conceptsSkosMosSearch |
protected String |
dbpedia_endpoint |
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
AgrovocService() |
| Modifier and Type | Method and Description |
|---|---|
edu.cornell.mannlib.semservices.bo.Concept |
createConcept(String bestMatch,
String skosConceptURI) |
protected String |
extractConceptId(String str) |
protected String |
getAgrovocTermCode(String rdf) |
List<edu.cornell.mannlib.semservices.bo.Concept> |
getConcepts(String term) |
List<edu.cornell.mannlib.semservices.bo.Concept> |
getConceptsByURIWithSparql(String uri) |
protected String |
getConceptURIFromRDF(String rdf) |
protected List<String> |
getConceptURIsListFromRDF(String rdf) |
protected String |
getDbpediaDescription(String uri) |
List<edu.cornell.mannlib.semservices.bo.Concept> |
processResults(String term) |
protected String |
stripConceptId(String uri) |
protected final org.apache.commons.logging.Log logger
protected final String dbpedia_endpoint
protected final String conceptSkosMosBase
protected final String conceptsSkosMosSearch
protected final String conceptSkosMosURL
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 edu.cornell.mannlib.semservices.bo.Concept createConcept(String bestMatch, String skosConceptURI)
public List<edu.cornell.mannlib.semservices.bo.Concept> getConceptsByURIWithSparql(String uri) throws Exception
getConceptsByURIWithSparql in interface edu.cornell.mannlib.semservices.service.ExternalConceptServiceExceptionprotected String getAgrovocTermCode(String rdf) throws Exception
Exceptionprotected String getDbpediaDescription(String uri) throws Exception
ExceptionCopyright © 2022. All rights reserved.