OSID Logo
OSID Specifications
ontology rules package
Version 3.1.0
Interfaceosid.ontology.rules.RelevancyEnablerSmartOntologySession
Implementsosid.OsidSession
Used Byosid.ontology.rules.OntologyRulesManager
osid.ontology.rules.OntologyRulesProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic ontologies. A RelevancyEnablerQuery can be retrieved from this session and mapped to this Ontology to create a virtual collection of relevancy enablers. The relevancy enablers may be sequenced using the RelevancyEnablerSearchOrder from this session.

This Ontology has a default query that matches any relevancy enabler and a default search order that specifies no sequencing. The queries may be examined using a RelevancyEnablerQueryInspector. The query may be modified by converting the inspector back to a RelevancyEnablerQuery.

MethodgetOntologyId
Description

Gets the Ontology Id associated with this session.

Returnosid.id.Id the Ontology Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetOntology
Description

Gets the Ontology associated with this session.

Returnosid.ontology.Ontology the ontology
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartOntologies
Description

Tests if this user can manage smart ontologies. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart ontology management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablerQuery
Description

Gets a relevancy enabler query.

Returnosid.ontology.rules.RelevancyEnablerQuery the relevancy enabler query
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablerSearchOrder
Description

Gets a relevancy enabler search order.

Returnosid.ontology.rules.RelevancyEnablerSearchOrder the relevancy enabler search order
Compliancemandatory This method must be implemented.
MethodapplyRelevancyEnablerQuery
Description

Applies a relevancy enabler query to this ontology.

Parametersosid.ontology.rules.RelevancyEnablerQueryrelevancyEnablerQuery the relevancy enabler query
ErrorsNULL_ARGUMENT relevancyEnablerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED relevancyEnablerQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectRelevancyEnablerQuery
Description

Gets a relevancy enabler query inspector for this ontology.

Returnosid.ontology.rules.RelevancyEnablerQueryInspector the relevancy enabler query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyRelevancyEnablerSequencing
Description

Applies a relevancy enabler search order to this ontology.

Parametersosid.ontology.rules.RelevancyEnablerSearchOrderrelevancyEnablerSearchOrder the relevancy enabler search order
ErrorsNULL_ARGUMENT relevancyEnablerSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED relevancyEnablerSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablerQueryFromInspector
Description

Gets a relevancy enabler query from an inspector.

Parametersosid.ontology.rules.RelevancyEnablerQueryInspectorrelevancyEnablerQueryInspector a relevancy enabler query inspector
Returnosid.ontology.rules.RelevancyEnablerQuery the relevancy enabler query
ErrorsNULL_ARGUMENT relevancyEnablerQueryInspector is null
UNSUPPORTED relevancyEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.