OSID Logo
OSID Specifications
ontology rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ontology.rules.RelevancyEnablerOntologySession
Implementsosid.OsidSession
Description

This session provides methods to retrieve RelevancyEnabler to Ontology mappings. A RelevancyEnabler may appear in multiple Ontology objects. Each ontology may have its own authorizations governing who is allowed to look at it.

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
MethodcanLookupRelevancyEnablerOntologyMappings
Description

Tests if this user can perform lookups of relevancy enabler/ontology 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.
MethoduseComparativeRelevancyEnablerOntologyView
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.
MethodusePlenaryRelevancyEnablerOntologyView
Description

A complete view of the RelevancyEnabler and Ontology 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.
MethodgetRelevancyEnablerIdsByOntology
Description

Gets the list of RelevancyEnablerIds associated with an Ontology.

Parametersosid.id.IdontologyId Id of the Ontology
Returnosid.id.IdListlist of related relevancy enabler Ids
ErrorsNOT_FOUND ontologyId is not found
NULL_ARGUMENT ontologyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevancyEnablersByOntology
Description

Gets the list of relevancy enablers associated with an Ontology.

Parametersosid.id.IdontologyId Id of the Ontology
Returnosid.ontology.rules.RelevancyEnablerListlist of related relevancy enablers
ErrorsNOT_FOUND ontologyId is not found
NULL_ARGUMENT ontologyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevancyEnablerIdsByOntologies
Description

Gets the list of RelevancyEnabler Ids corresponding to a list of Ontologies.

Parametersosid.id.IdListontologyIdslist of ontology Ids
Returnosid.id.IdListlist of relevancy enabler Ids
ErrorsNULL_ARGUMENT ontologyIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevancyEnablersByOntologies
Description

Gets the list of relevancy enablers corresponding to a list of Ontologies.

Parametersosid.id.IdListontologyIdslist of ontology Ids
Returnosid.ontology.rules.RelevancyEnablerListlist of relevancy enablers
ErrorsNULL_ARGUMENT ontologyIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOntologyIdsByRelevancyEnabler
Description

Gets the Ontology Ids mapped to a RelevancyEnabler.

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

Gets the Ontologies mapped to a RelevancyEnabler.

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