OSID Logo
OSID Specifications
ontology rules package
Version 3.0.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.IdrelevancyIdthe relevancy Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTrelevancyId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledRelevancyIdTerms
Description

Clears the relevancy Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledRelevancyQuery
Description

Tests if a RelevancyQuery is available.

Returnbooleantrue if a relevancy query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledRelevancyQuery
Description

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

Returnosid.ontology.RelevancyQuerythe relevancy query
ErrorsUNIMPLEMENTEDsupportsRuledRelevancyQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledRelevancyQuery() is true .
MethodmatchAnyRuledRelevancy
Description

Matches enablers mapped to any relevancy.

Parametersbooleanmatchtrue for enablers mapped to any relevancy, false to match enablers mapped to no relevancy
CompliancemandatoryThis method must be implemented.
MethodclearRuledRelevancyTerms
Description

Clears the relevancy query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOntologyId
Description

Matches enablers mapped to the ontology.

Parametersosid.id.IdontologyIdthe ontology Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTontologyId is null
CompliancemandatoryThis method must be implemented.
MethodclearOntologyIdTerms
Description

Clears the ontology Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsOntologyQuery
Description

Tests if an OntologyQuery is available.

Returnbooleantrue if an ontology query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetOntologyQuery
Description

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

Returnosid.ontology.OntologyQuerythe ontology query
ErrorsUNIMPLEMENTEDsupportsOntologyQuery() is false
ComplianceoptionalThis method must be implemented if supportsOntologyQuery() is true .
MethodclearOntologyTerms
Description

Clears the ontology query terms.

CompliancemandatoryThis 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.TyperelevancyEnablerRecordTypea relevancy enabler record type
Returnosid.ontology.rules.records.RelevancyEnablerQueryRecordthe relevancy enabler query record
ErrorsNULL_ARGUMENTrelevancyEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(relevancyEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.