Queries¶
Grade Query¶
-
class
dlkit.grading.queries.
GradeQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
,dlkit.osid.queries.OsidSubjugateableQuery
This is the query for searching gradings.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
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 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 for querying grade systems.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_grade_system_query()
isfalse
compliance: optional – This method must be implemented if ``supports_grade_system_query()`` is ``true``.
-
grade_system_terms
¶
-
match_input_score_start_range
(start, end, match)¶ Matches grades with the start input score inclusive.
Parameters: - start (
decimal
) – start of range - end (
decimal
) – end of range - match (
boolean
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–start
is greater thanend
compliance: mandatory – This method must be implemented.
- start (
-
input_score_start_range_terms
¶
-
match_input_score_end_range
(start, end, match)¶ Matches grades with the end input score inclusive.
Parameters: - start (
decimal
) – start of range - end (
decimal
) – end of range - match (
boolean
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–start
is greater thanend
compliance: mandatory – This method must be implemented.
- start (
-
input_score_end_range_terms
¶
-
match_input_score
(start, end, match)¶ Matches grades with the input score range contained within the given range inclusive.
Parameters: - start (
decimal
) – start of range - end (
decimal
) – end of range - match (
boolean
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–start
is greater thanend
compliance: mandatory – This method must be implemented.
- start (
-
input_score_terms
¶
-
match_output_score
(start, end, match)¶ Matches grades with the output score contained within the given range inclusive.
Parameters: - start (
decimal
) – start of range - end (
decimal
) – end of range - match (
boolean
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–start
is greater thanend
compliance: mandatory – This method must be implemented.
- start (
-
output_score_terms
¶
-
match_grade_entry_id
(grade_entry_id, match)¶ Sets the grade entry
Id
for this query.Parameters: - grade_entry_id (
osid.id.Id
) – a grade entryId
- match (
boolean
) –true
for a positive match,false
for negative match
Raise: NullArgument
–grade_entry_id
isnull
compliance: mandatory – This method must be implemented.
- grade_entry_id (
-
grade_entry_id_terms
¶
-
supports_grade_entry_query
()¶ Tests if a
GradeEntryQuery
is available for querying grade entries.Returns: true
if a grade entry query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grade_entry_query
¶ Gets the query for a grade entry.
Multiple retrievals produce a nested
OR
term.Returns: the grade entry query Return type: osid.grading.GradeEntryQuery
Raise: Unimplemented
–supports_grade_entry_query()
isfalse
compliance: optional – This method must be implemented if ``supports_grade_entry_query()`` is ``true``.
-
match_any_grade_entry
(match)¶ Matches grades that are assigned to any grade entry.
Parameters: match ( boolean
) –true
to match grades used in any grade entry,false
to match grades that are not used in any grade entriescompliance: mandatory – This method must be implemented.
-
grade_entry_terms
¶
-
match_gradebook_id
(gradebook_id, match)¶ Sets the gradebook
Id
for this query.Parameters: - gradebook_id (
osid.id.Id
) – a gradebookId
- match (
boolean
) –true
for a positive match,false
for negative match
Raise: NullArgument
–gradebook_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_id (
-
gradebook_id_terms
¶
-
supports_gradebook_query
()¶ Tests if a
GradebookQuery
is available.Returns: true
if a gradebook query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_query
¶ Gets the query for a gradebook.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook query Return type: osid.grading.GradebookQuery
Raise: Unimplemented
–supports_gradebook_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_column_query()`` is ``true``.
-
gradebook_terms
¶
-
get_grade_query_record
(grade_record_type)¶ Gets the grade query record corresponding to the given
Grade
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: grade_record_type ( osid.type.Type
) – a grade record typeReturns: the grade query record Return type: osid.grading.records.GradeQueryRecord
Raise: NullArgument
–grade_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Grade System Query¶
-
class
dlkit.grading.queries.
GradeSystemQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
,dlkit.osid.queries.OsidAggregateableQuery
This is the query for searching grade systems.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
match_based_on_grades
(match)¶ Matches grade systems based on grades.
Parameters: match ( boolean
) –true
for a positive match,false
for negative matchcompliance: mandatory – This method must be implemented.
-
based_on_grades_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 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 for querying grades.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 grade systems with any grade.
Parameters: match ( boolean
) –true
to match grade systems with any grade,false
to match systems with no gradecompliance: mandatory – This method must be implemented.
-
grade_terms
¶
-
match_lowest_numeric_score
(start, end, match)¶ Matches grade systems whose low end score falls in the specified range inclusive.
Parameters: - start (
decimal
) – low end of range - end (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–end
is less thanstart
Raise: NullArgument
–grade_id
isnull
compliance: mandatory – This method must be implemented.
- start (
-
lowest_numeric_score_terms
¶
-
match_numeric_score_increment
(start, end, match)¶ Matches grade systems numeric score increment is between the specified range inclusive.
Parameters: - start (
decimal
) – low end of range - end (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–end
is less thanstart
Raise: NullArgument
–grade_id
isnull
compliance: mandatory – This method must be implemented.
- start (
-
numeric_score_increment_terms
¶
-
match_highest_numeric_score
(start, end, match)¶ Matches grade systems whose high end score falls in the specified range inclusive.
Parameters: - start (
decimal
) – low end of range - end (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for negative match
Raise: InvalidArgument
–end
is less thanstart
Raise: NullArgument
–grade_id
isnull
compliance: mandatory – This method must be implemented.
- start (
-
highest_numeric_score_terms
¶
-
match_gradebook_column_id
(gradebook_column_id, match)¶ Sets the gradebook column
Id
for this query.Parameters: - gradebook_column_id (
osid.id.Id
) – a gradebook columnId
- match (
boolean
) –true
for a positive match,false
for negative match
Raise: NullArgument
–gradebook_column_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_column_id (
-
gradebook_column_id_terms
¶
-
supports_gradebook_column_query
()¶ Tests if a
GradebookColumnQuery
is available.Returns: true
if a gradebook column query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_column_query
¶ Gets the query for a gradebook column.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook column query Return type: osid.grading.GradebookColumnQuery
Raise: Unimplemented
–supports_gradebook_column_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_column_query()`` is ``true``.
-
match_any_gradebook_column
(match)¶ Matches grade systems assigned to any gradebook column.
Parameters: match ( boolean
) –true
to match grade systems mapped to any column,false
to match systems mapped to no columnscompliance: mandatory – This method must be implemented.
-
gradebook_column_terms
¶
-
match_gradebook_id
(gradebook_id, match)¶ Sets the gradebook
Id
for this query.Parameters: - gradebook_id (
osid.id.Id
) – a gradebookId
- match (
boolean
) –true
for a positive match,false
for negative match
Raise: NullArgument
–gradebook_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_id (
-
gradebook_id_terms
¶
-
supports_gradebook_query
()¶ Tests if a
GradebookQuery
is available.Returns: true
if a gradebook query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_query
¶ Gets the query for a gradebook.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook query Return type: osid.grading.GradebookQuery
Raise: Unimplemented
–supports_gradebook_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_query()`` is ``true``.
-
gradebook_terms
¶
-
get_grade_system_query_record
(grade_system_record_type)¶ Gets the grade system query record corresponding to the given
GradeSystem
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: grade_system_record_type ( osid.type.Type
) – a grade system record typeReturns: the grade system query record Return type: osid.grading.records.GradeSystemQueryRecord
Raise: NullArgument
–grade_system_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_system_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Grade Entry Query¶
-
class
dlkit.grading.queries.
GradeEntryQuery
¶ Bases:
dlkit.osid.queries.OsidRelationshipQuery
This is the query for searching grade entries.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
match_gradebook_column_id
(gradebook_column_id, match)¶ Sets the gradebook column
Id
for this query.Parameters: - gradebook_column_id (
osid.id.Id
) – a gradebook columnId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–gradebook_column_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_column_id (
-
gradebook_column_id_terms
¶
-
supports_gradebook_column_query
()¶ Tests if a
GradebookColumnQuery
is available for querying creators.Returns: true
if a gradebook column query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_column_query
¶ Gets the query for a gradebook column.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook column query Return type: osid.grading.GradebookColumnQuery
Raise: Unimplemented
–supports_gradebook_column_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_column_query()`` is ``true``.
-
gradebook_column_terms
¶
-
match_key_resource_id
(resource_id, match)¶ Sets the key 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 (
-
key_resource_id_terms
¶
-
supports_key_resource_query
()¶ Tests if a
ResourceQUery
is available for querying key resources.Returns: true
if a resource query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
key_resource_query
¶ Gets the query for a key resource.
Multiple retrievals produce a nested
OR
term.Returns: the resource query Return type: osid.resource.ResourceQuery
Raise: Unimplemented
–supports_key_resource_query()
isfalse
compliance: optional – This method must be implemented if ``supports_key_resource_query()`` is ``true``.
-
match_any_key_resource
(match)¶ Matches grade entries with any key resource.
Parameters: match ( boolean
) –true
to match grade entries with any key resource,false
to match entries with no key resourcecompliance: mandatory – This method must be implemented.
-
key_resource_terms
¶
-
match_derived
(match)¶ Matches derived grade entries.
Parameters: match ( boolean
) –true
to match derived grade entries ,false
to match manual entriescompliance: mandatory – This method must be implemented.
-
derived_terms
¶
-
match_overridden_grade_entry_id
(grade_entry_id, match)¶ Sets the grade entry
Id
for an overridden calculated grade entry.Parameters: - grade_entry_id (
osid.id.Id
) – a grade entryId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–grade_entry_id
isnull
compliance: mandatory – This method must be implemented.
- grade_entry_id (
-
overridden_grade_entry_id_terms
¶
-
supports_overridden_grade_entry_query
()¶ Tests if a
GradeEntry
is available for querying overridden calculated grade entries.Returns: true
if a grade entry query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
overridden_grade_entry_query
¶ Gets the query for an overridden derived grade entry.
Multiple retrievals produce a nested
OR
term.Returns: the grade entry query Return type: osid.grading.GradeEntryQuery
Raise: Unimplemented
–supports_overridden_grade_entry_query()
isfalse
compliance: optional – This method must be implemented if ``supports_overridden_grade_entry_query()`` is ``true``.
-
match_any_overridden_grade_entry
(match)¶ Matches grade entries overriding any calculated grade entry.
Parameters: match ( boolean
) –true
to match grade entries overriding any grade entry,false
to match entries not overriding any entrycompliance: mandatory – This method must be implemented.
-
overridden_grade_entry_terms
¶
-
match_ignored_for_calculations
(match)¶ Matches grade entries ignored for calculations.
Parameters: match ( boolean
) –true
to match grade entries ignored for calculations,false
to match entries used in calculationscompliance: mandatory – This method must be implemented.
-
ignored_for_calculations_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 for querying grades.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 grade entries with any grade.
Parameters: match ( boolean
) –true
to match grade entries with any grade,false
to match entries with no gradecompliance: mandatory – This method must be implemented.
-
grade_terms
¶
-
match_score
(start, end, match)¶ Matches grade entries which score is between the specified score inclusive.
Parameters: - start (
decimal
) – start of range - end (
decimal
) – 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_score
(match)¶ Matches grade entries with any score.
Parameters: match ( boolean
) –true
to match grade entries with any score,false
to match entries with no scorecompliance: mandatory – This method must be implemented.
-
score_terms
¶
-
match_time_graded
(start, end, match)¶ Matches grade entries which graded time is between the specified times 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 (
-
time_graded_terms
¶
-
match_grader_id
(resource_id, match)¶ Sets the agent
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 (
-
grader_id_terms
¶
-
supports_grader_query
()¶ Tests if a
ResourceQuery
is available for querying graders.Returns: true
if a resource query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grader_query
¶ Gets the query for an agent.
Multiple retrievals produce a nested
OR
term.Returns: the resource query Return type: osid.resource.ResourceQuery
Raise: Unimplemented
–supports_resource_query()
isfalse
compliance: optional – This method must be implemented if ``supports_resource_query()`` is ``true``.
-
match_any_grader
(match)¶ Matches grade entries with any grader.
Parameters: match ( boolean
) –true
to match grade entries with any grader,false
to match entries with no gradercompliance: mandatory – This method must be implemented.
-
grader_terms
¶
-
match_grading_agent_id
(agent_id, match)¶ Sets the grading 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 (
-
grading_agent_id_terms
¶
-
supports_grading_agent_query
()¶ Tests if an
AgentQuery
is available for querying grading agents.Returns: true
if an agent query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grading_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_grading_agent_query()
isfalse
compliance: optional – This method must be implemented if ``supports_grading_agent_query()`` is ``true``.
-
match_any_grading_agent
(match)¶ Matches grade entries with any grading agent.
Parameters: match ( boolean
) –true
to match grade entries with any grading agent,false
to match entries with no grading agentcompliance: mandatory – This method must be implemented.
-
grading_agent_terms
¶
-
match_gradebook_id
(gradebook_id, match)¶ Sets the gradebook
Id
for this query.Parameters: - gradebook_id (
osid.id.Id
) – a gradebookId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–gradebook_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_id (
-
gradebook_id_terms
¶
-
supports_gradebook_query
()¶ Tests if a
GradebookQuery
is available for querying resources.Returns: true
if a gradebook query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_query
¶ Gets the query for a gradebook.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook query Return type: osid.grading.GradebookQuery
Raise: Unimplemented
–supports_gradebook_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_query()`` is ``true``.
-
gradebook_terms
¶
-
get_grade_entry_query_record
(grade_entry_record_type)¶ Gets the grade entry query record corresponding to the given
GradeEntry
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: grade_entry_record_type ( osid.type.Type
) – a grade entry record typeReturns: the grade entry query record Return type: osid.grading.records.GradeEntryQueryRecord
Raise: NullArgument
–grade_entry_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_entry_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Gradebook Column Query¶
-
class
dlkit.grading.queries.
GradebookColumnQuery
¶ Bases:
dlkit.osid.queries.OsidObjectQuery
This is the query for searching gradings.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
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 for querying grade systems.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_grade_system_query()
isfalse
compliance: optional – This method must be implemented if ``supports_grade_system_query()`` is ``true``.
-
match_any_grade_system
(match)¶ Matches gradebook columns with any grade system assigned.
Parameters: match ( boolean
) –true
to match columns with any grade system,false
to match columns with no grade systemcompliance: mandatory – This method must be implemented.
-
grade_system_terms
¶
-
match_grade_entry_id
(grade_entry_id, match)¶ Sets the grade entry
Id
for this query.Parameters: - grade_entry_id (
osid.id.Id
) – a grade entryId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–grade_entry_id
isnull
compliance: mandatory – This method must be implemented.
- grade_entry_id (
-
grade_entry_id_terms
¶
-
supports_grade_entry_query
()¶ Tests if a
GradeEntryQuery
is available for querying grade entries.Returns: true
if a grade entry query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grade_entry_query
¶ Gets the query for a grade entry.
Multiple retrievals produce a nested
OR
term.Returns: the grade entry query Return type: osid.grading.GradeEntryQuery
Raise: Unimplemented
–supports_grade_entry_query()
isfalse
compliance: optional – This method must be implemented if ``supports_grade_entry_query()`` is ``true``.
-
match_any_grade_entry
(match)¶ Matches gradebook columns with any grade entry assigned.
Parameters: match ( boolean
) –true
to match columns with any grade entry,false
to match columns with no grade entriescompliance: mandatory – This method must be implemented.
-
grade_entry_terms
¶
-
supports_gradebook_column_summary_query
()¶ Tests if a
GradebookColumnSummaryQuery
is available for querying grade systems.Returns: true
if a gradebook column summary query interface is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_column_summary_query
¶ Gets the query interface for a gradebook column summary.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook column summary query Return type: osid.grading.GradebookColumnSummaryQuery
Raise: Unimplemented
–supports_gradebook_column_summary_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_column_summary_query()`` is ``true``.
-
gradebook_column_summary_terms
¶
-
match_gradebook_id
(gradebook_id, match)¶ Sets the gradebook
Id
for this query.Parameters: - gradebook_id (
osid.id.Id
) – a gradebookId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–gradebook_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_id (
-
gradebook_id_terms
¶
-
supports_gradebook_query
()¶ Tests if a
GradebookQuery
is available for querying grade systems.Returns: true
if a gradebook query interface is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_query
¶ Gets the query interface for a gradebook.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook query Return type: osid.grading.GradebookQuery
Raise: Unimplemented
–supports_gradebook_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_query()`` is ``true``.
-
gradebook_terms
¶
-
get_gradebook_column_query_record
(gradebook_column_record_type)¶ Gets the gradebook column query record corresponding to the given
GradebookColumn
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: gradebook_column_record_type ( osid.type.Type
) – a gradebook column record typeReturns: the gradebook column query record Return type: osid.grading.records.GradebookColumnQueryRecord
Raise: NullArgument
–gradebook_column_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(gradebook_column_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Gradebook Column Summary Query¶
-
class
dlkit.grading.queries.
GradebookColumnSummaryQuery
¶ Bases:
dlkit.osid.queries.OsidRuleQuery
This is the query for searching gradebook column summaries.
Each method match request produces an
AND
term while multiple invocations of a method produces a nestedOR
.-
match_gradebook_column_id
(gradebook_column_id, match)¶ Sets the gradebook column
Id
for this query.Parameters: - gradebook_column_id (
osid.id.Id
) – a gradeboo columnId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–gradebook_column_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_column_id (
-
gradebook_column_id_terms
¶
-
supports_gradebook_column_query
()¶ Tests if a
GradebookColumnQuery
is available for querying gradebook column.Returns: true
if a gradebook column query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_column_query
¶ Gets the query for a gradebook column.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook column query Return type: osid.grading.GradebookColumnQuery
Raise: Unimplemented
–supports_gradebook_column_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_column_query()`` is ``true``.
-
match_any_gradebook_column
(match)¶ Matches gradebook column derivations with any gradebookc olumn.
Parameters: match ( boolean
) –true
to match gradebook column derivations with any gradebook column,false
to match gradebook column derivations with no gradebook columnscompliance: mandatory – This method must be implemented.
-
gradebook_column_terms
¶
-
match_mean
(low, high, match)¶ Matches a mean between the given values inclusive.
Parameters: - low (
decimal
) – low end of range - high (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–low
is greater thanhigh
compliance: mandatory – This method must be implemented.
- low (
-
mean_terms
¶
-
match_minimum_mean
(value, match)¶ Matches a mean greater than or equal to the given value.
Parameters: - value (
decimal
) – minimum value - match (
boolean
) –true
for a positive match,false
for a negative match
compliance: mandatory – This method must be implemented.
- value (
-
minimum_mean_terms
¶
-
match_median
(low, high, match)¶ Matches a median between the given values inclusive.
Parameters: - low (
decimal
) – low end of range - high (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–low
is greater thanhigh
compliance: mandatory – This method must be implemented.
- low (
-
median_terms
¶
-
match_minimum_median
(value, match)¶ Matches a median greater than or equal to the given value.
Parameters: - value (
decimal
) – minimum value - match (
boolean
) –true
for a positive match,false
for a negative match
compliance: mandatory – This method must be implemented.
- value (
-
minimum_median_terms
¶
-
match_mode
(low, high, match)¶ Matches a mode between the given values inclusive.
Parameters: - low (
decimal
) – low end of range - high (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–low
is greater thanhigh
compliance: mandatory – This method must be implemented.
- low (
-
mode_terms
¶
-
match_minimum_mode
(value, match)¶ Matches a mode greater than or equal to the given value.
Parameters: - value (
decimal
) – minimum value - match (
boolean
) –true
for a positive match,false
for a negative match
compliance: mandatory – This method must be implemented.
- value (
-
minimum_mode_terms
¶
-
match_rms
(low, high, match)¶ Matches a root mean square between the given values inclusive.
Parameters: - low (
decimal
) – low end of range - high (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–low
is greater thanhigh
compliance: mandatory – This method must be implemented.
- low (
-
rms_terms
¶
-
match_minimum_rms
(value, match)¶ Matches a root mean square greater than or equal to the given value.
Parameters: - value (
decimal
) – minimum value - match (
boolean
) –true
for a positive match,false
for a negative match
compliance: mandatory – This method must be implemented.
- value (
-
minimum_rms_terms
¶
-
match_standard_deviation
(low, high, match)¶ Matches a standard deviation mean square between the given values inclusive.
Parameters: - low (
decimal
) – low end of range - high (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–low
is greater thanhigh
compliance: mandatory – This method must be implemented.
- low (
-
standard_deviation_terms
¶
-
match_minimum_standard_deviation
(value, match)¶ Matches a standard deviation greater than or equal to the given value.
Parameters: - value (
decimal
) – minimum value - match (
boolean
) –true
for a positive match,false
for a negative match
compliance: mandatory – This method must be implemented.
- value (
-
minimum_standard_deviation_terms
¶
-
match_sum
(low, high, match)¶ Matches a sum mean square between the given values inclusive.
Parameters: - low (
decimal
) – low end of range - high (
decimal
) – high end of range - match (
boolean
) –true
for a positive match,false
for a negative match
Raise: InvalidArgument
–low
is greater thanhigh
compliance: mandatory – This method must be implemented.
- low (
-
sum_terms
¶
-
match_minimum_sum
(value, match)¶ Matches a sum greater than or equal to the given value.
Parameters: - value (
decimal
) – minimum value - match (
boolean
) –true
for a positive match,false
for a negative match
compliance: mandatory – This method must be implemented.
- value (
-
minimum_sum_terms
¶
-
match_gradebook_id
(gradebook_id, match)¶ Sets the gradebook
Id
for this query.Parameters: - gradebook_id (
osid.id.Id
) – a gradebookId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–gradebook_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_id (
-
gradebook_id_terms
¶
-
supports_gradebook_query
()¶ Tests if a
GradebookQuery
is available.Returns: true
if a gradebook query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_query
¶ Gets the query for a gradebook.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook query Return type: osid.grading.GradebookQuery
Raise: Unimplemented
–supports_gradebook_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_column_query()`` is ``true``.
-
gradebook_terms
¶
-
get_gradebook_column_summary_query_record
(gradebook_column_summary_record_type)¶ Gets the gradebook column summary query record corresponding to the given
GradebookColumnSummary
recordType
.Multiple retrievals produce a nested
OR
term.Parameters: gradebook_column_summary_record_type ( osid.type.Type
) – a gradebook column summary record typeReturns: the gradebook column summary query record Return type: osid.grading.records.GradebookColumnSummaryQueryRecord
Raise: NullArgument
–gradebook_column_summary_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(gradebook_column_summary_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Gradebook Query¶
-
class
dlkit.grading.queries.
GradebookQuery
¶ Bases:
dlkit.osid.queries.OsidCatalogQuery
This is the query for searching gradebooks.
Each method specifies an
AND
term while multiple invocations of the same method produce a nestedOR
.-
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_grade_system_query()
isfalse
compliance: optional – This method must be implemented if ``supports_grade_system_query()`` is ``true``.
-
match_any_grade_system
(match)¶ Matches gradebooks that have any grade system.
Parameters: match ( boolean
) –true
to match gradebooks with any grade system,false
to match gradebooks with no grade systemcompliance: mandatory – This method must be implemented.
-
grade_system_terms
¶
-
match_grade_entry_id
(grade_entry_id, match)¶ Sets the grade entry
Id
for this query.Parameters: - grade_entry_id (
osid.id.Id
) – a grade entryId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–grade_entry_id
isnull
compliance: mandatory – This method must be implemented.
- grade_entry_id (
-
grade_entry_id_terms
¶
-
supports_grade_entry_query
()¶ Tests if a
GradeEntryQuery
is available.Returns: true
if a grade entry query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grade_entry_query
¶ Gets the query for a grade entry.
Multiple retrievals produce a nested
OR
term.Returns: the grade entry query Return type: osid.grading.GradeEntryQuery
Raise: Unimplemented
–supports_grade_entry_query()
isfalse
compliance: optional – This method must be implemented if ``supports_grade_entry_query()`` is ``true``.
-
match_any_grade_entry
(match)¶ Matches gradebooks that have any grade entry.
Parameters: match ( boolean
) –true
to match gradebooks with any grade entry,false
to match gradebooks with no grade entrycompliance: mandatory – This method must be implemented.
-
grade_entry_terms
¶
-
match_gradebook_column_id
(gradebook_column_id, match)¶ Sets the gradebook column
Id
for this query.Parameters: - gradebook_column_id (
osid.id.Id
) – a gradebook columnId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–gradebook_column_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_column_id (
-
gradebook_column_id_terms
¶
-
supports_gradebook_column_query
()¶ Tests if a
GradebookColumnQuery
is available.Returns: true
if a gradebook column query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
gradebook_column_query
¶ Gets the query for a gradebook column.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook column query Return type: osid.grading.GradebookColumnQuery
Raise: Unimplemented
–supports_gradebook_column_query()
isfalse
compliance: optional – This method must be implemented if ``supports_gradebook_column_query()`` is ``true``.
-
match_any_gradebook_column
(match)¶ Matches gradebooks that have any column.
Parameters: match ( boolean
) –true
to match gradebooks with any column,false
to match gradebooks with no columncompliance: mandatory – This method must be implemented.
-
gradebook_column_terms
¶
-
match_ancestor_gradebook_id
(gradebook_id, match)¶ Sets the gradebook
Id
for this query to match gradebooks that have the specified gradebook as an ancestor.Parameters: - gradebook_id (
osid.id.Id
) – a gradebookId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–gradebook_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_id (
-
ancestor_gradebook_id_terms
¶
-
supports_ancestor_gradebook_query
()¶ Tests if a
GradebookQuery
is available.Returns: true
if a gradebook query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
ancestor_gradebook_query
¶ Gets the query for a gradebook.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook query Return type: osid.grading.GradebookQuery
Raise: Unimplemented
–supports_ancestor_gradebook_query()
isfalse
compliance: optional – This method must be implemented if ``supports_ancestor_gradebook_query()`` is ``true``.
-
match_any_ancestor_gradebook
(match)¶ Matches gradebook with any ancestor.
Parameters: match ( boolean
) –true
to match gradebooks with any ancestor,false
to match root gradebookscompliance: mandatory – This method must be implemented.
-
ancestor_gradebook_terms
¶
-
match_descendant_gradebook_id
(gradebook_id, match)¶ Sets the gradebook
Id
for this query to match gradebooks that have the specified gradebook as a descendant.Parameters: - gradebook_id (
osid.id.Id
) – a gradebookId
- match (
boolean
) –true
for a positive match,false
for a negative match
Raise: NullArgument
–gradebook_id
isnull
compliance: mandatory – This method must be implemented.
- gradebook_id (
-
descendant_gradebook_id_terms
¶
-
supports_descendant_gradebook_query
()¶ Tests if a
GradebookQuery
is available.Returns: true
if a gradebook query is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
descendant_gradebook_query
¶ Gets the query for a gradebook.
Multiple retrievals produce a nested
OR
term.Returns: the gradebook query Return type: osid.grading.GradebookQuery
Raise: Unimplemented
–supports_descendant_gradebook_query()
isfalse
compliance: optional – This method must be implemented if ``supports_descendant_gradebook_query()`` is ``true``.
-
match_any_descendant_gradebook
(match)¶ Matches gradebook with any descendant.
Parameters: match ( boolean
) –true
to match gradebooks with any descendant,false
to match leaf gradebookscompliance: mandatory – This method must be implemented.
-
descendant_gradebook_terms
¶
-
get_gradebook_query_record
(gradebook_record_type)¶ Gets the gradebook query record corresponding to the given
Gradebook
recordType
.Multiple record retrievals produce a nested
OR
term.Parameters: gradebook_record_type ( osid.type.Type
) – a gradebook record typeReturns: the gradebook query record Return type: osid.grading.records.GradebookQueryRecord
Raise: NullArgument
–gradebook_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(gradebook_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-