Interface OntologySearchSession

All Superinterfaces:
AutoCloseable, Closeable, OntologyQuerySession, OsidSession, OsidSession

public interface OntologySearchSession extends OntologyQuerySession

This session provides methods for searching among Ontology objects. The search query is constructed using the OntologyQuery .

getOntologiesByQuery() is the basic search method and returns a list of Ontology objects.A more advanced search may be performed with getOntologiesBySearch() . It accepts an OntologySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getOntologiesBySearch() returns an OntologySearchResults that can be used to access the resulting OntologyList or be used to perform a search within the result set through OntologySearch .

Ontologies may have a query record indicated by their respective record types. The query record is accessed via the OntologyQuery .

  • Method Details

    • getOntologySearch

      OntologySearch getOntologySearch()
      Gets an ontology search.
      Returns:
      an ontology search
      Compliance:
      mandatory - This method must be implemented.
    • getOntologySearchOrder

      OntologySearchOrder getOntologySearchOrder()
      Gets an ontology search order. The OntologySearchOrder is supplied to an OntologySearch to specify the ordering of results.
      Returns:
      the ontology search order
      Compliance:
      mandatory - This method must be implemented.
    • getOntologiesBySearch

      OntologySearchResults getOntologiesBySearch(OntologyQuery ontologyQuery, OntologySearch ontologySearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      ontologyQuery - the ontology query
      ontologySearch - the ontology search
      Returns:
      the ontology search results
      Throws:
      NullArgumentException - ontologyQuery or ontologySearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - ontologyQuery or ontologySearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getOntologyQueryFromInspector

      OntologyQuery getOntologyQueryFromInspector(OntologyQueryInspector ontologyQueryInspector)
      Gets an ontology query from an inspector. The inspector is available from an OntologySearchResults .
      Parameters:
      ontologyQueryInspector - an ontology query inspector
      Returns:
      the ontology query
      Throws:
      NullArgumentException - ontologyQueryInspector is null
      UnsupportedException - ontologyQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.