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

This session provides methods for examining subject relevancy.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete set or is an error condition
  • isolated ontology view: All relevancy methods in this session operate, retrieve and pertain to relevancies defined explicitly in the current ontology. Using an isolated view is useful for managing relevancies with the RelevancyAdminSession.
  • federated ontology view: All relevancy methods in this session operate, retrieve and pertain to all relevancies defined in this ontology and any other obtologies implicitly available in this ontology through ontology inheritence.
  • effective relevancy view: All relevancy methods return effective relevancies.
  • any effective relevancy view: Both effective and ineffective relevancies are returned.
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 associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupRelevancies
Description

Tests if this user can lookup subject relevancies. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeRelevancyView
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.
MethodusePlenaryRelevancyView
Description

A complete view of the 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 relevancies 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.
MethoduseEffectiveRelevancyView
Description

The returns from the lookup methods return only effetive relevancies.

CompliancemandatoryThis method is must be implemented.
MethoduseAnyEffectiveRelevancyView
Description

Both effective and ineffective relavcnies are returned.

CompliancemandatoryThis method is must be implemented.
MethodgetRelevancy
Description

Gets the Relevancy specified by its Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Relevancy may have a different Id than requested, such as the case where a duplicate Id was assigned to a Relevancy and retained for compatibility.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

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

Gets a RelevancyList corresponding to the given IdList.

In plenary mode, the returned list contains all of the relevancies specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible relevancies may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdListrelevancyIdsthe list of Ids to retrieve
Returnosid.ontology.RelevancyListthe returned Relevancy list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT relevancyIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesByGenusType
Description

Gets the relevancies for the given relevancy and genus type.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.type.TyperelevancyGenusTyperelevancy genus type
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT relevancyGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesByParentGenusType
Description

Gets the relevancies for the given relevancy genus type and include any relevancies with a genus type derived from the specified genus type.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.type.TyperelevancyGenusTyperelevancy genus type
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT relevancyGenusTYpe is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesByRecordType
Description

Gets a RelevancyList containing the given relevancy record Type.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.type.TyperelevancyRecordTypea relevancy record type
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT relevancyRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesOnDate
Description

Gets a RelevancyList effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesByGenusTypeOnDate
Description

Gets a RelevancyList of the given genus type and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.type.TyperelevancyGenusTyperelevancy genus type
osid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT relevancyGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesForSubject
Description

Gets the Relevancy mapped to a subject Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Relevancy may have a different Id than requested, such as the case where a duplicate Id was assigned to a Relevancy and retained for compatibility.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdsubjectIdthe subject Id
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT subjectId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesForSubjectOnDate
Description

Gets a RelevancyList for the given subject effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdsubjectIdthe subject Id
osid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT subjectId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesByGenusTypeForSubject
Description

Gets the Relevancy mapped to a subject Id and relevancy genus Type. Genus Types derived from the given genus Typ e are included.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Relevancy may have a different Id than requested, such as the case where a duplicate Id was assigned to a Relevancy and retained for compatibility.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdsubjectIdthe subject Id
osid.type.TyperelevancyGenusTyperelevancy genus type
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT subjectId or relevancyGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesByGenusTypeForSubjectOnDate
Description

Gets a RelevancyList of the given genus type for the given subject effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdsubjectIdthe subject Id
osid.type.TyperelevancyGenusTyperelevancy genus type
osid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT subjectId, relevancyGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesForSubjects
Description

Gets the relevancies for the given subject Ids.

In plenary mode, the returned list contains all of the relevancies specified in the subject Id list, in the order of the list, including duplicates, or an error results if a relevancy Id in the supplied list is not found or inaccessible. Otherwise, inaccessible relevancies may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdListsubjectIdslist of subject Ids
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT subjectIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesForMappedId
Description

Gets the Relevancy elements mapped to an Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Relevancy may have a different Id than requested, such as the case where a duplicate Id was assigned to a Relevancy and retained for compatibility.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.Ididan Id
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesForMappedIdOnDate
Description

Gets a RelevancyList for the given mapped Id effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.Ididan Id
osid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT id, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesByGenusTypeForMappedId
Description

Gets the Relevancy elements mapped to an Id of the given relevancy genus Type which includes derived genus Types.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Relevancy may have a different Id than requested, such as the case where a duplicate Id was assigned to a Relevancy and retained for compatibility.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.Ididan Id
osid.type.TyperelevancyGenusTyperelevancy genus type
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT id or relevancyGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesByGenusTypeForMappedIdOnDate
Description

Gets a RelevancyList of the given genus type for the given mapped Id effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.Ididan Id
osid.type.TyperelevancyGenusTyperelevancy genus type
osid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT id, relevancyGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesForMappedIds
Description

Gets the relevancies for the given mapped Ids.

In plenary mode, the returned list contains all of the relevancies mapped to the Id or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible relevancies may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdListidsa list of Ids
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT ids is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesForSubjectAndMappedId
Description

Gets the Relevancy mapped to a subject and mapped Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Relevancy may have a different Id than requested, such as the case where a duplicate Id was assigned to a Relevancy and retained for compatibility.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdsubjectIdthe subject Id
osid.id.Ididthe mapped Id
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT subjectId or id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesForSubjectAndMappedIdOnDate
Description

Gets a RelevancyList for the given subject and mapped Id effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdsubjectIdthe subject Id
osid.id.Ididthe mapped Id
osid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT subjectId, id, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevanciesByGenusTypeForSubjectAndMappedId
Description

Gets the Relevancy of the given genus type and mapped to a subject and mapped Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Relevancy may have a different Id than requested, such as the case where a duplicate Id was assigned to a Relevancy and retained for compatibility.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdsubjectIdthe subject Id
osid.id.Ididthe mapped Id
osid.type.TyperelevancyGenusTyperelevancy genus type
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsNULL_ARGUMENT subjectId, id , or relevancyGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetRelevanciesByGenusTypeForSubjectAndMappedIdOnDate
Description

Gets a RelevancyList of the given genus type and related to the given subject and mapped Id effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Parametersosid.id.IdsubjectIdthe subject Id
osid.id.Ididthe mapped Id
osid.type.TyperelevancyGenusTyperelevancy genus type
osid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
Returnosid.ontology.RelevancyListlist of relevancies
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT subjectId, id, relevancyGenusTYpe, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelevancies
Description

Gets all relevancies.

In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session.

In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned.

Returnosid.ontology.RelevancyListlist of relevancies
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.