OSID Logo
OSID Specifications
ontology rules package
Version 3.1.0
Interfaceosid.ontology.rules.RelevancyEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.ontology.rules.RelevancyEnablerQuerySession
osid.ontology.rules.RelevancyEnablerSearchSession
osid.ontology.rules.RelevancyEnablerSmartOntologySession
Description

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

MethodmatchRuledRelevancyId
Description

Matches enablers mapped to the relevancy.

Parametersosid.id.IdrelevancyId the relevancy Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT relevancyId is null
Compliancemandatory This method must be implemented.
MethodclearRuledRelevancyIdTerms
Description

Clears the relevancy Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledRelevancyQuery
Description

Tests if a RelevancyQuery is available.

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

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

Returnosid.ontology.RelevancyQuery the relevancy query
ErrorsUNIMPLEMENTED supportsRuledRelevancyQuery() is false
Complianceoptional This method must be implemented if supportsRuledRelevancyQuery() is true.
MethodmatchAnyRuledRelevancy
Description

Matches enablers mapped to any relevancy.

Parametersbooleanmatch true for enablers mapped to any relevancy, false to match enablers mapped to no relevancy
Compliancemandatory This method must be implemented.
MethodclearRuledRelevancyTerms
Description

Clears the relevancy query terms.

Compliancemandatory This method must be implemented.
MethodmatchOntologyId
Description

Matches enablers mapped to the ontology.

Parametersosid.id.IdontologyId the ontology Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT ontologyId is null
Compliancemandatory This method must be implemented.
MethodclearOntologyIdTerms
Description

Clears the ontology Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsOntologyQuery
Description

Tests if an OntologyQuery is available.

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

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

Returnosid.ontology.OntologyQuery the ontology query
ErrorsUNIMPLEMENTED supportsOntologyQuery() is false
Complianceoptional This method must be implemented if supportsOntologyQuery() is true.
MethodclearOntologyTerms
Description

Clears the ontology query terms.

Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablerQueryRecord
Description

Gets the relevancy enabler query record corresponding to the given RelevancyEnabler record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TyperelevancyEnablerRecordType a relevancy enabler record type
Returnosid.ontology.rules.records.RelevancyEnablerQueryRecord the relevancy enabler query record
ErrorsNULL_ARGUMENT relevancyEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(relevancyEnablerRecordType) is false
Compliancemandatory This method must be implemented.