@Service(value=java.lang.Object.class) @Property(name="javax.ws.rs", boolValue=true) public class ConceptsFinder extends Object
ConceptProvider
s. If no LocalConceptProvider
is
registered for ConceptManipulator.FREE_CONCEPT_SCHEME
, then one is
created to find free concepts in the content graph.
Concept providers are prioritized.
The URI, SKOS:prefLabel and RDFS:comment of a concept from a provider of a
higher priority will be used instead of those concepts having an OWL:sameAs
relation with this concept, but from a provider of lower priority.
Implicitly created LocalConceptProvider
for free concepts has the
lowest priority.
The URI path of this service is /concepts/find.Modifier and Type | Field and Description |
---|---|
protected ConceptProviderManager |
conceptProviderManager |
Constructor and Description |
---|
ConceptsFinder() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
GraphNode |
findConcepts(String searchTerm)
Searches concepts for a specified search term.
|
@Reference protected ConceptProviderManager conceptProviderManager
protected void activate(org.osgi.service.component.ComponentContext context) throws URISyntaxException
URISyntaxException
public GraphNode findConcepts(String searchTerm)
ConceptProvider
instance. The results from
each ConceptProvider
are merged into a single result graph.
However, concepts from providers of lower priority are only considered if
they are not staying in an OWL:sameAs relation with concepts from
providers of higher priority.searchTerm
- The search term in form of a String.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.