OSID Logo
OSID Specifications
ontology rules package
Version 3.1.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.

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.IdList list of related relevancy enabler Ids
ErrorsNOT_FOUND ontologyId is not found
NULL_ARGUMENT ontologyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.RelevancyEnablerList list of related relevancy enablers
ErrorsNOT_FOUND ontologyId is not found
NULL_ARGUMENT ontologyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablerIdsByOntologies
Description

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

Parametersosid.id.IdListontologyIds list of ontology Ids
Returnosid.id.IdList list of relevancy enabler Ids
ErrorsNULL_ARGUMENT ontologyIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablersByOntologies
Description

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

Parametersosid.id.IdListontologyIds list of ontology Ids
Returnosid.ontology.rules.RelevancyEnablerList list of relevancy enablers
ErrorsNULL_ARGUMENT ontologyIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOntologyIdsByRelevancyEnabler
Description

Gets the Ontology Ids mapped to a RelevancyEnabler.

Parametersosid.id.IdrelevancyEnablerId Id of a RelevancyEnabler
Returnosid.id.IdList list of ontologies
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.
MethodgetOntologiesByRelevancyEnabler
Description

Gets the Ontologies mapped to a RelevancyEnabler.

Parametersosid.id.IdrelevancyEnablerId Id of a RelevancyEnabler
Returnosid.ontology.OntologyList list of ontologies
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.