Class OntologySearch


  • public class OntologySearch
    extends Object
    Author:
    pavlidis
    • Constructor Detail

      • OntologySearch

        public OntologySearch()
    • 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 index
        index - 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 index
        index - 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 index
        index - to search
        Returns:
        Collection of OntologyResource objects
        Throws:
        OntologySearchException