| Interface | osid.ontology.SubjectOntologySession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | This session provides methods to retrieve  This lookup session defines two views: 
 | ||
| Method | canLookupSubjectOntologyMappings | ||
| 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  | ||
| Return | boolean |  false if looking up mappings is not authorized, true 
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeOntologyView | ||
| 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. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | usePlenaryOntologyView | ||
| Description | A complete view of the  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getSubjectIdsByOntology | ||
| Description | Gets the list of  | ||
| Parameters | osid.id.Id | ontologyId |  Id of the Ontology  | 
| Return | osid.id.IdList | list of related subject  Ids  | |
| Errors | NOT_FOUND |  ontologyId is not found | |
| NULL_ARGUMENT |  ontologyId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubjectsByOntology | ||
| Description | Gets the list of  | ||
| Parameters | osid.id.Id | ontologyId |  Id of the Ontology  | 
| Return | osid.ontology.SubjectList | list of related subject  Ids  | |
| Errors | NOT_FOUND |  ontologyId is not found | |
| NULL_ARGUMENT |  ontologyId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubjectIdsByOntologies | ||
| Description | Gets the list of  | ||
| Parameters | osid.id.IdList | ontologyIds | list of ontology  Ids  | 
| Return | osid.id.IdList | list of subject  Ids  | |
| Errors | NULL_ARGUMENT |  ontologyIds is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubjectsByOntologies | ||
| Description | Gets the list of  | ||
| Parameters | osid.id.IdList | ontologyIds | list of ontology  Ids  | 
| Return | osid.ontology.SubjectList | list of subjects | |
| Errors | NULL_ARGUMENT |  ontologyIds is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOntologyIdsBySubject | ||
| Description | Gets the list of  | ||
| Parameters | osid.id.Id | subjectId |  Id of a Subject  | 
| Return | osid.id.IdList | list of ontology  Ids  | |
| Errors | NOT_FOUND |  subjectId is not found | |
| NULL_ARGUMENT |  subjectId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOntologiesBySubject | ||
| Description | Gets the list of  | ||
| Parameters | osid.id.Id | subjectId |  Id of a Subject  | 
| Return | osid.ontology.OntologyList | list of ontologies | |
| Errors | NOT_FOUND |  subjectId is not found | |
| NULL_ARGUMENT |  subjectId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |