public class RemoteConceptProvider extends Object implements ConceptProvider
ConceptProvider
provides a functionality
to query a SPARQL End Point for a given search term. The query is to be
generated from a template by replacing the place holder for the search term
with the specified search term.Constructor and Description |
---|
RemoteConceptProvider(UriRef sparqlEndPoint,
UriRef defaultGraph,
String queryTemplate)
Constructs a
RemoteConceptProvider with the specified parameters. |
Modifier and Type | Method and Description |
---|---|
Graph |
retrieveConcepts(String searchTerm)
Returns a graph containing all concepts whose SKOS:prefLabels
or SKOS:altLabels contain the search term.
|
public RemoteConceptProvider(UriRef sparqlEndPoint, UriRef defaultGraph, String queryTemplate)
RemoteConceptProvider
with the specified parameters.sparqlEndPoint
- the SPARQL End Point to connect todefaultGraph
- the Graph to query for conceptsqueryTemplate
- the template for query containing place holders for the search term.public Graph retrieveConcepts(String searchTerm)
ConceptProvider
retrieveConcepts
in interface ConceptProvider
searchTerm
- a filter condition that specifies the term that must
be contained within SKOS:prefLabels or SKOS:altLabels of a concept.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.