Class OntologySearch
- java.lang.Object
-
- ubic.basecode.ontology.jena.search.OntologySearch
-
public class OntologySearch extends Object
- Author:
- pavlidis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OntologySearch.SearchResult<T extends com.hp.hpl.jena.rdf.model.RDFNode>
-
Constructor Summary
Constructors Constructor Description OntologySearch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.hp.hpl.jena.util.iterator.ExtendedIterator<OntologySearch.SearchResult<com.hp.hpl.jena.ontology.OntClass>>
matchClasses(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString)
Find classes that match the query string.static com.hp.hpl.jena.util.iterator.ExtendedIterator<OntologySearch.SearchResult<com.hp.hpl.jena.ontology.Individual>>
matchIndividuals(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString)
Find individuals that match the query stringstatic com.hp.hpl.jena.util.iterator.ExtendedIterator<OntologySearch.SearchResult<com.hp.hpl.jena.rdf.model.Resource>>
matchResources(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString)
Find OntologyIndividuals and OntologyTerms that match the query string.
-
-
-
Method Detail
-
matchClasses
public static com.hp.hpl.jena.util.iterator.ExtendedIterator<OntologySearch.SearchResult<com.hp.hpl.jena.ontology.OntClass>> matchClasses(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString) throws OntologySearchException
Find classes that match the query string.- Parameters:
model
- that goes with the indexindex
- to search- Returns:
- Collection of OntologyTerm objects
- Throws:
OntologySearchException
-
matchIndividuals
public static com.hp.hpl.jena.util.iterator.ExtendedIterator<OntologySearch.SearchResult<com.hp.hpl.jena.ontology.Individual>> matchIndividuals(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString) throws OntologySearchException
Find individuals that match the query string- Parameters:
model
- that goes with the indexindex
- to search- Returns:
- Collection of OntologyTerm objects
- Throws:
OntologySearchException
-
matchResources
public static com.hp.hpl.jena.util.iterator.ExtendedIterator<OntologySearch.SearchResult<com.hp.hpl.jena.rdf.model.Resource>> matchResources(com.hp.hpl.jena.ontology.OntModel model, SearchIndex index, String queryString) throws OntologySearchException
Find OntologyIndividuals and OntologyTerms that match the query string. Search with a wildcard is attempted whenever possible.- Parameters:
model
- that goes with the indexindex
- to search- Returns:
- Collection of OntologyResource objects
- Throws:
OntologySearchException
-
-