OSID Logo
OSID Specifications
ontology rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ontology.rules.RelevancyEnablerRuleLookupSession
Implementsosid.OsidSession
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.Idthe Ontology Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetOntology
Description

Gets the Ontology associated with this session.

Returnosid.ontology.Ontologythe ontology
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedOntologyView
Description

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

CompliancemandatoryThis 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.IdListthe relevancy enabler Ids
ErrorsNOT_FOUND relevancyId is not found
NULL_ARGUMENT relevancyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevancyEnablersForRelevancy
Description

Gets the RelevancyEnabler associated with a Relevancy.

Parametersosid.id.IdrelevancyId Id of the Relevancy
Returnosid.ontology.rules.RelevancyEnablerListthe relevancy enablers
ErrorsNOT_FOUND relevancyId is not found
NULL_ARGUMENT relevancyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevancyIdsForRelevancyEnabler
Description

Gets the Relevancy Ids mapped to a RelevancyEnabler.

Parametersosid.id.IdrelevancyEnablerId Id of a RelevancyEnabler
Returnosid.id.IdListlist of relevancy Ids
ErrorsNOT_FOUND relevancyEnablerId is not found
NULL_ARGUMENT relevancyEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesForRelevancyEnabler
Description

Gets the Relevancies mapped to a RelevancyEnabler.

Parametersosid.id.IdrelevancyEnablerId Id of a RelevancyEnabler
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNOT_FOUND relevancyEnablerId is not found
NULL_ARGUMENT relevancyEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.