Queries¶
Question Query¶
-
class
dlkit.assessment.queries.QuestionQuery¶ Bases:
dlkit.osid.queries.OsidObjectQueryThis is the query for searching questions.
Each method match request produces an
ANDterm while multiple invocations of a method produces a nestedOR.-
get_question_query_record(question_record_type)¶ Gets the question record query corresponding to the given
ItemrecordType.Multiple retrievals produce a nested
ORterm.Parameters: question_record_type ( osid.type.Type) – a question record typeReturns: the question query record Return type: osid.assessment.records.QuestionQueryRecordRaise: NullArgument–question_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(question_record_type)isfalse
-
Answer Query¶
-
class
dlkit.assessment.queries.AnswerQuery¶ Bases:
dlkit.osid.queries.OsidObjectQueryThis is the query for searching answers.
Each method match request produces an
ANDterm while multiple invocations of a method produces a nestedOR.-
get_answer_query_record(answer_record_type)¶ Gets the answer record query corresponding to the given
AnswerrecordType.Multiple retrievals produce a nested
ORterm.Parameters: answer_record_type ( osid.type.Type) – an answer record typeReturns: the answer query record Return type: osid.assessment.records.AnswerQueryRecordRaise: NullArgument–answer_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(answer_record_type)isfalse
-
Item Query¶
-
class
dlkit.assessment.queries.ItemQuery¶ Bases:
dlkit.osid.queries.OsidObjectQuery,dlkit.osid.queries.OsidAggregateableQueryThis is the query for searching items.
Each method match request produces an
ANDterm while multiple invocations of a method produces a nestedOR.-
match_learning_objective_id(objective_id, match)¶ Sets the learning objective
Idfor this query.Parameters: - objective_id (
osid.id.Id) – a learning objectiveId - match (
boolean) –truefor a positive match,falsefor negative match
Raise: NullArgument–objective_idisnull- objective_id (
-
learning_objective_id_terms¶
-
supports_learning_objective_query()¶ Tests if an
ObjectiveQueryis available.Returns: trueif a learning objective query is available,falseotherwiseReturn type: boolean
-
learning_objective_query¶ Gets the query for a learning objective.
Multiple retrievals produce a nested
ORterm.Returns: the learning objective query Return type: osid.learning.ObjectiveQueryRaise: Unimplemented–supports_learning_objective_query()isfalse
-
match_any_learning_objective(match)¶ Matches an item with any objective.
Parameters: match ( boolean) –trueto match items with any learning objective,falseto match items with no learning objectives
-
learning_objective_terms¶
-
match_question_id(question_id, match)¶ Sets the question
Idfor this query.Parameters: - question_id (
osid.id.Id) – a questionId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–question_idisnull- question_id (
-
question_id_terms¶
-
supports_question_query()¶ Tests if a
QuestionQueryis available.Returns: trueif a question query is available,falseotherwiseReturn type: boolean
-
question_query¶ Gets the query for a question.
Multiple retrievals produce a nested
ORterm.Returns: the question query Return type: osid.assessment.QuestionQueryRaise: Unimplemented–supports_question_query()isfalse
-
match_any_question(match)¶ Matches an item with any question.
Parameters: match ( boolean) –trueto match items with any question,falseto match items with no questions
-
question_terms¶
-
match_answer_id(answer_id, match)¶ Sets the answer
Idfor this query.Parameters: - answer_id (
osid.id.Id) – an answerId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–answer_idisnull- answer_id (
-
answer_id_terms¶
-
supports_answer_query()¶ Tests if an
AnswerQueryis available.Returns: trueif an answer query is available,falseotherwiseReturn type: boolean
-
answer_query¶ Gets the query for an answer.
Multiple retrievals produce a nested
ORterm.Returns: the answer query Return type: osid.assessment.AnswerQueryRaise: Unimplemented–supports_answer_query()isfalse
-
match_any_answer(match)¶ Matches an item with any answer.
Parameters: match ( boolean) –trueto match items with any answer,falseto match items with no answers
-
answer_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 negative match
Raise: NullArgument–assessment_idisnull- assessment_id (
-
assessment_id_terms¶
-
supports_assessment_query()¶ Tests if an
AssessmentQueryis available.Returns: trueif an assessment query is available,falseotherwiseReturn type: boolean
-
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()isfalse
-
match_any_assessment(match)¶ Matches an item with any assessment.
Parameters: match ( boolean) –trueto match items with any assessment,falseto match items with no assessments
-
assessment_terms¶
-
match_bank_id(bank_id, match)¶ Sets the bank
Idfor this query.Parameters: - bank_id (
osid.id.Id) – a bankId - match (
boolean) –truefor a positive match,falsefor negative match
Raise: NullArgument–bank_idisnull- bank_id (
-
bank_id_terms¶
-
supports_bank_query()¶ Tests if a
BankQueryis available.Returns: trueif a bank query is available,falseotherwiseReturn type: boolean
-
bank_query¶ Gets the query for a bank.
Multiple retrievals produce a nested
ORterm.Returns: the bank query Return type: osid.assessment.BankQueryRaise: Unimplemented–supports_bank_query()isfalse
-
bank_terms¶
-
get_item_query_record(item_record_type)¶ Gets the item record query corresponding to the given
ItemrecordType.Multiple retrievals produce a nested
ORterm.Parameters: item_record_type ( osid.type.Type) – an item record typeReturns: the item query record Return type: osid.assessment.records.ItemQueryRecordRaise: NullArgument–item_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(item_record_type)isfalse
-
Assessment Query¶
-
class
dlkit.assessment.queries.AssessmentQuery¶ Bases:
dlkit.osid.queries.OsidObjectQueryThis is the query for searching assessments.
Each method match request produces an
ANDterm while multiple invocations of a method produces a nestedOR.-
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_idisnull- grade_id (
-
level_id_terms¶
-
supports_level_query()¶ Tests if a
GradeQueryis available.Returns: trueif a grade query is available,falseotherwiseReturn type: boolean
-
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()isfalse
-
match_any_level(match)¶ Matches an assessment that has any level assigned.
Parameters: match ( boolean) –trueto match assessments with any level,falseto match assessments with no level
-
level_terms¶
-
match_rubric_id(assessment_id, match)¶ Sets the rubric 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_idisnull- assessment_id (
-
rubric_id_terms¶
-
supports_rubric_query()¶ Tests if an
AssessmentQueryis available.Returns: trueif a rubric assessment query is available,falseotherwiseReturn type: boolean
-
rubric_query¶ Gets the query for a rubric assessment.
Multiple retrievals produce a nested
ORterm.Returns: the assessment query Return type: osid.assessment.AssessmentQueryRaise: Unimplemented–supports_rubric_query()isfalse
-
match_any_rubric(match)¶ Matches an assessment that has any rubric assessment assigned.
Parameters: match ( boolean) –trueto match assessments with any rubric,falseto match assessments with no rubric
-
rubric_terms¶
-
match_item_id(item_id, match)¶ Sets the item
Idfor this query.Parameters: - item_id (
osid.id.Id) – an itemId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–item_idisnull- item_id (
-
item_id_terms¶
-
supports_item_query()¶ Tests if an
ItemQueryis available.Returns: trueif an item query is available,falseotherwiseReturn type: boolean
-
item_query¶ Gets the query for an item.
Multiple retrievals produce a nested
ORterm.Returns: the item query Return type: osid.assessment.ItemQueryRaise: Unimplemented–supports_item_query()isfalse
-
match_any_item(match)¶ Matches an assessment that has any item.
Parameters: match ( boolean) –trueto match assessments with any item,falseto match assessments with no items
-
item_terms¶
-
match_assessment_offered_id(assessment_offered_id, match)¶ Sets the assessment offered
Idfor this query.Parameters: - assessment_offered_id (
osid.id.Id) – an assessment offeredId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_offered_idisnull- assessment_offered_id (
-
assessment_offered_id_terms¶
-
supports_assessment_offered_query()¶ Tests if an
AssessmentOfferedQueryis available.Returns: trueif an assessment offered query is available,falseotherwiseReturn type: boolean
-
assessment_offered_query¶ Gets the query for an assessment offered.
Multiple retrievals produce a nested
ORterm.Returns: the assessment offered query Return type: osid.assessment.AssessmentOfferedQueryRaise: Unimplemented–supports_assessment_offered_query()isfalse
-
match_any_assessment_offered(match)¶ Matches an assessment that has any offering.
Parameters: match ( boolean) –trueto match assessments with any offering,falseto match assessments with no offerings
-
assessment_offered_terms¶
-
match_assessment_taken_id(assessment_taken_id, match)¶ Sets the assessment taken
Idfor this query.Parameters: - assessment_taken_id (
osid.id.Id) – an assessment takenId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_taken_idisnull- assessment_taken_id (
-
assessment_taken_id_terms¶
-
supports_assessment_taken_query()¶ Tests if an
AssessmentTakenQueryis available.Returns: trueif an assessment taken query is available,falseotherwiseReturn type: boolean
-
assessment_taken_query¶ Gets the query for an assessment taken.
Multiple retrievals produce a nested
ORterm.Returns: the assessment taken query Return type: osid.assessment.AssessmentTakenQueryRaise: Unimplemented–supports_assessment_taken_query()isfalse
-
match_any_assessment_taken(match)¶ Matches an assessment that has any taken version.
Parameters: match ( boolean) –trueto match assessments with any taken assessments,falseto match assessments with no taken assessments
-
assessment_taken_terms¶
-
match_bank_id(bank_id, match)¶ Sets the bank
Idfor this query.Parameters: - bank_id (
osid.id.Id) – a bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–bank_idisnull- bank_id (
-
bank_id_terms¶
-
supports_bank_query()¶ Tests if a
BankQueryis available.Returns: trueif a bank query is available,falseotherwiseReturn type: boolean
-
bank_query¶ Gets the query for a bank.
Multiple retrievals produce a nested
ORterm.Returns: the bank query Return type: osid.assessment.BankQueryRaise: Unimplemented–supports_bank_query()isfalse
-
bank_terms¶
-
get_assessment_query_record(assessment_record_type)¶ Gets the assessment query record corresponding to the given
AssessmentrecordType.Multiple retrievals produce a nested
ORterm.Parameters: assessment_record_type ( osid.type.Type) – an assessment record typeReturns: the assessment query record Return type: osid.assessment.records.AssessmentQueryRecordRaise: NullArgument–assessment_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_record_type)isfalse
-
Assessment Offered Query¶
-
class
dlkit.assessment.queries.AssessmentOfferedQuery¶ Bases:
dlkit.osid.queries.OsidObjectQuery,dlkit.osid.queries.OsidSubjugateableQueryThis is the query for searching assessments.
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_idisnull- assessment_id (
-
assessment_id_terms¶
-
supports_assessment_query()¶ Tests if an
AssessmentQueryis available.Returns: trueif an assessment query is available,falseotherwiseReturn type: boolean
-
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()isfalse
-
assessment_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_idisnull- grade_id (
-
level_id_terms¶
-
supports_level_query()¶ Tests if a
GradeQueryis available.Returns: trueif a grade query is available,falseotherwiseReturn type: boolean
-
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()isfalse
-
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 levsls
-
level_terms¶
-
match_items_sequential(match)¶ Match sequential assessments.
Parameters: match ( boolean) –truefor a positive match,falsefor a negative match
-
items_sequential_terms¶
-
match_items_shuffled(match)¶ Match shuffled item assessments.
Parameters: match ( boolean) –truefor a positive match,falsefor a negative match
-
items_shuffled_terms¶
-
match_start_time(start, end, match)¶ Matches assessments whose start time falls between the specified range inclusive.
Parameters: - start (
osid.calendaring.DateTime) – start of range - end (
osid.calendaring.DateTime) – end of range - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: InvalidArgument–endis less thanstart- start (
-
match_any_start_time(match)¶ Matches offerings that has any start time assigned.
Parameters: match ( boolean) –trueto match offerings with any start time,falseto match offerings with no start time
-
start_time_terms¶
-
match_deadline(start, end, match)¶ Matches assessments whose end time falls between the specified range inclusive.
Parameters: - start (
osid.calendaring.DateTime) – start of range - end (
osid.calendaring.DateTime) – end of range - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: InvalidArgument–endis less thanstartRaise: NullArgument–startorendisnull- start (
-
match_any_deadline(match)¶ Matches offerings that have any deadline assigned.
Parameters: match ( boolean) –trueto match offerings with any deadline,falseto match offerings with no deadline
-
deadline_terms¶
-
match_duration(low, high, match)¶ Matches assessments whose duration falls between the specified range inclusive.
Parameters: - low (
osid.calendaring.Duration) – start range of duration - high (
osid.calendaring.Duration) – end range of duration - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: InvalidArgument–endis less thanstartRaise: NullArgument–startorendisnull- low (
-
match_any_duration(match)¶ Matches offerings that have any duration assigned.
Parameters: match ( boolean) –trueto match offerings with any duration,falseto match offerings with no duration
-
duration_terms¶
-
match_score_system_id(grade_system_id, match)¶ Sets the grade system
Idfor this query.Parameters: - grade_system_id (
osid.id.Id) – a grade systemId - match (
boolean) –true for a positive match, false for a negative match
Raise: NullArgument–grade_system_idisnull- grade_system_id (
-
score_system_id_terms¶
-
supports_score_system_query()¶ Tests if a
GradeSystemQueryis available.Returns: trueif a grade system query is available,falseotherwiseReturn type: boolean
-
score_system_query¶ Gets the query for a grade system.
Multiple retrievals produce a nested
ORterm.Returns: the grade system query Return type: osid.grading.GradeSystemQueryRaise: Unimplemented–supports_score_system_query()isfalse
-
match_any_score_system(match)¶ Matches taken assessments that have any grade system assigned.
Parameters: match ( boolean) –trueto match assessments with any grade system,falseto match assessments with no grade system
-
score_system_terms¶
-
match_grade_system_id(grade_system_id, match)¶ Sets the grade system
Idfor this query.Parameters: - grade_system_id (
osid.id.Id) – a grade systemId - match (
boolean) –true for a positive match, false for a negative match
Raise: NullArgument–grade_system_idisnull- grade_system_id (
-
grade_system_id_terms¶
-
supports_grade_system_query()¶ Tests if a
GradeSystemQueryis available.Returns: trueif a grade system query is available,falseotherwiseReturn type: boolean
-
grade_system_query¶ Gets the query for a grade system.
Multiple retrievals produce a nested
ORterm.Returns: the grade system query Return type: osid.grading.GradeSystemQueryRaise: Unimplemented–supports_score_system_query()isfalse
-
match_any_grade_system(match)¶ Matches taken assessments that have any grade system assigned.
Parameters: match ( boolean) –trueto match assessments with any grade system,falseto match assessments with no grade system
-
grade_system_terms¶
-
match_rubric_id(assessment_offered_id, match)¶ Sets the rubric assessment offered
Idfor this query.Parameters: - assessment_offered_id (
osid.id.Id) – an assessment offeredId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_offered_idisnull- assessment_offered_id (
-
rubric_id_terms¶
-
supports_rubric_query()¶ Tests if an
AssessmentOfferedQueryis available.Returns: trueif a rubric assessment offered query is available,falseotherwiseReturn type: boolean
-
rubric_query¶ Gets the query for a rubric assessment.
Multiple retrievals produce a nested
ORterm.Returns: the assessment offered query Return type: osid.assessment.AssessmentOfferedQueryRaise: Unimplemented–supports_rubric_query()isfalse
-
match_any_rubric(match)¶ Matches an assessment offered that has any rubric assessment assigned.
Parameters: match ( boolean) –trueto match assessments offered with any rubric,falseto match assessments offered with no rubric
-
rubric_terms¶
-
match_assessment_taken_id(assessment_taken_id, match)¶ Sets the assessment taken
Idfor this query.Parameters: - assessment_taken_id (
osid.id.Id) – an assessment takenId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_taken_idisnull- assessment_taken_id (
-
assessment_taken_id_terms¶
-
supports_assessment_taken_query()¶ Tests if an
AssessmentTakenQueryis available.Returns: trueif an assessment taken query is available,falseotherwiseReturn type: boolean
-
assessment_taken_query¶ Gets the query for an assessment taken.
Multiple retrievals produce a nested
ORterm.Returns: the assessment taken query Return type: osid.assessment.AssessmentTakenQueryRaise: Unimplemented–supports_assessment_taken_query()isfalse
-
match_any_assessment_taken(match)¶ Matches offerings that have any taken assessment version.
Parameters: match ( boolean) –trueto match offerings with any taken assessment,falseto match offerings with no assessmen taken
-
assessment_taken_terms¶
-
match_bank_id(bank_id, match)¶ Sets the bank
Idfor this query.Parameters: - bank_id (
osid.id.Id) – a bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–bank_idisnull- bank_id (
-
bank_id_terms¶
-
supports_bank_query()¶ Tests if a
BankQueryis available.Returns: trueif a bank query is available,falseotherwiseReturn type: boolean
-
bank_query¶ Gets the query for a bank.
Multiple retrievals produce a nested
ORterm.Returns: the bank query Return type: osid.assessment.BankQueryRaise: Unimplemented–supports_bank_query()isfalse
-
bank_terms¶
-
get_assessment_offered_query_record(assessment_offered_record_type)¶ Gets the assessment offered query record corresponding to the given
AssessmentOfferedrecordType.Multiple retrievals produce a nested
ORterm.Parameters: assessment_offered_record_type ( osid.type.Type) – an assessment offered record typeReturns: the assessment offered query record Return type: osid.assessment.records.AssessmentOfferedQueryRecordRaise: NullArgument–assessment_offered_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_offered_record_type)isfalse
-
Assessment Taken Query¶
-
class
dlkit.assessment.queries.AssessmentTakenQuery¶ Bases:
dlkit.osid.queries.OsidObjectQueryThis is the query for searching assessments.
Each method match request produces an
ANDterm while multiple invocations of a method produces a nestedOR.-
match_assessment_offered_id(assessment_offered_id, match)¶ Sets the assessment offered
Idfor this query.Parameters: - assessment_offered_id (
osid.id.Id) – an assessmentId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_offered_idisnull- assessment_offered_id (
-
assessment_offered_id_terms¶
-
supports_assessment_offered_query()¶ Tests if an
AssessmentOfferedQueryis available.Returns: trueif an assessment offered query is available,falseotherwiseReturn type: boolean
-
assessment_offered_query¶ Gets the query for an assessment.
Multiple retrievals produce a nested
ORterm.Returns: the assessment offered query Return type: osid.assessment.AssessmentOfferedQueryRaise: Unimplemented–supports_assessment_offered_query()isfalse
-
assessment_offered_terms¶
-
match_taker_id(resource_id, match)¶ Sets the resource
Idfor this query.Parameters: - resource_id (
osid.id.Id) – a resourceId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–resource_idisnull- resource_id (
-
taker_id_terms¶
-
supports_taker_query()¶ Tests if a
ResourceQueryis available.Returns: trueif a resource query is available,falseotherwiseReturn type: boolean
-
taker_query¶ Gets the query for a resource.
Multiple retrievals produce a nested
ORterm.Returns: the resource query Return type: osid.resource.ResourceQueryRaise: Unimplemented–supports_taker_query()isfalse
-
taker_terms¶
-
match_taking_agent_id(agent_id, match)¶ Sets the agent
Idfor this query.Parameters: - agent_id (
osid.id.Id) – an agentId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–agent_idisnull- agent_id (
-
taking_agent_id_terms¶
-
supports_taking_agent_query()¶ Tests if an
AgentQueryis available.Returns: trueif an agent query is available,falseotherwiseReturn type: boolean
-
taking_agent_query¶ Gets the query for an agent.
Multiple retrievals produce a nested
ORterm.Returns: the agent query Return type: osid.authentication.AgentQueryRaise: Unimplemented–supports_taking_agent_query()isfalse
-
taking_agent_terms¶
-
match_actual_start_time(start, end, match)¶ Matches assessments whose start time falls between the specified range inclusive.
Parameters: - start (
osid.calendaring.DateTime) – start of range - end (
osid.calendaring.DateTime) – end of range - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: InvalidArgument–endis less thanstartRaise: NullArgument–startorendisnull- start (
-
match_any_actual_start_time(match)¶ Matches taken assessments taken that have begun.
Parameters: match ( boolean) –trueto match assessments taken started,falseto match assessments taken that have not begun
-
actual_start_time_terms¶
-
match_completion_time(start, end, match)¶ Matches assessments whose completion time falls between the specified range inclusive.
Parameters: - start (
osid.calendaring.DateTime) – start of range - end (
osid.calendaring.DateTime) – end of range - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: InvalidArgument–endis less thanstartRaise: NullArgument–startorendisnull- start (
-
match_any_completion_time(match)¶ Matches taken assessments taken that have completed.
Parameters: match ( boolean) –trueto match assessments taken completed,falseto match assessments taken that are incomplete
-
completion_time_terms¶
-
match_time_spent(low, high, match)¶ Matches assessments where the time spent falls between the specified range inclusive.
Parameters: - low (
osid.calendaring.Duration) – start of duration range - high (
osid.calendaring.Duration) – end of duration range - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: InvalidArgument–highis less thanlowRaise: NullArgument–loworhighisnull- low (
-
time_spent_terms¶
-
match_score_system_id(grade_system_id, match)¶ Sets the grade system
Idfor this query.Parameters: - grade_system_id (
osid.id.Id) – a grade systemId - match (
boolean) –true for a positive match, false for a negative match
Raise: NullArgument–grade_system_idisnull- grade_system_id (
-
score_system_id_terms¶
-
supports_score_system_query()¶ Tests if a
GradeSystemQueryis available.Returns: trueif a grade system query is available,falseotherwiseReturn type: boolean
-
score_system_query¶ Gets the query for a grade system.
Multiple retrievals produce a nested
ORterm.Returns: the grade system query Return type: osid.grading.GradeSystemQueryRaise: Unimplemented–supports_score_system_query()isfalse
-
match_any_score_system(match)¶ Matches taken assessments that have any grade system assigned.
Parameters: match ( boolean) –trueto match assessments with any grade system,falseto match assessments with no grade system
-
score_system_terms¶
-
match_score(low, high, match)¶ Matches assessments whose score falls between the specified range inclusive.
Parameters: - low (
decimal) – start of range - high (
decimal) – end of range - match (
boolean) –truefor a positive match,falsefor negative match
Raise: InvalidArgument–highis less thanlow- low (
-
match_any_score(match)¶ Matches taken assessments that have any score assigned.
Parameters: match ( boolean) –trueto match assessments with any score,falseto match assessments with no score
-
score_terms¶
-
match_grade_id(grade_id, match)¶ Sets the grade
Idfor this query.Parameters: - grade_id (
osid.id.Id) – a gradeId - match (
boolean) –true for a positive match, false for a negative match
Raise: NullArgument–grade_idisnull- grade_id (
-
grade_id_terms¶
-
supports_grade_query()¶ Tests if a
GradeQueryis available.Returns: trueif a grade query is available,falseotherwiseReturn type: boolean
-
grade_query¶ Gets the query for a grade.
Multiple retrievals produce a nested
ORterm.Returns: the grade query Return type: osid.grading.GradeQueryRaise: Unimplemented–supports_grade_query()isfalse
-
match_any_grade(match)¶ Matches taken assessments that have any grade assigned.
Parameters: match ( boolean) –trueto match assessments with any grade,falseto match assessments with no grade
-
grade_terms¶
-
match_feedback(comments, string_match_type, match)¶ Sets the comment string for this query.
Parameters: - comments (
string) – comment string - string_match_type (
osid.type.Type) – the string match type - match (
boolean) –truefor a positive match,falsefor negative match
Raise: InvalidArgument–comments isnot ofstring_match_typeRaise: NullArgument–commentsorstring_match_typeisnullRaise: Unsupported–supports_string_match_type(string_match_type)isfalse- comments (
-
match_any_feedback(match)¶ Matches taken assessments that have any comments.
Parameters: match ( boolean) –trueto match assessments with any comments,falseto match assessments with no comments
-
feedback_terms¶
-
match_rubric_id(assessment_taken_id, match)¶ Sets the rubric assessment taken
Idfor this query.Parameters: - assessment_taken_id (
osid.id.Id) – an assessment takenId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_taken_idisnull- assessment_taken_id (
-
rubric_id_terms¶
-
supports_rubric_query()¶ Tests if an
AssessmentTakenQueryis available.Returns: trueif a rubric assessment taken query is available,falseotherwiseReturn type: boolean
-
rubric_query¶ Gets the query for a rubric assessment.
Multiple retrievals produce a nested
ORterm.Returns: the assessment taken query Return type: osid.assessment.AssessmentTakenQueryRaise: Unimplemented–supports_rubric_query()isfalse
-
match_any_rubric(match)¶ Matches an assessment taken that has any rubric assessment assigned.
Parameters: match ( boolean) –trueto match assessments taken with any rubric,falseto match assessments taken with no rubric
-
rubric_terms¶
-
match_bank_id(bank_id, match)¶ Sets the bank
Idfor this query.Parameters: - bank_id (
osid.id.Id) – a bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–bank_idisnull- bank_id (
-
bank_id_terms¶
-
supports_bank_query()¶ Tests if a
BankQueryis available.Returns: trueif a bank query is available,falseotherwiseReturn type: boolean
-
bank_query¶ Gets the query for a bank.
Multiple retrievals produce a nested
ORterm.Returns: the bank query Return type: osid.assessment.BankQueryRaise: Unimplemented–supports_bank_query()isfalse
-
bank_terms¶
-
get_assessment_taken_query_record(assessment_taken_record_type)¶ Gets the assessment taken query record corresponding to the given
AssessmentTakenrecordType.Multiple retrievals produce a nested
ORterm.Parameters: assessment_taken_record_type ( osid.type.Type) – an assessment taken record typeReturns: the assessment taken query record Return type: osid.assessment.records.AssessmentTakenQueryRecordRaise: NullArgument–assessment_taken_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_taken_record_type)isfalse
-
Bank Query¶
-
class
dlkit.assessment.queries.BankQuery¶ Bases:
dlkit.osid.queries.OsidCatalogQueryThis is the query for searching banks Each method specifies an
ANDterm while multiple invocations of the same method produce a nestedOR.-
match_item_id(item_id, match)¶ Sets the item
Idfor this query.Parameters: - item_id (
osid.id.Id) – an itemId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–item_idisnull- item_id (
-
item_id_terms¶
-
supports_item_query()¶ Tests if a
ItemQueryis available.Returns: trueif an item query is available,falseotherwiseReturn type: boolean
-
item_query¶ Gets the query for an item.
Multiple retrievals produce a nested
ORterm.Returns: the item query Return type: osid.assessment.ItemQueryRaise: Unimplemented–supports_item_query()isfalse
-
match_any_item(match)¶ Matches assessment banks that have any item assigned.
Parameters: match ( boolean) –trueto match banks with any item,falseto match assessments with no item
-
item_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_idisnull- assessment_id (
-
assessment_id_terms¶
-
supports_assessment_query()¶ Tests if an
AssessmentQueryis available.Returns: trueif an assessment query is available,falseotherwiseReturn type: boolean
-
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()isfalse
-
match_any_assessment(match)¶ Matches assessment banks that have any assessment assigned.
Parameters: match ( boolean) –trueto match banks with any assessment,falseto match banks with no assessment
-
assessment_terms¶
-
match_assessment_offered_id(assessment_offered_id, match)¶ Sets the assessment offered
Idfor this query.Parameters: - assessment_offered_id (
osid.id.Id) – an assessmentId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–assessment_offered_idisnull- assessment_offered_id (
-
assessment_offered_id_terms¶
-
supports_assessment_offered_query()¶ Tests if an
AssessmentOfferedQueryis available.Returns: trueif an assessment offered query is available,falseotherwiseReturn type: boolean
-
assessment_offered_query¶ Gets the query for an assessment offered.
Multiple retrievals produce a nested
ORterm.Returns: the assessment offered query Return type: osid.assessment.AssessmentOfferedQueryRaise: Unimplemented–supports_assessment_offered_query()isfalse
-
match_any_assessment_offered(match)¶ Matches assessment banks that have any assessment offering assigned.
Parameters: match ( boolean) –trueto match banks with any assessment offering,falseto match banks with no offering
-
assessment_offered_terms¶
-
match_ancestor_bank_id(bank_id, match)¶ Sets the bank
Idfor to match banks in which the specified bank is an acestor.Parameters: - bank_id (
osid.id.Id) – a bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–bank_idisnull- bank_id (
-
ancestor_bank_id_terms¶
-
supports_ancestor_bank_query()¶ Tests if a
BankQueryis available.Returns: trueif a bank query is available,falseotherwiseReturn type: boolean
-
ancestor_bank_query¶ Gets the query for an ancestor bank.
Multiple retrievals produce a nested
ORterm.Returns: the bank query Return type: osid.assessment.BankQueryRaise: Unimplemented–supports_ancestor_bank_query()isfalse
-
match_any_ancestor_bank(match)¶ Matches a bank that has any ancestor.
Parameters: match ( boolean) –trueto match banks with any ancestor banks,falseto match root banks
-
ancestor_bank_terms¶
-
match_descendant_bank_id(bank_id, match)¶ Sets the bank
Idfor to match banks in which the specified bank is a descendant.Parameters: - bank_id (
osid.id.Id) – a bankId - match (
boolean) –truefor a positive match,falsefor a negative match
Raise: NullArgument–bank_idisnull- bank_id (
-
descendant_bank_id_terms¶
-
supports_descendant_bank_query()¶ Tests if a
BankQueryis available.Returns: trueif a bank query is available,falseotherwiseReturn type: boolean
-
descendant_bank_query¶ Gets the query for a descendant bank.
Multiple retrievals produce a nested
ORterm.Returns: the bank query Return type: osid.assessment.BankQueryRaise: Unimplemented–supports_descendant_bank_query()isfalse
-
match_any_descendant_bank(match)¶ Matches a bank that has any descendant.
Parameters: match ( boolean) –trueto match banks with any descendant banks,falseto match leaf banks
-
descendant_bank_terms¶
-
get_bank_query_record(bank_record_type)¶ Gets the bank query record corresponding to the given
BankrecordType.Multiple record retrievals produce a nested
ORterm.Parameters: bank_record_type ( osid.type.Type) – a bank record typeReturns: the bank query record Return type: osid.assessment.records.BankQueryRecordRaise: NullArgument–bank_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(bank_record_type)isfalse
-