OSID Logo
OSID Specifications
ontology package
Version 3.1.0
Interfaceosid.ontology.SubjectSmartOntologySession
Implementsosid.OsidSession
Used Byosid.ontology.OntologyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A SubjectQuery can be retrieved from this session and mapped to this Ontology to create a virtual collection of Subjects. The entries may be sequenced using the SubjectSearchOrder from this session.

This Ontology has a default query that matches any subject and a default search order that specifies no sequencing. The queries may be examined using a SubjectQueryInspector. The query may be modified by converting the inspector back to a SubjectQuery.

MethodgetOntologyId
Description

Gets the Ontology Id associated with this session.

Returnosid.id.Id the Ontology Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetOntology
Description

Gets the Ontology associated with this session.

Returnosid.ontology.Ontology the Ontology associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartOntologies
Description

Tests if this user can manage smart ontologies. 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 smart operations.

Returnboolean false if smart ontology methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetSubjectQuery
Description

Gets a subject query.

Returnosid.ontology.SubjectQuery the subject query
Compliancemandatory This method must be implemented.
MethodgetSubjectSearchOrder
Description

Gets a subject search order.

Returnosid.ontology.SubjectSearchOrder the subject search order
Compliancemandatory This method must be implemented.
MethodapplySubjectQuery
Description

Applies a subject query to this ontology.

Parametersosid.ontology.SubjectQuerysubjectQuery the subject query
ErrorsNULL_ARGUMENT subjectQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED subjectQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectSubjectQuery
Description

Gets a subject query inspector for this ontology.

Returnosid.ontology.SubjectQueryInspector the subject query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplySubjectSequencing
Description

Applies a subject search order to this ontology.

Parametersosid.ontology.SubjectSearchOrdersubjectSearchOrder the subject search order
ErrorsNULL_ARGUMENT subjectSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED subjectSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetSubjectQueryFromInspector
Description

Gets a subject query from an inspector.

Parametersosid.ontology.SubjectQueryInspectorsubjectQueryInspector a subject query inspector
Returnosid.ontology.SubjectQuery the subject query
ErrorsNULL_ARGUMENT subjectQueryInspector is null
UNSUPPORTED subjectQueryInspector is not of this service
Compliancemandatory This method must be implemented.