OSID Logo
OSID Specifications
ontology package
Version 3.1.0
Interfaceosid.ontology.RelevancyQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.OsidObjectQuery
osid.ontology.OntologyQuery
osid.ontology.RelevancyQuerySession
osid.ontology.RelevancySearchSession
osid.ontology.RelevancySmartOntologySession
osid.ontology.SubjectQuery
osid.ontology.rules.RelevancyEnablerQuery
Description

This is the query for searching relevancies. Each method match request produces an AND term while multiple invocations of a method produces a nested OR.

MethodmatchSubjectId
Description

Sets the subject Id for this query.

Parametersosid.id.IdsubjectId a subject Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT subjectId is null
Compliancemandatory This method must be implemented.
MethodclearSubjectIdTerms
Description

Clears the subject Id terms for this query.

Compliancemandatory This method must be implemented.
MethodsupportsSubjectQuery
Description

Tests if a SubjectQuery is available.

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

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

Returnosid.ontology.SubjectQuery the subject query
ErrorsUNIMPLEMENTED supportsSubjectQuery() is false
Complianceoptional This method must be implemented if supportsSubjectQuery() is true.
MethodclearSubjectTerms
Description

Clears the subject terms for this query.

Compliancemandatory This method must be implemented.
MethodmatchMappedId
Description

Sets the mapped Id for this query.

Parametersosid.id.Idid an Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT id is null
Compliancemandatory This method must be implemented.
MethodclearMappedIdTerms
Description

Clears the mapped Id terms for this query.

Compliancemandatory This method must be implemented.
MethodmatchOntologyId
Description

Sets the ontology Id for this query.

Parametersosid.id.IdontologyId an 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 terms for this query.

Compliancemandatory This method must be implemented.
MethodsupportsOntologyQuery
Description

Tests if an OntologyQuery is available for querying ontologies.

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 terms for this query.

Compliancemandatory This method must be implemented.
MethodgetRelevancyQueryRecord
Description

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

Parametersosid.type.TyperelevancytRecordType a relevancy query record type
Returnosid.ontology.records.RelevancyQueryRecord the relevancy query record
ErrorsNULL_ARGUMENT relevancyRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(relevancyRecordType) is false
Compliancemandatory This method must be implemented.