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

This session provides methods to retrieve RelevancyEnabler to Relevancy mappings. A Relevancy with multiple RelevancyEnablers means any positive rule evaluation across the enablers result in an effective Relevancy.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated ontology view: All methods in this session operate, retrieve and pertain relevancy enablers defined explicitly in the current ontology
  • federated ontology view: All methods in this session operate, retrieve and pertain to all relevancy enablers defined in this ontology and any other relevancy enablers implicitly available in this ontology through ontology inheritence.
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.
MethodcanLookupRelevancyEnablerRule
Description

Tests if this user can perform lookups of relevancy enabler/relevancy mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeRelevancyEnablerRuleView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryRelevancyEnablerRuleView
Description

A complete view of the RelevancyEnabler and Relevancy returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethoduseFederatedOntologyView
Description

Federates the view for methods in this session. A federated view will include relevancy enablers in ontologies which are children of this ontology in the ontology hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedOntologyView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this ontology only.

Compliancemandatory This method is must be implemented.
MethodgetRelevancyEnablerIdsForRelevancy
Description

Gets the RelevancyEnabler Id associated with a Relevancy.

Parametersosid.id.Id relevancyId Id of the Relevancy
Returnosid.id.IdList the relevancy enabler Ids
ErrorsNOT_FOUND relevancyId is not found
NULL_ARGUMENT relevancyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablersForRelevancy
Description

Gets the RelevancyEnabler associated with a Relevancy.

Parametersosid.id.IdrelevancyId Id of the Relevancy
Returnosid.ontology.rules.RelevancyEnablerList the relevancy enablers
ErrorsNOT_FOUND relevancyId is not found
NULL_ARGUMENT relevancyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRelevancyIdsForRelevancyEnabler
Description

Gets the Relevancy Ids mapped to a RelevancyEnabler.

Parametersosid.id.IdrelevancyEnablerId Id of a RelevancyEnabler
Returnosid.id.IdList list of relevancy Ids
ErrorsNOT_FOUND relevancyEnablerId is not found
NULL_ARGUMENT relevancyEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRelevanciesForRelevancyEnabler
Description

Gets the Relevancies mapped to a RelevancyEnabler.

Parametersosid.id.IdrelevancyEnablerId Id of a RelevancyEnabler
Returnosid.ontology.RelevancyList list of relevancies
ErrorsNOT_FOUND relevancyEnablerId is not found
NULL_ARGUMENT relevancyEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.