Queries¶
Assessment Part Query¶
Bases:
dlkit.osid.queries.OsidObjectQuery
,dlkit.osid.queries.OsidContainableQuery
,dlkit.osid.queries.OsidOperableQuery
This is the query for searching assessment parts.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.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 (
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.
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``.
Sets the assessment part
Id
for this query.Parameters: - assessment_part_id (
osid.id.Id
) – an assessment partId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_part_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_part_id (
Tests if an
AssessmentPartQuery
is available.Returns: true
if an assessment part query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for an assessment part.
Multiple retrievals produce a nested
OR
term.Returns: the assessment part query Return type: osid.assessment.authoring.AssessmentPartQuery
Raise: Unimplemented
–supports_parent_assessment_part_query()
isfalse
compliance: optional – This method must be implemented if ``supports_parent_assessment_part_query()`` is ``true``.
Matches assessment parts with any parent assessment part.
Parameters: match ( boolean
) –true
to match assessment parts with any parent,false
to match assessment parts with no parentscompliance: mandatory – This method must be implemented.
Matches assessment parts that are also used as sections.
Parameters: match ( boolean
) –true
for a positive match,false
for a negative matchcompliance: mandatory – This method must be implemented.
Matches assessment parts that fall in between the given weights inclusive.
Parameters: - low (
cardinal
) – low end of range - high (
cardinal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–high
is less thanlow
compliance: mandatory – This method must be implemented.
- low (
Matches assessment parts with any weight assigned.
Parameters: match ( boolean
) –true
to match assessment parts with any wieght,false
to match assessment parts with no weightcompliance: mandatory – This method must be implemented.
Matches assessment parts hose allocated time falls in between the given times inclusive.
Parameters: - low (
osid.calendaring.Duration
) – low end of range - high (
osid.calendaring.Duration
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–high
is less thanlow
compliance: mandatory – This method must be implemented.
- low (
Matches assessment parts with any time assigned.
Parameters: match ( boolean
) –true
to match assessment parts with any alloocated time,false
to match assessment parts with no allocated timecompliance: mandatory – This method must be implemented.
Sets the assessment part
Id
for this query.Parameters: - assessment_part_id (
osid.id.Id
) – an assessment partId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_part_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_part_id (
Tests if an
AssessmentPartQuery
is available.Returns: true
if an assessment part query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for an assessment part.
Multiple retrievals produce a nested
OR
term.Returns: the assessment part query Return type: osid.assessment.authoring.AssessmentPartQuery
Raise: Unimplemented
–supports_child_assessment_part_query()
isfalse
compliance: optional – This method must be implemented if ``supports_child_assessment_part_query()`` is ``true``.
Matches assessment parts with any child assessment part.
Parameters: match ( boolean
) –true
to match assessment parts with any children,false
to match assessment parts with no childrencompliance: mandatory – This method must be implemented.
Matches constrainers mapped to the bank.
Parameters: - bank_id (
osid.id.Id
) – the 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 (
Tests if an
BankQuery
is available.Returns: true
if a bank query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
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``.
Gets the assessment part query record corresponding to the given
AssessmentPart
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: assessment_part_record_type ( osid.type.Type
) – an assessment part record typeReturns: the assessment part query record Return type: osid.assessment.authoring.records.AssessmentPartQueryRecord
Raise: NullArgument
–assessment_part_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(assessment_part_record_type)
isfalse
compliance: mandatory – This method must be implemented.
Sequence Rule Query¶
Bases:
dlkit.osid.queries.OsidRuleQuery
This is the query for searching sequence rules.
Each method match specifies a
AND
term while multiple invocations of the same method produce a nestedOR
.Sets the assessment part
Id
for this query.Parameters: - assessment_part_id (
osid.id.Id
) – an assessment partId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_part_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_part_id (
Tests if an
AssessmentPartQuery
is available.Returns: true
if an assessment part query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for an assessment part.
Multiple retrievals produce a nested
OR
term.Returns: the assessment part query Return type: osid.assessment.authoring.AssessmentPartQuery
Raise: Unimplemented
–supports_assessment_part_query()
isfalse
compliance: optional – This method must be implemented if ``supports_assessment_part_query()`` is ``true``.
Sets the assessment part
Id
for this query.Parameters: - assessment_part_id (
osid.id.Id
) – an assessment partId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_part_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_part_id (
Tests if an
AssessmentPartQuery
is available.Returns: true
if an assessment part query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for an assessment part.
Multiple retrievals produce a nested
OR
term.Returns: the assessment part query Return type: osid.assessment.authoring.AssessmentPartQuery
Raise: Unimplemented
–supports_next_assessment_part_query()
isfalse
compliance: optional – This method must be implemented if ``supports_next_assessment_part_query()`` is ``true``.
Matches minimum scores that fall in between the given scores inclusive.
Parameters: - low (
cardinal
) – low end of range - high (
cardinal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–high
is less thanlow
compliance: mandatory – This method must be implemented.
- low (
Matches assessment parts with any minimum score assigned.
Parameters: match ( boolean
) –true
to match assessment parts with any minimum score,false
to match assessment parts with no minimum scorecompliance: mandatory – This method must be implemented.
Matches maximum scores that fall in between the given scores inclusive.
Parameters: - low (
cardinal
) – low end of range - high (
cardinal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–high
is less thanlow
compliance: mandatory – This method must be implemented.
- low (
Matches assessment parts with any maximum score assigned.
Parameters: match ( boolean
) –true
to match assessment parts with any maximum score,false
to match assessment parts with no maximum scorecompliance: mandatory – This method must be implemented.
Matches cumulative rules.
Parameters: match ( boolean
) –true
for a positive match,false
for a negative matchcompliance: mandatory – This method must be implemented.
Sets the assessment part
Id
for this query.Parameters: - assessment_part_id (
osid.id.Id
) – an assessment partId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–assessment_part_id
isnull
compliance: mandatory – This method must be implemented.
- assessment_part_id (
Tests if an
AssessmentPartQuery
is available.Returns: true
if an assessment part query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the query for an assessment part.
Multiple retrievals produce a nested
OR
term.Returns: the assessment part query Return type: osid.assessment.authoring.AssessmentPartQuery
Raise: Unimplemented
–supports_applied_assessment_part_query()
isfalse
compliance: optional – This method must be implemented if ``supports_applied_assessment_part_query()`` is ``true``.
Matches assessment parts with any applied assessment part.
Parameters: match ( boolean
) –true
to match assessment parts with any applied assessment part,false
to match assessment parts with no applied assessment partscompliance: mandatory – This method must be implemented.
Matches constrainers mapped to the bank.
Parameters: - bank_id (
osid.id.Id
) – the 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 (
Tests if an
BankQuery
is available.Returns: true
if a bank query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
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``.
Gets the sequence rule query record corresponding to the given
SequenceRule
recordType
.Multiple record retrievals produce a nested
OR
term.Parameters: sequence_rule_record_type ( osid.type.Type
) – a sequence rule record typeReturns: the sequence rule query record Return type: osid.assessment.authoring.records.SequenceRuleQueryRecord
Raise: NullArgument
–sequence_rule_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(sequence_rule_record_type)
isfalse
compliance: mandatory – This method must be implemented.