OSID Logo
OSID Specifications
topology package
Version 3.1.0
Interfaceosid.topology.GraphSearchSession
Implementsosid.topology.GraphQuerySession
Used Byosid.topology.TopologyManager
osid.topology.TopologyProxyManager
Description

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

getGraphsByQuery() is the basic search method and returns a list of Graphs. A more advanced search may be performed with getGraphsBySearch(). It accepts a GraphSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getGraphsBySearch() returns a GraphSearchResults that can be used to access the resulting GraphList or be used to perform a search within the result set through GraphSearch.

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

MethodgetGraphSearch
Description

Gets a graph search.

Returnosid.topology.GraphSearch the graph search
Compliancemandatory This method must be implemented.
MethodgetGraphSearchOrder
Description

Gets a graph search order. The GraphSearchOrder is supplied to a GraphSearch to specify the ordering of results.

Returnosid.topology.GraphSearchOrder the graph search order
Compliancemandatory This method must be implemented.
MethodgetGraphsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.topology.GraphQuerygraphQuery the graph query
osid.topology.GraphSearchgraphSearch the graph search
Returnosid.topology.GraphSearchResults the graph search results
ErrorsNULL_ARGUMENT graphQuery or graphSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED graphQuery or graphSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetGraphQueryFromInspector
Description

Gets a graph query from an inspector. The inspector is available from a GraphSearchResults.

Parametersosid.topology.GraphQueryInspectorgraphQueryInspector a graph query inspector
Returnosid.topology.GraphQuery the graph query
ErrorsNULL_ARGUMENT graphQueryInspector is null
UNSUPPORTED graphQueryInspector is not of this service
Compliancemandatory This method must be implemented.