Queries¶
Question Query¶
-
class
dlkit.assessment.queries.
QuestionQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
This is the query for searching questions.
Each method match request produces an
AND
term 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
Item
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: question_record_type ( osid.type.Type
) – a question record typeReturns: the question query record Return type: osid.assessment.records.QuestionQueryRecord
Raise: NullArgument
–question_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(question_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Answer Query¶
-
class
dlkit.assessment.queries.
AnswerQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
This is the query for searching answers.
Each method match request produces an
AND
term 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
Answer
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: answer_record_type ( osid.type.Type
) – an answer record typeReturns: the answer query record Return type: osid.assessment.records.AnswerQueryRecord
Raise: NullArgument
–answer_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(answer_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Item Query¶
-
class
dlkit.assessment.queries.
ItemQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
,dlkit.osid.queries.OsidAggregateableQuery
This is the query for searching items.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
match_learning_objective_id
(objective_id, match)¶ Sets the learning objective
Id
for this query.Parameters: - objective_id (
osid.id.Id
) – a learning objectiveId
- match (
boolean
) –true
for a positive match,false
for negative match
Raise: NullArgument
–objective_id
isnull
compliance: mandatory – This method must be implemented.
- objective_id (
-
learning_objective_id_terms
¶
-
supports_learning_objective_query
()¶ Tests if an
ObjectiveQuery
is available.Returns: true
if a learning objective query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
learning_objective_query
¶ Gets the query for a learning objective.
Multiple retrievals produce a nested
OR
term.Returns: the learning objective query Return type: osid.learning.ObjectiveQuery
Raise: Unimplemented
–supports_learning_objective_query()
isfalse
compliance: optional – This method must be implemented if ``supports_learning_objective_query()`` is ``true``.
-
match_any_learning_objective
(match)¶ Matches an item with any objective.
Parameters: match ( boolean
) –true
to match items with any learning objective,false
to match items with no learning objectivescompliance: mandatory – This method must be implemented.
-
learning_objective_terms
¶
-
match_question_id
(question_id, match)¶ Sets the question
Id
for this query.Parameters: - question_id (
osid.id.Id
) – a questionId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–question_id
isnull
compliance: mandatory – This method must be implemented.
- question_id (
-
question_id_terms
¶
-
supports_question_query
()¶ Tests if a
QuestionQuery
is available.Returns: true
if a question query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
question_query
¶ Gets the query for a question.
Multiple retrievals produce a nested
OR
term.Returns: the question query Return type: osid.assessment.QuestionQuery
Raise: Unimplemented
–supports_question_query()
isfalse
compliance: optional – This method must be implemented if ``supports_learning_objective_query()`` is ``true``.
-
match_any_question
(match)¶ Matches an item with any question.
Parameters: match ( boolean
) –true
to match items with any question,false
to match items with no questionscompliance: mandatory – This method must be implemented.
-
question_terms
¶
-
match_answer_id
(answer_id, match)¶ Sets the answer
Id
for this query.Parameters: - answer_id (
osid.id.Id
) – an answerId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–answer_id
isnull
compliance: mandatory – This method must be implemented.
- answer_id (
-
answer_id_terms
¶
-
supports_answer_query
()¶ Tests if an
AnswerQuery
is available.Returns: true
if an answer query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
answer_query
¶ Gets the query for an answer.
Multiple retrievals produce a nested
OR
term.Returns: the answer query Return type: osid.assessment.AnswerQuery
Raise: Unimplemented
–supports_answer_query()
isfalse
compliance: optional – This method must be implemented if ``supports_learning_objective_query()`` is ``true``.
-
match_any_answer
(match)¶ Matches an item with any answer.
Parameters: match ( boolean
) –true
to match items with any answer,false
to match items with no answerscompliance: mandatory – This method must be implemented.
-
answer_terms
¶
-
match_assessment_id
(assessment_id, match)¶ Sets the assessment
Id
for this query.Parameters: - assessment_id (
osid.id.Id
) – an assessmentId
- match (
boolean
) –true
for a positive match,false
for negative match
Raise: NullArgument
–assessment_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_id (
-
assessment_id_terms
¶
-
supports_assessment_query
()¶ Tests if an
AssessmentQuery
is available.Returns: true
if an assessment query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
assessment_query
¶ Gets the query for an assessment.
Multiple retrievals produce a nested
OR
term.Returns: the assessment query Return type: osid.assessment.AssessmentQuery
Raise: Unimplemented
–supports_assessment_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_query()`` is ``true``.
-
match_any_assessment
(match)¶ Matches an item with any assessment.
Parameters: match ( boolean
) –true
to match items with any assessment,false
to match items with no assessmentscompliance: mandatory – This method must be implemented.
-
assessment_terms
¶
-
match_bank_id
(bank_id, match)¶ Sets the bank
Id
for this query.Parameters: - bank_id (
osid.id.Id
) – a bankId
- match (
boolean
) –true
for a positive match,false
for negative match
Raise: NullArgument
–bank_id
isnull
compliance: mandatory – This method must be implemented.
- bank_id (
-
bank_id_terms
¶
-
supports_bank_query
()¶ Tests if a
BankQuery
is available.Returns: true
if a bank query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
bank_query
¶ Gets the query for a bank.
Multiple retrievals produce a nested
OR
term.Returns: the bank query Return type: osid.assessment.BankQuery
Raise: Unimplemented
–supports_bank_query()
isfalse
compliance: optional – This method must be implemented if ``supports_bank_query()`` is ``true``.
-
bank_terms
¶
-
get_item_query_record
(item_record_type)¶ Gets the item record query corresponding to the given
Item
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: item_record_type ( osid.type.Type
) – an item record typeReturns: the item query record Return type: osid.assessment.records.ItemQueryRecord
Raise: NullArgument
–item_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(item_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Assessment Query¶
-
class
dlkit.assessment.queries.
AssessmentQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
This is the query for searching assessments.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
match_level_id
(grade_id, match)¶ Sets the level grade
Id
for 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_id
isnull
compliance: mandatory – This method must be implemented.
- grade_id (
-
level_id_terms
¶
-
supports_level_query
()¶ Tests if a
GradeQuery
is available.Returns: true
if a grade query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
level_query
¶ Gets the query for a grade.
Multiple retrievals produce a nested
OR
term.Returns: the grade query Return type: osid.grading.GradeQuery
Raise: Unimplemented
–supports_level_query()
isfalse
compliance: optional – This method must be implemented if ``supports_level_query()`` is ``true``.
-
match_any_level
(match)¶ Matches an assessment that has any level assigned.
Parameters: match ( boolean
) –true
to match assessments with any level,false
to match assessments with no levelcompliance: mandatory – This method must be implemented.
-
level_terms
¶
-
match_rubric_id
(assessment_id, match)¶ Sets the rubric assessment
Id
for this query.Parameters: - assessment_id (
osid.id.Id
) – an assessmentId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_id (
-
rubric_id_terms
¶
-
supports_rubric_query
()¶ Tests if an
AssessmentQuery
is available.Returns: true
if a rubric assessment query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
rubric_query
¶ Gets the query for a rubric assessment.
Multiple retrievals produce a nested
OR
term.Returns: the assessment query Return type: osid.assessment.AssessmentQuery
Raise: Unimplemented
–supports_rubric_query()
isfalse
compliance: optional – This method must be implemented if ``supports_rubric_query()`` is ``true``.
-
match_any_rubric
(match)¶ Matches an assessment that has any rubric assessment assigned.
Parameters: match ( boolean
) –true
to match assessments with any rubric,false
to match assessments with no rubriccompliance: mandatory – This method must be implemented.
-
rubric_terms
¶
-
match_item_id
(item_id, match)¶ Sets the item
Id
for this query.Parameters: - item_id (
osid.id.Id
) – an itemId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–item_id
isnull
compliance: mandatory – This method must be implemented.
- item_id (
-
item_id_terms
¶
-
supports_item_query
()¶ Tests if an
ItemQuery
is available.Returns: true
if an item query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
item_query
¶ Gets the query for an item.
Multiple retrievals produce a nested
OR
term.Returns: the item query Return type: osid.assessment.ItemQuery
Raise: Unimplemented
–supports_item_query()
isfalse
compliance: optional – This method must be implemented if ``supports_item_query()`` is ``true``.
-
match_any_item
(match)¶ Matches an assessment that has any item.
Parameters: match ( boolean
) –true
to match assessments with any item,false
to match assessments with no itemscompliance: mandatory – This method must be implemented.
-
item_terms
¶
-
match_assessment_offered_id
(assessment_offered_id, match)¶ Sets the assessment offered
Id
for this query.Parameters: - assessment_offered_id (
osid.id.Id
) – an assessment offeredId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_offered_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_offered_id (
-
assessment_offered_id_terms
¶
-
supports_assessment_offered_query
()¶ Tests if an
AssessmentOfferedQuery
is available.Returns: true
if an assessment offered query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
assessment_offered_query
¶ Gets the query for an assessment offered.
Multiple retrievals produce a nested
OR
term.Returns: the assessment offered query Return type: osid.assessment.AssessmentOfferedQuery
Raise: Unimplemented
–supports_assessment_offered_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_offered_query()`` is ``true``.
-
match_any_assessment_offered
(match)¶ Matches an assessment that has any offering.
Parameters: match ( boolean
) –true
to match assessments with any offering,false
to match assessments with no offeringscompliance: mandatory – This method must be implemented.
-
assessment_offered_terms
¶
-
match_assessment_taken_id
(assessment_taken_id, match)¶ Sets the assessment taken
Id
for this query.Parameters: - assessment_taken_id (
osid.id.Id
) – an assessment takenId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_taken_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_taken_id (
-
assessment_taken_id_terms
¶
-
supports_assessment_taken_query
()¶ Tests if an
AssessmentTakenQuery
is available.Returns: true
if an assessment taken query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
assessment_taken_query
¶ Gets the query for an assessment taken.
Multiple retrievals produce a nested
OR
term.Returns: the assessment taken query Return type: osid.assessment.AssessmentTakenQuery
Raise: Unimplemented
–supports_assessment_taken_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_taken_query()`` is ``true``.
-
match_any_assessment_taken
(match)¶ Matches an assessment that has any taken version.
Parameters: match ( boolean
) –true
to match assessments with any taken assessments,false
to match assessments with no taken assessmentscompliance: mandatory – This method must be implemented.
-
assessment_taken_terms
¶
-
match_bank_id
(bank_id, match)¶ Sets the bank
Id
for this query.Parameters: - bank_id (
osid.id.Id
) – a bankId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–bank_id
isnull
compliance: mandatory – This method must be implemented.
- bank_id (
-
bank_id_terms
¶
-
supports_bank_query
()¶ Tests if a
BankQuery
is available.Returns: true
if a bank query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
bank_query
¶ Gets the query for a bank.
Multiple retrievals produce a nested
OR
term.Returns: the bank query Return type: osid.assessment.BankQuery
Raise: Unimplemented
–supports_bank_query()
isfalse
compliance: optional – This method must be implemented if ``supports_bank_query()`` is ``true``.
-
bank_terms
¶
-
get_assessment_query_record
(assessment_record_type)¶ Gets the assessment query record corresponding to the given
Assessment
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: assessment_record_type ( osid.type.Type
) – an assessment record typeReturns: the assessment query record Return type: osid.assessment.records.AssessmentQueryRecord
Raise: NullArgument
–assessment_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(assessment_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Assessment Offered Query¶
-
class
dlkit.assessment.queries.
AssessmentOfferedQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
,dlkit.osid.queries.OsidSubjugateableQuery
This is the query for searching assessments.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
match_assessment_id
(assessment_id, match)¶ Sets the assessment
Id
for this query.Parameters: - assessment_id (
osid.id.Id
) – an assessmentId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_id (
-
assessment_id_terms
¶
-
supports_assessment_query
()¶ Tests if an
AssessmentQuery
is available.Returns: true
if an assessment query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
assessment_query
¶ Gets the query for an assessment.
Multiple retrievals produce a nested
OR
term.Returns: the assessment query Return type: osid.assessment.AssessmentQuery
Raise: Unimplemented
–supports_assessment_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_query()`` is ``true``.
-
assessment_terms
¶
-
match_level_id
(grade_id, match)¶ Sets the level grade
Id
for 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_id
isnull
compliance: mandatory – This method must be implemented.
- grade_id (
-
level_id_terms
¶
-
supports_level_query
()¶ Tests if a
GradeQuery
is available.Returns: true
if a grade query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
level_query
¶ Gets the query for a grade.
Multiple retrievals produce a nested
OR
term.Returns: the grade query Return type: osid.grading.GradeQuery
Raise: Unimplemented
–supports_level_query()
isfalse
compliance: 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
) –true
to match offerings with any level,false
to match offerings with no levslscompliance: mandatory – This method must be implemented.
-
level_terms
¶
-
match_items_sequential
(match)¶ Match sequential assessments.
Parameters: match ( boolean
) –true
for a positive match,false
for a negative matchcompliance: mandatory – This method must be implemented.
-
items_sequential_terms
¶
-
match_items_shuffled
(match)¶ Match shuffled item assessments.
Parameters: match ( boolean
) –true
for a positive match,false
for a negative matchcompliance: mandatory – This method must be implemented.
-
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
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–end
is less thanstart
compliance: mandatory – This method must be implemented.
- start (
-
match_any_start_time
(match)¶ Matches offerings that has any start time assigned.
Parameters: match ( boolean
) –true
to match offerings with any start time,false
to match offerings with no start timecompliance: mandatory – This method must be implemented.
-
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
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–end
is less thanstart
Raise: NullArgument
–start
orend
isnull
compliance: mandatory – This method must be implemented.
- start (
-
match_any_deadline
(match)¶ Matches offerings that have any deadline assigned.
Parameters: match ( boolean
) –true
to match offerings with any deadline,false
to match offerings with no deadlinecompliance: mandatory – This method must be implemented.
-
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
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–end
is less thanstart
Raise: NullArgument
–start
orend
isnull
compliance: mandatory – This method must be implemented.
- low (
-
match_any_duration
(match)¶ Matches offerings that have any duration assigned.
Parameters: match ( boolean
) –true
to match offerings with any duration,false
to match offerings with no durationcompliance: mandatory – This method must be implemented.
-
duration_terms
¶
-
match_score_system_id
(grade_system_id, match)¶ Sets the grade system
Id
for 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_id
isnull
compliance: mandatory – This method must be implemented.
- grade_system_id (
-
score_system_id_terms
¶
-
supports_score_system_query
()¶ Tests if a
GradeSystemQuery
is available.Returns: true
if a grade system query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
score_system_query
¶ Gets the query for a grade system.
Multiple retrievals produce a nested
OR
term.Returns: the grade system query Return type: osid.grading.GradeSystemQuery
Raise: Unimplemented
–supports_score_system_query()
isfalse
compliance: optional – This method must be implemented if ``supports_score_system_query()`` is ``true``.
-
match_any_score_system
(match)¶ Matches taken assessments that have any grade system assigned.
Parameters: match ( boolean
) –true
to match assessments with any grade system,false
to match assessments with no grade systemcompliance: mandatory – This method must be implemented.
-
score_system_terms
¶
-
match_grade_system_id
(grade_system_id, match)¶ Sets the grade system
Id
for 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_id
isnull
compliance: mandatory – This method must be implemented.
- grade_system_id (
-
grade_system_id_terms
¶
-
supports_grade_system_query
()¶ Tests if a
GradeSystemQuery
is available.Returns: true
if a grade system query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grade_system_query
¶ Gets the query for a grade system.
Multiple retrievals produce a nested
OR
term.Returns: the grade system query Return type: osid.grading.GradeSystemQuery
Raise: Unimplemented
–supports_score_system_query()
isfalse
compliance: optional – This method must be implemented if ``supports_score_system_query()`` is ``true``.
-
match_any_grade_system
(match)¶ Matches taken assessments that have any grade system assigned.
Parameters: match ( boolean
) –true
to match assessments with any grade system,false
to match assessments with no grade systemcompliance: mandatory – This method must be implemented.
-
grade_system_terms
¶
-
match_rubric_id
(assessment_offered_id, match)¶ Sets the rubric assessment offered
Id
for this query.Parameters: - assessment_offered_id (
osid.id.Id
) – an assessment offeredId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_offered_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_offered_id (
-
rubric_id_terms
¶
-
supports_rubric_query
()¶ Tests if an
AssessmentOfferedQuery
is available.Returns: true
if a rubric assessment offered query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
rubric_query
¶ Gets the query for a rubric assessment.
Multiple retrievals produce a nested
OR
term.Returns: the assessment offered query Return type: osid.assessment.AssessmentOfferedQuery
Raise: Unimplemented
–supports_rubric_query()
isfalse
compliance: optional – This method must be implemented if ``supports_rubric_query()`` is ``true``.
-
match_any_rubric
(match)¶ Matches an assessment offered that has any rubric assessment assigned.
Parameters: match ( boolean
) –true
to match assessments offered with any rubric,false
to match assessments offered with no rubriccompliance: mandatory – This method must be implemented.
-
rubric_terms
¶
-
match_assessment_taken_id
(assessment_taken_id, match)¶ Sets the assessment taken
Id
for this query.Parameters: - assessment_taken_id (
osid.id.Id
) – an assessment takenId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_taken_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_taken_id (
-
assessment_taken_id_terms
¶
-
supports_assessment_taken_query
()¶ Tests if an
AssessmentTakenQuery
is available.Returns: true
if an assessment taken query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
assessment_taken_query
¶ Gets the query for an assessment taken.
Multiple retrievals produce a nested
OR
term.Returns: the assessment taken query Return type: osid.assessment.AssessmentTakenQuery
Raise: Unimplemented
–supports_assessment_taken_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_taken_query()`` is ``true``.
-
match_any_assessment_taken
(match)¶ Matches offerings that have any taken assessment version.
Parameters: match ( boolean
) –true
to match offerings with any taken assessment,false
to match offerings with no assessmen takencompliance: mandatory – This method must be implemented.
-
assessment_taken_terms
¶
-
match_bank_id
(bank_id, match)¶ Sets the bank
Id
for this query.Parameters: - bank_id (
osid.id.Id
) – a bankId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–bank_id
isnull
compliance: mandatory – This method must be implemented.
- bank_id (
-
bank_id_terms
¶
-
supports_bank_query
()¶ Tests if a
BankQuery
is available.Returns: true
if a bank query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
bank_query
¶ Gets the query for a bank.
Multiple retrievals produce a nested
OR
term.Returns: the bank query Return type: osid.assessment.BankQuery
Raise: Unimplemented
–supports_bank_query()
isfalse
compliance: optional – This method must be implemented if ``supports_bank_query()`` is ``true``.
-
bank_terms
¶
-
get_assessment_offered_query_record
(assessment_offered_record_type)¶ Gets the assessment offered query record corresponding to the given
AssessmentOffered
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: assessment_offered_record_type ( osid.type.Type
) – an assessment offered record typeReturns: the assessment offered query record Return type: osid.assessment.records.AssessmentOfferedQueryRecord
Raise: NullArgument
–assessment_offered_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(assessment_offered_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Assessment Taken Query¶
-
class
dlkit.assessment.queries.
AssessmentTakenQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
This is the query for searching assessments.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
match_assessment_offered_id
(assessment_offered_id, match)¶ Sets the assessment offered
Id
for this query.Parameters: - assessment_offered_id (
osid.id.Id
) – an assessmentId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_offered_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_offered_id (
-
assessment_offered_id_terms
¶
-
supports_assessment_offered_query
()¶ Tests if an
AssessmentOfferedQuery
is available.Returns: true
if an assessment offered query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
assessment_offered_query
¶ Gets the query for an assessment.
Multiple retrievals produce a nested
OR
term.Returns: the assessment offered query Return type: osid.assessment.AssessmentOfferedQuery
Raise: Unimplemented
–supports_assessment_offered_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_offered_query()`` is ``true``.
-
assessment_offered_terms
¶
-
match_taker_id
(resource_id, match)¶ Sets the resource
Id
for this query.Parameters: - resource_id (
osid.id.Id
) – a resourceId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–resource_id
isnull
compliance: mandatory – This method must be implemented.
- resource_id (
-
taker_id_terms
¶
-
supports_taker_query
()¶ Tests if a
ResourceQuery
is available.Returns: true
if a resource query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
taker_query
¶ Gets the query for a resource.
Multiple retrievals produce a nested
OR
term.Returns: the resource query Return type: osid.resource.ResourceQuery
Raise: Unimplemented
–supports_taker_query()
isfalse
compliance: optional – This method must be implemented if ``supports_taker_query()`` is ``true``.
-
taker_terms
¶
-
match_taking_agent_id
(agent_id, match)¶ Sets the agent
Id
for this query.Parameters: - agent_id (
osid.id.Id
) – an agentId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–agent_id
isnull
compliance: mandatory – This method must be implemented.
- agent_id (
-
taking_agent_id_terms
¶
-
supports_taking_agent_query
()¶ Tests if an
AgentQuery
is available.Returns: true
if an agent query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
taking_agent_query
¶ Gets the query for an agent.
Multiple retrievals produce a nested
OR
term.Returns: the agent query Return type: osid.authentication.AgentQuery
Raise: Unimplemented
–supports_taking_agent_query()
isfalse
compliance: optional – This method must be implemented if ``supports_taking_agent_query()`` is ``true``.
-
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
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–end
is less thanstart
Raise: NullArgument
–start
orend
isnull
compliance: mandatory – This method must be implemented.
- start (
-
match_any_actual_start_time
(match)¶ Matches taken assessments taken that have begun.
Parameters: match ( boolean
) –true
to match assessments taken started,false
to match assessments taken that have not beguncompliance: mandatory – This method must be implemented.
-
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
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–end
is less thanstart
Raise: NullArgument
–start
orend
isnull
compliance: mandatory – This method must be implemented.
- start (
-
match_any_completion_time
(match)¶ Matches taken assessments taken that have completed.
Parameters: match ( boolean
) –true
to match assessments taken completed,false
to match assessments taken that are incompletecompliance: mandatory – This method must be implemented.
-
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
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–high
is less thanlow
Raise: NullArgument
–low
orhigh
isnull
compliance: mandatory – This method must be implemented.
- low (
-
time_spent_terms
¶
-
match_score_system_id
(grade_system_id, match)¶ Sets the grade system
Id
for 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_id
isnull
compliance: mandatory – This method must be implemented.
- grade_system_id (
-
score_system_id_terms
¶
-
supports_score_system_query
()¶ Tests if a
GradeSystemQuery
is available.Returns: true
if a grade system query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
score_system_query
¶ Gets the query for a grade system.
Multiple retrievals produce a nested
OR
term.Returns: the grade system query Return type: osid.grading.GradeSystemQuery
Raise: Unimplemented
–supports_score_system_query()
isfalse
compliance: optional – This method must be implemented if ``supports_score_system_query()`` is ``true``.
-
match_any_score_system
(match)¶ Matches taken assessments that have any grade system assigned.
Parameters: match ( boolean
) –true
to match assessments with any grade system,false
to match assessments with no grade systemcompliance: mandatory – This method must be implemented.
-
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
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–high
is less thanlow
compliance: mandatory – This method must be implemented.
- low (
-
match_any_score
(match)¶ Matches taken assessments that have any score assigned.
Parameters: match ( boolean
) –true
to match assessments with any score,false
to match assessments with no scorecompliance: mandatory – This method must be implemented.
-
score_terms
¶
-
match_grade_id
(grade_id, match)¶ Sets the grade
Id
for 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_id
isnull
compliance: mandatory – This method must be implemented.
- grade_id (
-
grade_id_terms
¶
-
supports_grade_query
()¶ Tests if a
GradeQuery
is available.Returns: true
if a grade query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grade_query
¶ Gets the query for a grade.
Multiple retrievals produce a nested
OR
term.Returns: the grade query Return type: osid.grading.GradeQuery
Raise: Unimplemented
–supports_grade_query()
isfalse
compliance: optional – This method must be implemented if ``supports_grade_query()`` is ``true``.
-
match_any_grade
(match)¶ Matches taken assessments that have any grade assigned.
Parameters: match ( boolean
) –true
to match assessments with any grade,false
to match assessments with no gradecompliance: mandatory – This method must be implemented.
-
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
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–comments is
not ofstring_match_type
Raise: NullArgument
–comments
orstring_match_type
isnull
Raise: Unsupported
–supports_string_match_type(string_match_type)
isfalse
compliance: mandatory – This method must be implemented.
- comments (
-
match_any_feedback
(match)¶ Matches taken assessments that have any comments.
Parameters: match ( boolean
) –true
to match assessments with any comments,false
to match assessments with no commentscompliance: mandatory – This method must be implemented.
-
feedback_terms
¶
-
match_rubric_id
(assessment_taken_id, match)¶ Sets the rubric assessment taken
Id
for this query.Parameters: - assessment_taken_id (
osid.id.Id
) – an assessment takenId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_taken_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_taken_id (
-
rubric_id_terms
¶
-
supports_rubric_query
()¶ Tests if an
AssessmentTakenQuery
is available.Returns: true
if a rubric assessment taken query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
rubric_query
¶ Gets the query for a rubric assessment.
Multiple retrievals produce a nested
OR
term.Returns: the assessment taken query Return type: osid.assessment.AssessmentTakenQuery
Raise: Unimplemented
–supports_rubric_query()
isfalse
compliance: optional – This method must be implemented if ``supports_rubric_query()`` is ``true``.
-
match_any_rubric
(match)¶ Matches an assessment taken that has any rubric assessment assigned.
Parameters: match ( boolean
) –true
to match assessments taken with any rubric,false
to match assessments taken with no rubriccompliance: mandatory – This method must be implemented.
-
rubric_terms
¶
-
match_bank_id
(bank_id, match)¶ Sets the bank
Id
for this query.Parameters: - bank_id (
osid.id.Id
) – a bankId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–bank_id
isnull
compliance: mandatory – This method must be implemented.
- bank_id (
-
bank_id_terms
¶
-
supports_bank_query
()¶ Tests if a
BankQuery
is available.Returns: true
if a bank query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
bank_query
¶ Gets the query for a bank.
Multiple retrievals produce a nested
OR
term.Returns: the bank query Return type: osid.assessment.BankQuery
Raise: Unimplemented
–supports_bank_query()
isfalse
compliance: optional – This method must be implemented if ``supports_bank_query()`` is ``true``.
-
bank_terms
¶
-
get_assessment_taken_query_record
(assessment_taken_record_type)¶ Gets the assessment taken query record corresponding to the given
AssessmentTaken
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: assessment_taken_record_type ( osid.type.Type
) – an assessment taken record typeReturns: the assessment taken query record Return type: osid.assessment.records.AssessmentTakenQueryRecord
Raise: NullArgument
–assessment_taken_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(assessment_taken_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Bank Query¶
-
class
dlkit.assessment.queries.
BankQuery
¶ Bases:
dlkit.osid.queries.OsidCatalogQuery
This is the query for searching banks Each method specifies an
AND
term while multiple invocations of the same method produce a nestedOR
.-
match_item_id
(item_id, match)¶ Sets the item
Id
for this query.Parameters: - item_id (
osid.id.Id
) – an itemId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–item_id
isnull
compliance: mandatory – This method must be implemented.
- item_id (
-
item_id_terms
¶
-
supports_item_query
()¶ Tests if a
ItemQuery
is available.Returns: true
if an item query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
item_query
¶ Gets the query for an item.
Multiple retrievals produce a nested
OR
term.Returns: the item query Return type: osid.assessment.ItemQuery
Raise: Unimplemented
–supports_item_query()
isfalse
compliance: optional – This method must be implemented if ``supports_item_query()`` is ``true``.
-
match_any_item
(match)¶ Matches assessment banks that have any item assigned.
Parameters: match ( boolean
) –true
to match banks with any item,false
to match assessments with no itemcompliance: mandatory – This method must be implemented.
-
item_terms
¶
-
match_assessment_id
(assessment_id, match)¶ Sets the assessment
Id
for this query.Parameters: - assessment_id (
osid.id.Id
) – an assessmentId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_id (
-
assessment_id_terms
¶
-
supports_assessment_query
()¶ Tests if an
AssessmentQuery
is available.Returns: true
if an assessment query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
assessment_query
¶ Gets the query for an assessment.
Multiple retrievals produce a nested
OR
term.Returns: the assessment query Return type: osid.assessment.AssessmentQuery
Raise: Unimplemented
–supports_assessment_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_query()`` is ``true``.
-
match_any_assessment
(match)¶ Matches assessment banks that have any assessment assigned.
Parameters: match ( boolean
) –true
to match banks with any assessment,false
to match banks with no assessmentcompliance: mandatory – This method must be implemented.
-
assessment_terms
¶
-
match_assessment_offered_id
(assessment_offered_id, match)¶ Sets the assessment offered
Id
for this query.Parameters: - assessment_offered_id (
osid.id.Id
) – an assessmentId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_offered_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_offered_id (
-
assessment_offered_id_terms
¶
-
supports_assessment_offered_query
()¶ Tests if an
AssessmentOfferedQuery
is available.Returns: true
if an assessment offered query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
assessment_offered_query
¶ Gets the query for an assessment offered.
Multiple retrievals produce a nested
OR
term.Returns: the assessment offered query Return type: osid.assessment.AssessmentOfferedQuery
Raise: Unimplemented
–supports_assessment_offered_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_offered_query()`` is ``true``.
-
match_any_assessment_offered
(match)¶ Matches assessment banks that have any assessment offering assigned.
Parameters: match ( boolean
) –true
to match banks with any assessment offering,false
to match banks with no offeringcompliance: mandatory – This method must be implemented.
-
assessment_offered_terms
¶
-
match_ancestor_bank_id
(bank_id, match)¶ Sets the bank
Id
for to match banks in which the specified bank is an acestor.Parameters: - bank_id (
osid.id.Id
) – a bankId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–bank_id
isnull
compliance: mandatory – This method must be implemented.
- bank_id (
-
ancestor_bank_id_terms
¶
-
supports_ancestor_bank_query
()¶ Tests if a
BankQuery
is available.Returns: true
if a bank query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
ancestor_bank_query
¶ Gets the query for an ancestor bank.
Multiple retrievals produce a nested
OR
term.Returns: the bank query Return type: osid.assessment.BankQuery
Raise: Unimplemented
–supports_ancestor_bank_query()
isfalse
compliance: optional – This method must be implemented if ``supports_ancestor_bank_query()`` is ``true``.
-
match_any_ancestor_bank
(match)¶ Matches a bank that has any ancestor.
Parameters: match ( boolean
) –true
to match banks with any ancestor banks,false
to match root bankscompliance: mandatory – This method must be implemented.
-
ancestor_bank_terms
¶
-
match_descendant_bank_id
(bank_id, match)¶ Sets the bank
Id
for to match banks in which the specified bank is a descendant.Parameters: - bank_id (
osid.id.Id
) – a bankId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–bank_id
isnull
compliance: mandatory – This method must be implemented.
- bank_id (
-
descendant_bank_id_terms
¶
-
supports_descendant_bank_query
()¶ Tests if a
BankQuery
is available.Returns: true
if a bank query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
descendant_bank_query
¶ Gets the query for a descendant bank.
Multiple retrievals produce a nested
OR
term.Returns: the bank query Return type: osid.assessment.BankQuery
Raise: Unimplemented
–supports_descendant_bank_query()
isfalse
compliance: optional – This method must be implemented if ``supports_descendant_bank_query()`` is ``true``.
-
match_any_descendant_bank
(match)¶ Matches a bank that has any descendant.
Parameters: match ( boolean
) –true
to match banks with any descendant banks,false
to match leaf bankscompliance: mandatory – This method must be implemented.
-
descendant_bank_terms
¶
-
get_bank_query_record
(bank_record_type)¶ Gets the bank query record corresponding to the given
Bank
recordType
.Multiple record retrievals produce a nested
OR
term.Parameters: bank_record_type ( osid.type.Type
) – a bank record typeReturns: the bank query record Return type: osid.assessment.records.BankQueryRecord
Raise: NullArgument
–bank_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(bank_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-