OSID Logo
OSID Specifications
ontology rules package
Version 3.0.0
Interfaceosid.ontology.rules.RelevancyEnablerOntologySession
Implementsosid.OsidSession
Used Byosid.ontology.rules.OntologyRulesManager
osid.ontology.rules.OntologyRulesProxyManager
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.

Returnbooleanfalse 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.IdontologyIdId of the Ontology
Returnosid.id.IdListlist of related relevancy enabler Ids
ErrorsNOT_FOUNDontologyId is not found
NULL_ARGUMENTontologyId 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.IdontologyIdId of the Ontology
Returnosid.ontology.rules.RelevancyEnablerListlist of related relevancy enablers
ErrorsNOT_FOUNDontologyId is not found
NULL_ARGUMENTontologyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevancyEnablerIdsByOntologies
Description

Gets the list of RelevancyEnablerIds corresponding to a list of Ontologies .

Parametersosid.id.IdListontologyIdslist of ontology Ids
Returnosid.id.IdListlist of relevancy enabler Ids
ErrorsNULL_ARGUMENTontologyIds 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_ARGUMENTontologyIds 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.IdrelevancyEnablerIdId of a RelevancyEnabler
Returnosid.id.IdListlist of ontologies
ErrorsNOT_FOUNDrelevancyEnablerId is not found
NULL_ARGUMENTrelevancyEnablerId 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.IdrelevancyEnablerIdId of a RelevancyEnabler
Returnosid.ontology.OntologyListlist of ontologies
ErrorsNOT_FOUNDrelevancyEnablerId is not found
NULL_ARGUMENTrelevancyEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.