OSID Logo
OSID Specifications
topology package
Version 3.1.0
Interfaceosid.topology.GraphQuery
Implementsosid.OsidCatalogQuery
Used Byosid.topology.EdgeQuery
osid.topology.GraphQuery
osid.topology.GraphQuerySession
osid.topology.GraphSearchSession
osid.topology.NodeQuery
osid.topology.path.PathQuery
osid.topology.rules.EdgeEnablerQuery
Description

This is the query for searching graphs. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchNodeId
Description

Sets the node Id for this query to match graphs that have a related node.

Parametersosid.id.IdnodeId a node Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT nodeId is null
Compliancemandatory This method must be implemented.
MethodclearNodeIdTerms
Description

Clears the node Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsNodeQuery
Description

Tests if a NodeQuery is available.

Returnboolean true if a node query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetNodeQuery
Description

Gets the query for a node. Multiple retrievals produce a nested OR term.

Returnosid.topology.NodeQuery the node query
ErrorsUNIMPLEMENTED supportsNodeQuery() is false
Complianceoptional This method must be implemented if supportsNodeQuery() is true.
MethodmatchAnyNode
Description

Matches graphs that have any node.

Parametersbooleanmatch true to match graphs with any node, false to match graphs with no node
Compliancemandatory This method must be implemented.
MethodclearNodeTerms
Description

Clears the node terms.

Compliancemandatory This method must be implemented.
MethodmatchEdgeId
Description

Sets the edge Id for this query to match graphs containing edges.

Parametersosid.id.IdedgeId the edge Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT edgeId is null
Compliancemandatory This method must be implemented.
MethodclearEdgeIdTerms
Description

Clears the edge Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsEdgeQuery
Description

Tests if an EdgeQuery is available.

Returnboolean true if an edge query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetEdgeQuery
Description

Gets the query for an edge. Multiple retrievals produce a nested OR term.

Returnosid.topology.EdgeQuery the edge query
ErrorsUNIMPLEMENTED supportsEdgeQuery() is false
Complianceoptional This method must be implemented if supportsEdgeQuery() is true.
MethodmatchAnyEdge
Description

Matches graphs that have any edge.

Parametersbooleanmatch true to match graphs with any edge, false to match graphs with no edge
Compliancemandatory This method must be implemented.
MethodclearEdgeTerms
Description

Clears the edge terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorGraphId
Description

Sets the graph Id for this query to match graphs that have the specified graph as an ancestor.

Parametersosid.id.IdgraphId a graph Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT graphId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorGraphIdTerms
Description

Clears the ancestor graph Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorGraphQuery
Description

Tests if a GraphQuery is available.

Returnboolean true if a graph query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorGraphQuery
Description

Gets the query for a graph. Multiple retrievals produce a nested OR term.

Returnosid.topology.GraphQuery the graph query
ErrorsUNIMPLEMENTED supportsAncestorGraphQuery() is false
Complianceoptional This method must be implemented if supportsAncestorGraphQuery() is true.
MethodmatchAnyAncestorGraph
Description

Matches graphs with any ancestor.

Parametersbooleanmatch true to match graphs with any ancestor, false to match root graphs
Compliancemandatory This method must be implemented.
MethodclearAncestorGraphTerms
Description

Clears the ancestor graph terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantGraphId
Description

Sets the graph Id for this query to match graphs that have the specified graph as a descendant.

Parametersosid.id.IdgraphId a graph Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT graphId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantGraphIdTerms
Description

Clears the descendant graph Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantGraphQuery
Description

Tests if a GraphQuery is available.

Returnboolean true if a graph query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantGraphQuery
Description

Gets the query for a graph. Multiple retrievals produce a nested OR term.

Returnosid.topology.GraphQuery the graph query
ErrorsUNIMPLEMENTED supportsDescendantGraphQuery() is false
Complianceoptional This method must be implemented if supportsDescendantGraphQuery() is true.
MethodmatchAnyDescendantGraph
Description

Matches graphs with any descendant.

Parametersbooleanmatch true to match graphs with any descendant, false to match leaf graphs
Compliancemandatory This method must be implemented.
MethodclearDescendantGraphTerms
Description

Clears the descendant graph terms.

Compliancemandatory This method must be implemented.
MethodgetGraphQueryRecord
Description

Gets the graph query record corresponding to the given Graph record Type.Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypegraphRecordType a graph record type
Returnosid.topology.records.GraphQueryRecord the graph query record
ErrorsNULL_ARGUMENT graphRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(graphRecordType) is false
Compliancemandatory This method must be implemented.