Class LCSHService
- java.lang.Object
-
- edu.cornell.mannlib.semservices.service.impl.LCSHService
-
- All Implemented Interfaces:
edu.cornell.mannlib.semservices.service.ExternalConceptService
public class LCSHService extends Object implements edu.cornell.mannlib.semservices.service.ExternalConceptService
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Loglog
-
Constructor Summary
Constructors Constructor Description LCSHService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.cornell.mannlib.semservices.bo.ConceptcreateConcept(String bestMatch, String conceptURLString, String skosConceptURI)protected StringextractConceptId(String str)List<edu.cornell.mannlib.semservices.bo.Concept>getConcepts(String term)List<edu.cornell.mannlib.semservices.bo.Concept>getConceptsByURIWithSparql(String uri)protected List<String>getConceptURIFromXML(String rdf)List<String>getConceptURISFromJSON(String results)List<edu.cornell.mannlib.semservices.bo.Concept>processResults(String term)protected StringstripConceptId(String uri)
-
-
-
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
-
createConcept
public edu.cornell.mannlib.semservices.bo.Concept createConcept(String bestMatch, String conceptURLString, String skosConceptURI)
-
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
-
extractConceptId
protected String extractConceptId(String str)
- Parameters:
str- String with concept id
-
-