public class OntologySearch extends Object
| Constructor and Description |
|---|
OntologySearch() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<OntologyTerm> |
matchClasses(com.hp.hpl.jena.ontology.OntModel model,
SearchIndex index,
String queryString)
Find classes that match the query string.
|
static Collection<OntologyIndividual> |
matchIndividuals(com.hp.hpl.jena.ontology.OntModel model,
SearchIndex index,
String queryString)
Find individuals that match the query string
|
static Collection<OntologyResource> |
matchResources(com.hp.hpl.jena.ontology.OntModel model,
SearchIndex index,
String queryString)
Find OntologyIndividuals and OntologyTerms that match the query string.
|
static String |
stripInvalidCharacters(String toStrip)
Will remove characters that jena is unable to parse.
|
public static Collection<OntologyTerm> matchClasses(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString) throws OntologySearchException
model - that goes with the indexindex - to searchqueryString - OntologySearchExceptionpublic static Collection<OntologyIndividual> matchIndividuals(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString) throws OntologySearchException
model - that goes with the indexindex - to searchqueryString - OntologySearchExceptionpublic static Collection<OntologyResource> matchResources(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString) throws OntologySearchException
model - that goes with the indexindex - to searchqueryString - OntologySearchExceptionCopyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.