Queries¶
Objective Query¶
-
class
dlkit.learning.queries.ObjectiveQuery¶ Bases:
dlkit.osid.queries.OsidObjectQuery,dlkit.osid.queries.OsidFederateableQueryThis is the query for searching objectives.
Each method match request produces an
ANDterm while multiple invocations of a method produces a nestedOR.-
match_assessment_id(assessment_id, match)¶ Sets the assessment
Idfor this query.Parameters: - assessment_id (
osid.id.Id) – an assessmentId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_idisnullcompliance: mandatory – This method must be implemented.
- assessment_id (
-
assessment_id_terms¶
-
supports_assessment_query()¶ Tests if an
AssessmentQueryis available for querying activities.Returns: trueif an assessment query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
assessment_query¶ Gets the query for an assessment.
Multiple retrievals produce a nested
ORterm.Returns: the assessment query Return type: osid.assessment.AssessmentQueryRaise: Unimplemented–supports_assessment_query()isfalsecompliance: optional – This method must be implemented if ``supports_assessment_query()`` is ``true``.
-
match_any_assessment(match)¶ Matches an objective that has any assessment assigned.
Parameters: match ( boolean) –trueto match objectives with any assessment,falseto match objectives with no assessmentcompliance: mandatory – This method must be implemented.
-
assessment_terms¶
-
match_knowledge_category_id(grade_id, match)¶ Sets the knowledge category
Idfor this query.Parameters: - grade_id (
osid.id.Id) – a gradeId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–grade_idisnullcompliance: mandatory – This method must be implemented.
- grade_id (
-
knowledge_category_id_terms¶
-
supports_knowledge_category_query()¶ Tests if a
GradeQueryis available for querying knowledge categories.Returns: trueif a grade query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
knowledge_category_query¶ Gets the query for a knowledge category.
Multiple retrievals produce a nested
ORterm.Returns: the grade query Return type: osid.grading.GradeQueryRaise: Unimplemented–supports_knowledge_category_query()isfalsecompliance: optional – This method must be implemented if ``supports_knowledge_category_query()`` is ``true``.
-
match_any_knowledge_category(match)¶ Matches an objective that has any knowledge category.
Parameters: match ( boolean) –trueto match objectives with any knowledge category,falseto match objectives with no knowledge categorycompliance: mandatory – This method must be implemented.
-
knowledge_category_terms¶
-
match_cognitive_process_id(grade_id, match)¶ Sets the cognitive process
Idfor this query.Parameters: - grade_id (
osid.id.Id) – a gradeId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–grade_idisnullcompliance: mandatory – This method must be implemented.
- grade_id (
-
cognitive_process_id_terms¶
-
supports_cognitive_process_query()¶ Tests if a
GradeQueryis available for querying cognitive processes.Returns: trueif a grade query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
cognitive_process_query¶ Gets the query for a cognitive process.
Multiple retrievals produce a nested
ORterm.Returns: the grade query Return type: osid.grading.GradeQueryRaise: Unimplemented–supports_cognitive_process_query()isfalsecompliance: optional – This method must be implemented if ``supports_cognitive_process_query()`` is ``true``.
-
match_any_cognitive_process(match)¶ Matches an objective that has any cognitive process.
Parameters: match ( boolean) –trueto match objectives with any cognitive process,falseto match objectives with no cognitive processcompliance: mandatory – This method must be implemented.
-
cognitive_process_terms¶
-
match_activity_id(activity_id, match)¶ Sets the activity
Idfor this query.Parameters: - activity_id (
osid.id.Id) – an activityId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–activity_idisnullcompliance: mandatory – This method must be implemented.
- activity_id (
-
activity_id_terms¶
-
supports_activity_query()¶ Tests if an
ActivityQueryis available for querying activities.Returns: trueif an activity query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
activity_query¶ Gets the query for an activity.
Multiple retrievals produce a nested
ORterm.Returns: the activity query Return type: osid.learning.ActivityQueryRaise: Unimplemented–supports_activity_query()isfalsecompliance: optional – This method must be implemented if ``supports_activity_query()`` is ``true``.
-
match_any_activity(match)¶ Matches an objective that has any related activity.
Parameters: match ( boolean) –trueto match objectives with any activity,falseto match objectives with no activitycompliance: mandatory – This method must be implemented.
-
activity_terms¶
-
match_requisite_objective_id(requisite_objective_id, match)¶ Sets the requisite objective
Idfor this query.Parameters: - requisite_objective_id (
osid.id.Id) – a requisite objectiveId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–requisite_objective_idisnullcompliance: mandatory – This method must be implemented.
- requisite_objective_id (
-
requisite_objective_id_terms¶
-
supports_requisite_objective_query()¶ Tests if an
ObjectiveQueryis available for querying requisite objectives.Returns: trueif an objective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
requisite_objective_query¶ Gets the query for a requisite objective.
Multiple retrievals produce a nested
ORterm.Returns: the objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_requisite_objective_query()isfalsecompliance: optional – This method must be implemented if ``supports_requisite_objective_query()`` is ``true``.
-
match_any_requisite_objective(match)¶ Matches an objective that has any related requisite.
Parameters: match ( boolean) –trueto match objectives with any requisite,falseto match objectives with no requisitecompliance: mandatory – This method must be implemented.
-
requisite_objective_terms¶
-
match_dependent_objective_id(dependent_objective_id, match)¶ Sets the dependent objective
Idto query objectives dependent on the given objective.Parameters: - dependent_objective_id (
osid.id.Id) – a dependent objectiveId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–dependent_objective_idisnullcompliance: mandatory – This method must be implemented.
- dependent_objective_id (
-
dependent_objective_id_terms¶
-
supports_depndent_objective_query()¶ Tests if an
ObjectiveQueryis available for querying dependent objectives.Returns: trueif an objective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
dependent_objective_query¶ Gets the query for a dependent objective.
Multiple retrievals produce a nested
ORterm.Returns: the objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_dependent_objective_query()isfalsecompliance: optional – This method must be implemented if ``supports_dependent_query()`` is ``true``.
-
match_any_dependent_objective(match)¶ Matches an objective that has any related dependents.
Parameters: match ( boolean) –trueto match objectives with any dependent,falseto match objectives with no dependentscompliance: mandatory – This method must be implemented.
-
dependent_objective_terms¶
-
match_equivalent_objective_id(equivalent_objective_id, match)¶ Sets the equivalent objective
Idto query equivalents.Parameters: - equivalent_objective_id (
osid.id.Id) – an equivalent objectiveId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–equivalent_objective_idisnullcompliance: mandatory – This method must be implemented.
- equivalent_objective_id (
-
equivalent_objective_id_terms¶
-
supports_equivalent_objective_query()¶ Tests if an
ObjectiveQueryis available for querying equivalent objectives.Returns: trueif an objective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
equivalent_objective_query¶ Gets the query for an equivalent objective.
Multiple retrievals produce a nested
ORterm.Returns: the objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_equivalent_objective_query()isfalsecompliance: optional – This method must be implemented if ``supports_equivalent_query()`` is ``true``.
-
match_any_equivalent_objective(match)¶ Matches an objective that has any related equivalents.
Parameters: match ( boolean) –trueto match objectives with any equivalent,falseto match objectives with no equivalentscompliance: mandatory – This method must be implemented.
-
equivalent_objective_terms¶
-
match_ancestor_objective_id(objective_id, match)¶ Sets the objective
Idfor this query to match objectives that have the specified objective as an ancestor.Parameters: - objective_id (
osid.id.Id) – an objectiveId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_idisnullcompliance: mandatory – This method must be implemented.
- objective_id (
-
ancestor_objective_id_terms¶
-
supports_ancestor_objective_query()¶ Tests if an
ObjectiveQueryis available.Returns: trueif an objective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
ancestor_objective_query¶ Gets the query for an objective.
Multiple retrievals produce a nested
ORterm.Returns: the objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_ancestor_objective_query()isfalsecompliance: optional – This method must be implemented if ``supports_ancestor_objective_query()`` is ``true``.
-
match_any_ancestor_objective(match)¶ Matches objectives that have any ancestor.
Parameters: match ( boolean) –trueto match objective with any ancestor,falseto match root objectivescompliance: mandatory – This method must be implemented.
-
ancestor_objective_terms¶
-
match_descendant_objective_id(objective_id, match)¶ Sets the objective
Idfor this query to match objectives that have the specified objective as a descendant.Parameters: - objective_id (
osid.id.Id) – an objectiveId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_idisnullcompliance: mandatory – This method must be implemented.
- objective_id (
-
descendant_objective_id_terms¶
-
supports_descendant_objective_query()¶ Tests if an
ObjectiveQueryis available.Returns: trueif an objective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
descendant_objective_query¶ Gets the query for an objective.
Multiple retrievals produce a nested
ORterm.Returns: the objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_descendant_objective_query()isfalsecompliance: optional – This method must be implemented if ``supports_descendant_objective_query()`` is ``true``.
-
match_any_descendant_objective(match)¶ Matches objectives that have any ancestor.
Parameters: match ( boolean) –trueto match objectives with any ancestor,falseto match leaf objectivescompliance: mandatory – This method must be implemented.
-
descendant_objective_terms¶
-
match_objective_bank_id(objective_bank_id, match)¶ Sets the objective bank
Idfor this query.Parameters: - objective_bank_id (
osid.id.Id) – an objective bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_bank_idisnullcompliance: mandatory – This method must be implemented.
- objective_bank_id (
-
objective_bank_id_terms¶
-
supports_objective_bank_query()¶ Tests if a
ObjectiveBankQueryis available for querying objective banks.Returns: trueif an objective bank query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
objective_bank_query¶ Gets the query for an objective bank.
Multiple retrievals produce a nested
ORterm.Returns: the objective bank query Return type: osid.learning.ObjectiveBankQueryRaise: Unimplemented–supports_objective_bank_query()isfalsecompliance: optional – This method must be implemented if ``supports_objective_bank_query()`` is ``true``.
-
objective_bank_terms¶
-
get_objective_query_record(objective_record_type)¶ Gets the objective query record corresponding to the given
ObjectiverecordType.Multiple retrievals produce a nested
ORterm.Parameters: objective_record_type ( osid.type.Type) – an objective query record typeReturns: the objective query record Return type: osid.learning.records.ObjectiveQueryRecordRaise: NullArgument–objective_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(objective_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Activity Query¶
-
class
dlkit.learning.queries.ActivityQuery¶ Bases:
dlkit.osid.queries.OsidObjectQuery,dlkit.osid.queries.OsidSubjugateableQueryThis is the query for searching activities.
Each method match request produces an
ANDterm while multiple invocations of a method produces a nestedOR.-
match_objective_id(objective_id, match)¶ Sets the objective
Idfor this query.Parameters: - objective_id (
osid.id.Id) – an objectiveId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_idisnullcompliance: mandatory – This method must be implemented.
- objective_id (
-
objective_id_terms¶
-
supports_objective_query()¶ Tests if an
ObjectiveQueryis available for querying objectives.Returns: trueif an objective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
objective_query¶ Gets the query for an objective.
Multiple retrievals produce a nested
ORterm.Returns: the objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_objective_query()isfalsecompliance: optional – This method must be implemented if ``supports_objective_query()`` is ``true``.
-
objective_terms¶
-
match_asset_id(asset_id, match)¶ Sets the asset
Idfor this query.Parameters: - asset_id (
osid.id.Id) – an assetId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–asset_idisnullcompliance: mandatory – This method must be implemented.
- asset_id (
-
asset_id_terms¶
-
supports_asset_query()¶ Tests if an
AssetQueryis available for querying objectives.Returns: trueif an robjective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
asset_query¶ Gets the query for an asset.
Multiple retrievals produce a nested
ORterm.Returns: the asset query Return type: osid.repository.AssetQueryRaise: Unimplemented–supports_asset_query()isfalsecompliance: optional – This method must be implemented if ``supports_objective_query()`` is ``true``.
-
match_any_asset(match)¶ Matches an activity that has any objective assigned.
Parameters: match ( boolean) –trueto match activities with any asset,falseto match activities with no assetcompliance: mandatory – This method must be implemented.
-
asset_terms¶
-
match_course_id(course_id, match)¶ Sets the course
Idfor this query.Parameters: - course_id (
osid.id.Id) – a courseId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–course_idisnullcompliance: mandatory – This method must be implemented.
- course_id (
-
course_id_terms¶
-
supports_course_query()¶ Tests if a
CourseQueryis available for querying courses.Returns: trueif a course query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
course_query¶ Gets the query for a course.
Multiple retrievals produce a nested
ORterm.Returns: the course query Return type: osid.course.CourseQueryRaise: Unimplemented–supports_course_query()isfalsecompliance: optional – This method must be implemented if ``supports_course_query()`` is ``true``.
-
match_any_course(match)¶ Matches an activity that has any course assigned.
Parameters: match ( boolean) –trueto match activities with any courses,falseto match activities with no coursescompliance: mandatory – This method must be implemented.
-
course_terms¶
-
match_assessment_id(assessment_id, match)¶ Sets the assessment
Idfor this query.Parameters: - assessment_id (
osid.id.Id) – an assessmentId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_idisnullcompliance: mandatory – This method must be implemented.
- assessment_id (
-
assessment_id_terms¶
-
supports_assessment_query()¶ Tests if an
AssessmentQueryis available for querying assessments.Returns: trueif an assessment query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
assessment_query¶ Gets the query for a assessment.
Multiple retrievals produce a nested
ORterm.Returns: the assessment query Return type: osid.assessment.AssessmentQueryRaise: Unimplemented–supports_assessment_query()isfalsecompliance: optional – This method must be implemented if ``supports_assessment_query()`` is ``true``.
-
match_any_assessment(match)¶ Matches an activity that has any assessment assigned.
Parameters: match ( boolean) –trueto match activities with any assessments,falseto match activities with no assessmentscompliance: mandatory – This method must be implemented.
-
assessment_terms¶
-
match_objective_bank_id(objective_bank_id, match)¶ Sets the objective bank
Idfor this query.Parameters: - objective_bank_id (
osid.id.Id) – an objective bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_bank_idisnullcompliance: mandatory – This method must be implemented.
- objective_bank_id (
-
objective_bank_id_terms¶
-
supports_objective_bank_query()¶ Tests if a
ObjectiveBankQueryis available for querying resources.Returns: trueif an objective bank query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
objective_bank_query¶ Gets the query for an objective bank.
Multiple retrievals produce a nested
ORterm.Returns: the objective bank query Return type: osid.learning.ObjectiveBankQueryRaise: Unimplemented–supports_objective_bank_query()isfalsecompliance: optional – This method must be implemented if ``supports_objective_bank_query()`` is ``true``.
-
objective_bank_terms¶
-
get_activity_query_record(activity_record_type)¶ Gets the activity query record corresponding to the given
ActivityrecordType.Multiple retrievals produce a nested
ORterm.Parameters: activity_record_type ( osid.type.Type) – an activity query record typeReturns: the activity query record Return type: osid.learning.records.ActivityQueryRecordRaise: NullArgument–activity_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(activity_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Proficiency Query¶
-
class
dlkit.learning.queries.ProficiencyQuery¶ Bases:
dlkit.osid.queries.OsidRelationshipQueryThis is the query for searching proficiencies.
Each method match specifies an
ANDterm while multiple invocations of the same method produce a nestedOR.-
match_resource_id(resource_id, match)¶ Sets the resource
Idfor this query.Parameters: - resource_id (
osid.id.Id) – a resourceId - match (
boolean) –trueif a positive match,falsefor a negative match
Raise: NullArgument–resource_idisnullcompliance: mandatory – This method must be implemented.
- resource_id (
-
resource_id_terms¶
-
supports_resource_query()¶ Tests if a
ResourceQueryis available.Returns: trueif a resource query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
resource_query¶ Gets the query for a resource.
Multiple retrievals produce a nested
ORterm.Returns: the resource query Return type: osid.resource.ResourceQueryRaise: Unimplemented–supports_resource_query()isfalsecompliance: optional – This method must be implemented if ``supports_resource_query()`` is ``true``.
-
resource_terms¶
-
match_objective_id(objective_id, match)¶ Sets the objective
Idfor this query.Parameters: - objective_id (
osid.id.Id) – an objectiveId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_idisnullcompliance: mandatory – This method must be implemented.
- objective_id (
-
objective_id_terms¶
-
supports_objective_query()¶ Tests if an
ObjectiveQueryis available for querying objectives.Returns: trueif an robjective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
objective_query¶ Gets the query for an objective.
Multiple retrievals produce a nested
ORterm.Returns: the objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_objective_query()isfalsecompliance: optional – This method must be implemented if ``supports_objective_query()`` is ``true``.
-
match_any_objective(match)¶ Matches an activity that has any objective assigned.
Parameters: match ( boolean) –trueto match activities with any objective,falseto match activities with no objectivecompliance: mandatory – This method must be implemented.
-
objective_terms¶
-
match_completion(start, end, match)¶ Sets the completion for this query to match completion percentages between the given range inclusive.
Parameters: - start (
decimal) – start of range - end (
decimal) – end of range - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: InvalidArgument–endis less thanstartcompliance: mandatory – This method must be implemented.
- start (
-
completion_terms¶
-
match_minimum_completion(completion, match)¶ Sets the minimum completion for this query.
Parameters: - completion (
decimal) – completion percentage - match (
boolean) –truefor a positive match,falsefor a negative match
compliance: mandatory – This method must be implemented.
- completion (
-
minimum_completion_terms¶
-
match_level_id(grade_id, match)¶ Sets the level grade
Idfor this query.Parameters: - grade_id (
osid.id.Id) – a gradeId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–grade_idisnullcompliance: mandatory – This method must be implemented.
- grade_id (
-
level_id_terms¶
-
supports_level_query()¶ Tests if a
GradeQueryis available.Returns: trueif a grade query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
level_query¶ Gets the query for a grade.
Multiple retrievals produce a nested
ORterm.Returns: the grade query Return type: osid.grading.GradeQueryRaise: Unimplemented–supports_level_query()isfalsecompliance: optional – This method must be implemented if ``supports_level_query()`` is ``true``.
-
match_any_level(match)¶ Matches an assessment offered that has any level assigned.
Parameters: match ( boolean) –trueto match offerings with any level,falseto match offerings with no levslscompliance: mandatory – This method must be implemented.
-
level_terms¶
-
match_objective_bank_id(objective_bank_id, match)¶ Sets the objective bank
Idfor this query.Parameters: - objective_bank_id (
osid.id.Id) – an objective bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_bank_idisnullcompliance: mandatory – This method must be implemented.
- objective_bank_id (
-
objective_bank_id_terms¶
-
supports_objective_bank_query()¶ Tests if a
ObjectiveBankQueryis available for querying resources.Returns: trueif an objective bank query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
objective_bank_query¶ Gets the query for an objective bank.
Multiple retrievals produce a nested
ORterm.Returns: the objective bank query Return type: osid.learning.ObjectiveBankQueryRaise: Unimplemented–supports_objective_bank_query()isfalsecompliance: optional – This method must be implemented if ``supports_objective_bank_query()`` is ``true``.
-
objective_bank_terms¶
-
get_proficiency_query_record(proficiency_record_type)¶ Gets the proficiency query record corresponding to the given
ProficiencyrecordType.Multiple retrievals produce a nested
ORterm.Parameters: proficiency_record_type ( osid.type.Type) – a proficiency offered record typeReturns: the proficiency offered query record Return type: osid.learning.records.ProficiencyQueryRecordRaise: NullArgument–proficiency_offered_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(proficiency_offered_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Objective Bank Query¶
-
class
dlkit.learning.queries.ObjectiveBankQuery¶ Bases:
dlkit.osid.queries.OsidCatalogQueryThis is the query for searching objective banks.
Each method specifies an
ANDterm while multiple invocations of the same method produce a nestedOR.-
match_objective_id(objective_id, match)¶ Sets the objective
Idfor this query.Parameters: - objective_id (
osid.id.Id) – an objectiveId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_idisnullcompliance: mandatory – This method must be implemented.
- objective_id (
-
objective_id_terms¶
-
supports_objective_query()¶ Tests if an
ObjectiveQueryis available.Returns: trueif an objective query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
objective_query¶ Gets the query for an objective.
Multiple retrievals produce a nested
ORterm.Returns: the objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_objective_query()isfalsecompliance: optional – This method must be implemented if ``supports_objective_query()`` is ``true``.
-
match_any_objective(match)¶ Matches an objective bank that has any objective assigned.
Parameters: match ( boolean) –trueto match objective banks with any objective,falseto match objective banks with no objectivescompliance: mandatory – This method must be implemented.
-
objective_terms¶
-
match_activity_id(activity_id, match)¶ Sets the activity
Idfor this query.Parameters: - activity_id (
osid.id.Id) – an activityId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–activity_idisnullcompliance: mandatory – This method must be implemented.
- activity_id (
-
activity_id_terms¶
-
supports_activity_query()¶ Tests if a
ActivityQueryis available for querying activities.Returns: trueif an activity query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
activity_query¶ Gets the query for an activity.
Multiple retrievals produce a nested
ORterm.Returns: the activity query Return type: osid.learning.ActivityQueryRaise: Unimplemented–supports_activity_query()isfalsecompliance: optional – This method must be implemented if ``supports_activity_query()`` is ``true``.
-
match_any_activity(match)¶ Matches an objective bank that has any activity assigned.
Parameters: match ( boolean) –trueto match objective banks with any activity,falseto match objective banks with no activitiescompliance: mandatory – This method must be implemented.
-
activity_terms¶
-
match_ancestor_objective_bank_id(objective_bank_id, match)¶ Sets the objective bank
Idfor this query to match objective banks that have the specified objective bank as an ancestor.Parameters: - objective_bank_id (
osid.id.Id) – an objective bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_bank_idisnullcompliance: mandatory – This method must be implemented.
- objective_bank_id (
-
ancestor_objective_bank_id_terms¶
-
supports_ancestor_objective_bank_query()¶ Tests if a
ObjectiveBankQueryis available for querying ancestor objective banks.Returns: trueif an objective bank query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
ancestor_objective_bank_query¶ Gets the query for an objective bank.
Multiple retrievals produce a nested
ORterm.Returns: the objective bank query Return type: osid.learning.ObjectiveBankQueryRaise: Unimplemented–supports_ancestor_objective_bank_query()isfalsecompliance: optional – This method must be implemented if ``supports_ancestor_calndar_query()`` is ``true``.
-
match_any_ancestor_objective_bank(match)¶ Matches an objective bank that has any ancestor.
Parameters: match ( boolean) –trueto match objective banks with any ancestor,falseto match root objective bankscompliance: mandatory – This method must be implemented.
-
ancestor_objective_bank_terms¶
-
match_descendant_objective_bank_id(objective_bank_id, match)¶ Sets the objective bank
Idfor this query to match objective banks that have the specified objective bank as a descendant.Parameters: - objective_bank_id (
osid.id.Id) – an objective bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–objective_bank_idisnullcompliance: mandatory – This method must be implemented.
- objective_bank_id (
-
descendant_objective_bank_id_terms¶
-
supports_descendant_objective_bank_query()¶ Tests if a
ObjectiveBankQueryis available for querying descendant objective banks.Returns: trueif an objective bank query is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
descendant_objective_bank_query¶ Gets the query for an objective bank.
Multiple retrievals produce a nested
ORterm.Returns: the objective bank query Return type: osid.learning.ObjectiveBankQueryRaise: Unimplemented–supports_descendant_objective_bank_query()isfalsecompliance: optional – This method must be implemented if ``supports_descendant_calndar_query()`` is ``true``.
-
match_any_descendant_objective_bank(match)¶ Matches an objective bank that has any descendant.
Parameters: match ( boolean) –trueto match objective banks with any descendant,falseto match leaf objective bankscompliance: mandatory – This method must be implemented.
-
descendant_objective_bank_terms¶
-
get_objective_bank_query_record(objective_bank_record_type)¶ Gets the objective bank query record corresponding to the given
ObjectiveBankrecordType.Multiple record retrievals produce a nested
ORterm.Parameters: objective_bank_record_type ( osid.type.Type) – an objective bank record typeReturns: the objective bank query record Return type: osid.learning.records.ObjectiveBankQueryRecordRaise: NullArgument–objective_bank_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(objective_bank_record_type)isfalsecompliance: mandatory – This method must be implemented.
-