public class LCSHService extends Object implements ExternalConceptService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
LCSHService() |
| Modifier and Type | Method and Description |
|---|---|
Concept |
createConcept(String bestMatch,
String conceptURLString,
String skosConceptURI) |
protected String |
extractConceptId(String str) |
List<Concept> |
getConcepts(String term) |
List<Concept> |
getConceptsByURIWithSparql(String uri) |
protected List<String> |
getConceptURIFromXML(String rdf) |
List<String> |
getConceptURISFromJSON(String results) |
List<Concept> |
processResults(String term) |
protected String |
stripConceptId(String uri) |
public List<Concept> getConcepts(String term) throws Exception
getConcepts in interface ExternalConceptServiceterm - TermExceptionpublic Concept createConcept(String bestMatch, String conceptURLString, String skosConceptURI)
public List<Concept> processResults(String term) throws Exception
processResults in interface ExternalConceptServiceterm - TermExceptionprotected String extractConceptId(String str)
str - String with concept idpublic List<Concept> getConceptsByURIWithSparql(String uri) throws Exception
getConceptsByURIWithSparql in interface ExternalConceptServiceuri - URIExceptionCopyright © 2016. All rights reserved.