Class AgrovocService
- java.lang.Object
-
- edu.cornell.mannlib.semservices.service.impl.AgrovocService
-
- All Implemented Interfaces:
edu.cornell.mannlib.semservices.service.ExternalConceptService
public class AgrovocService extends Object implements edu.cornell.mannlib.semservices.service.ExternalConceptService
-
-
Field Summary
Fields Modifier and Type Field Description protected StringconceptSkosMosBaseprotected StringconceptSkosMosURLprotected StringconceptsSkosMosSearchprotected Stringdbpedia_endpointprotected org.apache.commons.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description AgrovocService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.cornell.mannlib.semservices.bo.ConceptcreateConcept(String bestMatch, String skosConceptURI)protected StringextractConceptId(String str)protected StringgetAgrovocTermCode(String rdf)List<edu.cornell.mannlib.semservices.bo.Concept>getConcepts(String term)List<edu.cornell.mannlib.semservices.bo.Concept>getConceptsByURIWithSparql(String uri)protected StringgetConceptURIFromRDF(String rdf)protected List<String>getConceptURIsListFromRDF(String rdf)protected StringgetDbpediaDescription(String uri)List<edu.cornell.mannlib.semservices.bo.Concept>processResults(String term)protected StringstripConceptId(String uri)
-
-
-
Field Detail
-
logger
protected final org.apache.commons.logging.Log logger
-
dbpedia_endpoint
protected final String dbpedia_endpoint
- See Also:
- Constant Field Values
-
conceptSkosMosBase
protected final String conceptSkosMosBase
- See Also:
- Constant Field Values
-
conceptsSkosMosSearch
protected final String conceptsSkosMosSearch
- See Also:
- Constant Field Values
-
conceptSkosMosURL
protected final String conceptSkosMosURL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConcepts
public List<edu.cornell.mannlib.semservices.bo.Concept> getConcepts(String term) throws Exception
- Specified by:
getConceptsin interfaceedu.cornell.mannlib.semservices.service.ExternalConceptService- Throws:
Exception
-
processResults
public List<edu.cornell.mannlib.semservices.bo.Concept> processResults(String term) throws Exception
- Specified by:
processResultsin interfaceedu.cornell.mannlib.semservices.service.ExternalConceptService- Throws:
Exception
-
createConcept
public edu.cornell.mannlib.semservices.bo.Concept createConcept(String bestMatch, String skosConceptURI)
-
getConceptsByURIWithSparql
public List<edu.cornell.mannlib.semservices.bo.Concept> getConceptsByURIWithSparql(String uri) throws Exception
- Specified by:
getConceptsByURIWithSparqlin interfaceedu.cornell.mannlib.semservices.service.ExternalConceptService- Throws:
Exception
-
getAgrovocTermCode
protected String getAgrovocTermCode(String rdf) throws Exception
- Throws:
Exception
-
getDbpediaDescription
protected String getDbpediaDescription(String uri) throws Exception
- Throws:
Exception
-
-