OSID Logo
OSID Specifications
ontology package
Version 3.1.0
Interfaceosid.ontology.SubjectOntologySession
Implementsosid.OsidSession
Used Byosid.ontology.OntologyManager
osid.ontology.OntologyProxyManager
Description

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

This lookup session defines two views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupSubjectOntologyMappings
Description

Tests if this user can perform lookups of subject/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.
MethoduseComparativeOntologyView
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.
MethodusePlenaryOntologyView
Description

A complete view of the Subject 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.
MethodgetSubjectIdsByOntology
Description

Gets the list of Subject Ids associated with an Ontology.

Parametersosid.id.IdontologyId Id of the Ontology
Returnosid.id.IdList list of related subject 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.
MethodgetSubjectsByOntology
Description

Gets the list of Subjects associated with an Ontology.

Parametersosid.id.IdontologyId Id of the Ontology
Returnosid.ontology.SubjectList list of related subject 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.
MethodgetSubjectIdsByOntologies
Description

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

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

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

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

Gets the list of Ontology Ids mapped to a Subject.

Parametersosid.id.IdsubjectId Id of a Subject
Returnosid.id.IdList list of ontology Ids
ErrorsNOT_FOUND subjectId is not found
NULL_ARGUMENT subjectId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOntologiesBySubject
Description

Gets the list of Ontologies mapped to a Subject.

Parametersosid.id.IdsubjectId Id of a Subject
Returnosid.ontology.OntologyList list of ontologies
ErrorsNOT_FOUND subjectId is not found
NULL_ARGUMENT subjectId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.