canvas_cc 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/canvas_cc.gemspec +37 -0
- data/lib/canvas_cc/canvas/assessment.rb +124 -0
- data/lib/canvas_cc/canvas/assignment.rb +98 -0
- data/lib/canvas_cc/canvas/converter.rb +30 -0
- data/lib/canvas_cc/canvas/course.rb +143 -0
- data/lib/canvas_cc/canvas/discussion_topic.rb +64 -0
- data/lib/canvas_cc/canvas/label.rb +8 -0
- data/lib/canvas_cc/canvas/question.rb +492 -0
- data/lib/canvas_cc/canvas/question_bank.rb +57 -0
- data/lib/canvas_cc/canvas/question_group.rb +35 -0
- data/lib/canvas_cc/canvas/resource.rb +16 -0
- data/lib/canvas_cc/canvas/templates/assignment.html.erb +9 -0
- data/lib/canvas_cc/canvas/templates/syllabus.html.erb +9 -0
- data/lib/canvas_cc/canvas/templates/wiki_content.html.erb +10 -0
- data/lib/canvas_cc/canvas/web_content.rb +15 -0
- data/lib/canvas_cc/canvas/web_link.rb +16 -0
- data/lib/canvas_cc/canvas/wiki.rb +26 -0
- data/lib/canvas_cc/canvas_cc/assessment_writer.rb +82 -0
- data/lib/canvas_cc/canvas_cc/assignment_group_writer.rb +48 -0
- data/lib/canvas_cc/canvas_cc/assignment_writer.rb +68 -0
- data/lib/canvas_cc/canvas_cc/calculated_question_writer.rb +72 -0
- data/lib/canvas_cc/canvas_cc/canvas_export_writer.rb +18 -0
- data/lib/canvas_cc/canvas_cc/cartridge_creator.rb +60 -0
- data/lib/canvas_cc/canvas_cc/course_setting_writer.rb +35 -0
- data/lib/canvas_cc/canvas_cc/discussion_writer.rb +52 -0
- data/lib/canvas_cc/canvas_cc/essay_question_writer.rb +19 -0
- data/lib/canvas_cc/canvas_cc/file_meta_writer.rb +38 -0
- data/lib/canvas_cc/canvas_cc/ims_manifest_generator.rb +123 -0
- data/lib/canvas_cc/canvas_cc/matching_question_writer.rb +43 -0
- data/lib/canvas_cc/canvas_cc/models/answer.rb +12 -0
- data/lib/canvas_cc/canvas_cc/models/assessment.rb +102 -0
- data/lib/canvas_cc/canvas_cc/models/assignment.rb +30 -0
- data/lib/canvas_cc/canvas_cc/models/assignment_group.rb +9 -0
- data/lib/canvas_cc/canvas_cc/models/calculated_question.rb +19 -0
- data/lib/canvas_cc/canvas_cc/models/canvas_file.rb +22 -0
- data/lib/canvas_cc/canvas_cc/models/canvas_module.rb +10 -0
- data/lib/canvas_cc/canvas_cc/models/course.rb +53 -0
- data/lib/canvas_cc/canvas_cc/models/discussion.rb +36 -0
- data/lib/canvas_cc/canvas_cc/models/discussion_topic.rb +5 -0
- data/lib/canvas_cc/canvas_cc/models/matching_question.rb +7 -0
- data/lib/canvas_cc/canvas_cc/models/module_item.rb +16 -0
- data/lib/canvas_cc/canvas_cc/models/multiple_dropdowns_question.rb +7 -0
- data/lib/canvas_cc/canvas_cc/models/numerical_question.rb +7 -0
- data/lib/canvas_cc/canvas_cc/models/page.rb +41 -0
- data/lib/canvas_cc/canvas_cc/models/question.rb +37 -0
- data/lib/canvas_cc/canvas_cc/models/question_bank.rb +42 -0
- data/lib/canvas_cc/canvas_cc/models/question_group.rb +10 -0
- data/lib/canvas_cc/canvas_cc/models/resource.rb +23 -0
- data/lib/canvas_cc/canvas_cc/models/web_content.rb +7 -0
- data/lib/canvas_cc/canvas_cc/models/web_link.rb +7 -0
- data/lib/canvas_cc/canvas_cc/models/workflow_state.rb +6 -0
- data/lib/canvas_cc/canvas_cc/module_meta_writer.rb +52 -0
- data/lib/canvas_cc/canvas_cc/multiple_answers_question_writer.rb +41 -0
- data/lib/canvas_cc/canvas_cc/multiple_blanks_question_writer.rb +51 -0
- data/lib/canvas_cc/canvas_cc/multiple_choice_question_writer.rb +48 -0
- data/lib/canvas_cc/canvas_cc/multiple_dropdowns_question_writer.rb +30 -0
- data/lib/canvas_cc/canvas_cc/numerical_question_writer.rb +40 -0
- data/lib/canvas_cc/canvas_cc/page_writer.rb +38 -0
- data/lib/canvas_cc/canvas_cc/question_bank_writer.rb +44 -0
- data/lib/canvas_cc/canvas_cc/question_group_writer.rb +23 -0
- data/lib/canvas_cc/canvas_cc/question_writer.rb +129 -0
- data/lib/canvas_cc/canvas_cc/short_answer_question_writer.rb +42 -0
- data/lib/canvas_cc/canvas_cc/text_only_question_writer.rb +19 -0
- data/lib/canvas_cc/canvas_cc/true_false_question_writer.rb +38 -0
- data/lib/canvas_cc/cc/assessment.rb +25 -0
- data/lib/canvas_cc/cc/assignment.rb +61 -0
- data/lib/canvas_cc/cc/cc_helper.rb +285 -0
- data/lib/canvas_cc/cc/converter.rb +137 -0
- data/lib/canvas_cc/cc/course.rb +16 -0
- data/lib/canvas_cc/cc/discussion_topic.rb +53 -0
- data/lib/canvas_cc/cc/label.rb +6 -0
- data/lib/canvas_cc/cc/question.rb +23 -0
- data/lib/canvas_cc/cc/resource.rb +30 -0
- data/lib/canvas_cc/cc/templates/assignment.html.erb +13 -0
- data/lib/canvas_cc/cc/templates/syllabus.html.erb +9 -0
- data/lib/canvas_cc/cc/templates/wiki_content.html.erb +10 -0
- data/lib/canvas_cc/cc/web_content.rb +48 -0
- data/lib/canvas_cc/cc/web_link.rb +75 -0
- data/lib/canvas_cc/cc/wiki.rb +73 -0
- data/lib/canvas_cc/version.rb +3 -0
- data/lib/canvas_cc.rb +94 -0
- data/spec/moodle2cc/canvas_cc/assessment_writer_spec.rb +95 -0
- data/spec/moodle2cc/canvas_cc/assignment_group_writer_spec.rb +51 -0
- data/spec/moodle2cc/canvas_cc/assignment_writer_spec.rb +74 -0
- data/spec/moodle2cc/canvas_cc/calculated_question_writer_spec.rb +88 -0
- data/spec/moodle2cc/canvas_cc/canvas_export_writer_spec.rb +26 -0
- data/spec/moodle2cc/canvas_cc/cartridge_creator_spec.rb +50 -0
- data/spec/moodle2cc/canvas_cc/course_setting_writer_spec.rb +47 -0
- data/spec/moodle2cc/canvas_cc/discussion_writer_spec.rb +38 -0
- data/spec/moodle2cc/canvas_cc/essay_question_writer_spec.rb +31 -0
- data/spec/moodle2cc/canvas_cc/file_meta_writer_spec.rb +57 -0
- data/spec/moodle2cc/canvas_cc/ims_manifest_generator_spec.rb +141 -0
- data/spec/moodle2cc/canvas_cc/matching_question_writer_spec.rb +51 -0
- data/spec/moodle2cc/canvas_cc/models/assessment_spec.rb +131 -0
- data/spec/moodle2cc/canvas_cc/models/assignment_group_spec.rb +9 -0
- data/spec/moodle2cc/canvas_cc/models/assignment_spec.rb +45 -0
- data/spec/moodle2cc/canvas_cc/models/calculated_question_spec.rb +25 -0
- data/spec/moodle2cc/canvas_cc/models/canvas_file_spec.rb +23 -0
- data/spec/moodle2cc/canvas_cc/models/canvas_module_spec.rb +16 -0
- data/spec/moodle2cc/canvas_cc/models/course_spec.rb +43 -0
- data/spec/moodle2cc/canvas_cc/models/discussion_spec.rb +47 -0
- data/spec/moodle2cc/canvas_cc/models/discussion_topic_spec.rb +7 -0
- data/spec/moodle2cc/canvas_cc/models/module_item_spec.rb +15 -0
- data/spec/moodle2cc/canvas_cc/models/page_spec.rb +34 -0
- data/spec/moodle2cc/canvas_cc/models/question_spec.rb +8 -0
- data/spec/moodle2cc/canvas_cc/models/resource_spec.rb +17 -0
- data/spec/moodle2cc/canvas_cc/models/web_content_spec.rb +7 -0
- data/spec/moodle2cc/canvas_cc/models/web_link_spec.rb +9 -0
- data/spec/moodle2cc/canvas_cc/module_meta_writer_spec.rb +118 -0
- data/spec/moodle2cc/canvas_cc/multiple_answers_question_writer_spec.rb +50 -0
- data/spec/moodle2cc/canvas_cc/multiple_blanks_question_writer_spec.rb +77 -0
- data/spec/moodle2cc/canvas_cc/multiple_choice_question_writer_spec.rb +69 -0
- data/spec/moodle2cc/canvas_cc/multiple_dropdowns_question_writer_spec.rb +46 -0
- data/spec/moodle2cc/canvas_cc/numerical_question_writer_spec.rb +69 -0
- data/spec/moodle2cc/canvas_cc/page_writer_spec.rb +29 -0
- data/spec/moodle2cc/canvas_cc/question_bank_writer_spec.rb +43 -0
- data/spec/moodle2cc/canvas_cc/question_writer_spec.rb +129 -0
- data/spec/moodle2cc/canvas_cc/short_answer_question_writer_spec.rb +50 -0
- data/spec/moodle2cc/canvas_cc/text_only_question_writer_spec.rb +23 -0
- data/spec/moodle2cc/canvas_cc/true_false_question_writer_spec.rb +62 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/support/shared_examples_for_models.rb +26 -0
- data/test/acceptance/migrator_test.rb +24 -0
- data/test/fixtures/cc.imscc +0 -0
- data/test/fixtures/common_cartridge/ims_manifest_simple.xml +45 -0
- data/test/fixtures/common_cartridge/schema/cccv1p0.xsd +563 -0
- data/test/fixtures/common_cartridge/schema/ccv1p1_imsccauth_v1p1.xsd +203 -0
- data/test/fixtures/common_cartridge/schema/ccv1p1_imscp_v1p2_v1p0.xsd +827 -0
- data/test/fixtures/common_cartridge/schema/ccv1p1_lommanifest_v1p0.xsd +822 -0
- data/test/fixtures/common_cartridge/schema/ccv1p1_lomresource_v1p0.xsd +273 -0
- data/test/fixtures/common_cartridge/schema/xml.xsd +286 -0
- data/test/test_helper.rb +71 -0
- data/test/test_question_helper.rb +122 -0
- data/test/test_wiki_helper.rb +21 -0
- data/test/unit/canvas/assessment_test.rb +261 -0
- data/test/unit/canvas/assignment_test.rb +220 -0
- data/test/unit/canvas/converter_test.rb +171 -0
- data/test/unit/canvas/course_test.rb +176 -0
- data/test/unit/canvas/discussion_topic_test.rb +129 -0
- data/test/unit/canvas/label_test.rb +32 -0
- data/test/unit/canvas/question_bank_test.rb +92 -0
- data/test/unit/canvas/question_group_test.rb +90 -0
- data/test/unit/canvas/question_test.rb +876 -0
- data/test/unit/canvas/web_content_test.rb +46 -0
- data/test/unit/canvas/web_link_test.rb +48 -0
- data/test/unit/canvas/wiki_test.rb +74 -0
- data/test/unit/cc/assessment_test.rb +48 -0
- data/test/unit/cc/assignment_test.rb +72 -0
- data/test/unit/cc/cc_helper_test.rb +19 -0
- data/test/unit/cc/converter_test.rb +173 -0
- data/test/unit/cc/course_test.rb +36 -0
- data/test/unit/cc/discussion_topic_test.rb +83 -0
- data/test/unit/cc/label_test.rb +29 -0
- data/test/unit/cc/question_test.rb +54 -0
- data/test/unit/cc/web_content_test.rb +76 -0
- data/test/unit/cc/web_link_test.rb +159 -0
- data/test/unit/cc/wiki_test.rb +139 -0
- data/test/unit/logger_test.rb +33 -0
- data/test/unit/migrator_test.rb +67 -0
- data/test/unit/resource_factory_test.rb +216 -0
- metadata +499 -0
@@ -0,0 +1,563 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema targetNamespace="http://canvas.instructure.com/xsd/cccv1p0"
|
3
|
+
xmlns="http://canvas.instructure.com/xsd/cccv1p0"
|
4
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
5
|
+
elementFormDefault="qualified">
|
6
|
+
<!-- todo: useful comments as documentation ;) -->
|
7
|
+
<xs:element name="course">
|
8
|
+
<xs:complexType>
|
9
|
+
<xs:all minOccurs="0" maxOccurs="1">
|
10
|
+
<xs:element name="title" type="xs:string" minOccurs="1"/>
|
11
|
+
<xs:element name="course_code" type="xs:string" minOccurs="0"/>
|
12
|
+
<xs:element name="start_at" type="xs:dateTime" minOccurs="0"/>
|
13
|
+
<xs:element name="conclude_at" type="xs:dateTime" minOccurs="0"/>
|
14
|
+
<xs:element name="is_public" type="xs:boolean" minOccurs="0"/>
|
15
|
+
<xs:element name="indexed" type="xs:boolean" minOccurs="0"/>
|
16
|
+
<xs:element name="publish_grades_immediately" type="xs:boolean" minOccurs="0"/>
|
17
|
+
<xs:element name="allow_student_wiki_edits" type="xs:boolean" minOccurs="0"/>
|
18
|
+
<xs:element name="allow_student_assignment_edits" type="xs:boolean" minOccurs="0"/>
|
19
|
+
<xs:element name="hashtag" type="xs:string" minOccurs="0"/>
|
20
|
+
<xs:element name="show_public_context_messages" type="xs:boolean" minOccurs="0"/>
|
21
|
+
<xs:element name="allow_student_forum_attachments" type="xs:boolean" minOccurs="0"/>
|
22
|
+
<xs:element name="default_wiki_editing_roles" type="xs:string" minOccurs="0"/>
|
23
|
+
<xs:element name="allow_student_organized_groups" type="xs:boolean" minOccurs="0"/>
|
24
|
+
<xs:element name="show_all_discussion_entries" type="xs:boolean" minOccurs="0"/>
|
25
|
+
<xs:element name="open_enrollment" type="xs:boolean" minOccurs="0"/>
|
26
|
+
<xs:element name="allow_wiki_comments" type="xs:boolean" minOccurs="0"/>
|
27
|
+
<xs:element name="self_enrollment" type="xs:boolean" minOccurs="0"/>
|
28
|
+
<xs:element name="turnitin_comments" type="xs:string" minOccurs="0"/>
|
29
|
+
<xs:element name="locale" type="xs:string" minOccurs="0"/>
|
30
|
+
<xs:element name="hide_final_grade" type="xs:boolean" minOccurs="0"/>
|
31
|
+
<xs:element name="grading_standard_enabled" type="xs:boolean" minOccurs="0"/>
|
32
|
+
<xs:element name="grading_standard_identifier_ref" type="xs:string" minOccurs="0"/>
|
33
|
+
<xs:element name="grading_standard_id" type="xs:integer" minOccurs="0"/>
|
34
|
+
<xs:element name="storage_quota" type="xs:float" minOccurs="0"/>
|
35
|
+
<xs:element name="default_view" minOccurs="0">
|
36
|
+
<xs:simpleType>
|
37
|
+
<xs:restriction base="xs:string">
|
38
|
+
<xs:enumeration value="feed"/>
|
39
|
+
<xs:enumeration value="wiki"/>
|
40
|
+
<xs:enumeration value="modules"/>
|
41
|
+
<xs:enumeration value="assignments"/>
|
42
|
+
<xs:enumeration value="syllabus"/>
|
43
|
+
</xs:restriction>
|
44
|
+
</xs:simpleType>
|
45
|
+
</xs:element>
|
46
|
+
<xs:element name="license" minOccurs="0">
|
47
|
+
<xs:simpleType>
|
48
|
+
<xs:restriction base="xs:string">
|
49
|
+
<xs:enumeration value="private"/>
|
50
|
+
<xs:enumeration value="public_domain"/>
|
51
|
+
<xs:enumeration value="cc_by_nc_nd"/>
|
52
|
+
<xs:enumeration value="cc_by_nc_sa"/>
|
53
|
+
<xs:enumeration value="cc_by_nc"/>
|
54
|
+
<xs:enumeration value="cc_by_nd"/>
|
55
|
+
<xs:enumeration value="cc_by_sa"/>
|
56
|
+
<xs:enumeration value="cc_by"/>
|
57
|
+
</xs:restriction>
|
58
|
+
</xs:simpleType>
|
59
|
+
</xs:element>
|
60
|
+
<xs:element name="group_weighting_scheme" minOccurs="0">
|
61
|
+
<xs:simpleType>
|
62
|
+
<xs:restriction base="xs:string">
|
63
|
+
<xs:enumeration value="percent"/>
|
64
|
+
<xs:enumeration value="equal"/>
|
65
|
+
</xs:restriction>
|
66
|
+
</xs:simpleType>
|
67
|
+
</xs:element>
|
68
|
+
</xs:all>
|
69
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
70
|
+
</xs:complexType>
|
71
|
+
</xs:element>
|
72
|
+
|
73
|
+
<xs:element name="assignment" type="assignmentType"/>
|
74
|
+
<xs:complexType name="assignmentType">
|
75
|
+
<xs:all minOccurs="0" maxOccurs="1">
|
76
|
+
<xs:element name="title" type="xs:string" minOccurs="1"/>
|
77
|
+
<xs:element name="due_at" type="xs:dateTime" minOccurs="0"/>
|
78
|
+
<xs:element name="lock_at" type="xs:dateTime" minOccurs="0"/>
|
79
|
+
<xs:element name="unlock_at" type="xs:dateTime" minOccurs="0"/>
|
80
|
+
<xs:element name="peer_reviews_due_at" type="xs:dateTime" minOccurs="0"/>
|
81
|
+
<xs:element name="all_day_date" type="xs:date" minOccurs="0"/>
|
82
|
+
<xs:element name="assignment_group_identifierref" type="xs:string" minOccurs="0"/>
|
83
|
+
<xs:element name="grading_standard_identifierref" type="xs:string" minOccurs="0"/>
|
84
|
+
<xs:element name="rubric_identifierref" type="xs:string" minOccurs="0"/>
|
85
|
+
<xs:element name="rubric_external_identifier" type="xs:string" minOccurs="0"/>
|
86
|
+
<xs:element name="rubric_use_for_grading" type="xs:boolean" minOccurs="0"/>
|
87
|
+
<xs:element name="rubric_hide_score_total" type="xs:boolean" minOccurs="0"/>
|
88
|
+
<xs:element name="quiz_identifierref" type="xs:string" minOccurs="0"/>
|
89
|
+
<xs:element name="allowed_extensions" type="xs:string" minOccurs="0"/>
|
90
|
+
<xs:element name="points_possible" type="xs:float" minOccurs="0"/>
|
91
|
+
<xs:element name="min_score" type="xs:float" minOccurs="0"/>
|
92
|
+
<xs:element name="max_score" type="xs:float" minOccurs="0"/>
|
93
|
+
<xs:element name="mastery_score" type="xs:float" minOccurs="0"/>
|
94
|
+
<xs:element name="grading_type" type="xs:string" minOccurs="0"/>
|
95
|
+
<xs:element name="all_day" type="xs:boolean" minOccurs="0"/>
|
96
|
+
<xs:element name="submission_types" type="xs:string" minOccurs="0"/>
|
97
|
+
<xs:element name="position" type="xs:integer" minOccurs="0"/>
|
98
|
+
<xs:element name="turnitin_enabled" type="xs:boolean" minOccurs="0"/>
|
99
|
+
<xs:element name="peer_review_count" type="xs:integer" minOccurs="0"/>
|
100
|
+
<xs:element name="peer_reviews_assigned" type="xs:boolean" minOccurs="0"/>
|
101
|
+
<xs:element name="peer_reviews" type="xs:boolean" minOccurs="0"/>
|
102
|
+
<xs:element name="automatic_peer_reviews" type="xs:boolean" minOccurs="0"/>
|
103
|
+
<xs:element name="anonymous_peer_reviews" type="xs:boolean" minOccurs="0"/>
|
104
|
+
<xs:element name="grade_group_students_individually" type="xs:boolean" minOccurs="0"/>
|
105
|
+
<xs:element name="external_tool_url" type="xs:string" minOccurs="0"/>
|
106
|
+
<xs:element name="external_tool_new_tab" type="xs:boolean" minOccurs="0"/>
|
107
|
+
<xs:element name="freeze_on_copy" type="xs:boolean" minOccurs="0"/>
|
108
|
+
<xs:element name="saved_rubric_comments" minOccurs="0">
|
109
|
+
<xs:complexType>
|
110
|
+
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
111
|
+
<xs:element name="comment">
|
112
|
+
<xs:complexType>
|
113
|
+
<xs:attribute name="criterion_id" type="xs:string" use="required"/>
|
114
|
+
</xs:complexType>
|
115
|
+
</xs:element>
|
116
|
+
</xs:sequence>
|
117
|
+
</xs:complexType>
|
118
|
+
</xs:element>
|
119
|
+
</xs:all>
|
120
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
121
|
+
</xs:complexType>
|
122
|
+
|
123
|
+
<xs:element name="topicMeta">
|
124
|
+
<xs:complexType>
|
125
|
+
<xs:all minOccurs="0" maxOccurs="1">
|
126
|
+
<xs:element name="topic_id" type="xs:ID" minOccurs="1"/>
|
127
|
+
<xs:element name="title" type="xs:string" minOccurs="1"/>
|
128
|
+
<xs:element name="assignment" type="assignmentType" minOccurs="0"/>
|
129
|
+
<xs:element name="posted_at" type="xs:dateTime" minOccurs="0"/>
|
130
|
+
<xs:element name="delayed_post_at" type="xs:dateTime" minOccurs="0"/>
|
131
|
+
<xs:element name="position" type="xs:integer" minOccurs="0"/>
|
132
|
+
<xs:element name="pinned" type="xs:boolean" minOccurs="0"/>
|
133
|
+
<xs:element name="require_initial_post" type="xs:boolean" minOccurs="0"/>
|
134
|
+
<xs:element name="external_feed_identifierref" type="xs:string" minOccurs="0"/>
|
135
|
+
<xs:element name="attachment_identifierref" type="xs:string" minOccurs="0"/>
|
136
|
+
<xs:element name="discussion_type" minOccurs="0">
|
137
|
+
<xs:simpleType>
|
138
|
+
<xs:restriction base="xs:string">
|
139
|
+
<xs:enumeration value="side_comment"/>
|
140
|
+
<xs:enumeration value="threaded"/>
|
141
|
+
<xs:enumeration value="flat"/>
|
142
|
+
</xs:restriction>
|
143
|
+
</xs:simpleType>
|
144
|
+
</xs:element>
|
145
|
+
<xs:element name="type" minOccurs="0">
|
146
|
+
<xs:simpleType>
|
147
|
+
<xs:restriction base="xs:string">
|
148
|
+
<xs:enumeration value="announcement"/>
|
149
|
+
<xs:enumeration value="topic"/>
|
150
|
+
</xs:restriction>
|
151
|
+
</xs:simpleType>
|
152
|
+
</xs:element>
|
153
|
+
</xs:all>
|
154
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
155
|
+
</xs:complexType>
|
156
|
+
</xs:element>
|
157
|
+
|
158
|
+
<xs:element name="modules">
|
159
|
+
<xs:complexType>
|
160
|
+
<xs:sequence>
|
161
|
+
<xs:element name="module" minOccurs="0" maxOccurs="unbounded">
|
162
|
+
<xs:complexType>
|
163
|
+
<xs:all minOccurs="0">
|
164
|
+
<xs:element name="title" type="xs:string" minOccurs="1"/>
|
165
|
+
<xs:element name="workflow_state" type="xs:string" minOccurs="1"/>
|
166
|
+
<xs:element name="position" type="xs:integer" minOccurs="0"/>
|
167
|
+
<xs:element name="start_at" type="xs:dateTime" minOccurs="0"/>
|
168
|
+
<xs:element name="end_at" type="xs:dateTime" minOccurs="0"/>
|
169
|
+
<xs:element name="unlock_at" type="xs:dateTime" minOccurs="0"/>
|
170
|
+
<xs:element name="require_sequential_progress" type="xs:boolean" minOccurs="0"/>
|
171
|
+
|
172
|
+
<xs:element name="prerequisites" minOccurs="0">
|
173
|
+
<xs:complexType>
|
174
|
+
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
175
|
+
<xs:element name="prerequisite">
|
176
|
+
<xs:complexType>
|
177
|
+
<xs:all minOccurs="0">
|
178
|
+
<xs:element name="title" type="xs:string" minOccurs="0"/>
|
179
|
+
<xs:element name="identifierref" type="xs:string" minOccurs="0"/>
|
180
|
+
</xs:all>
|
181
|
+
<xs:attribute name="type" type="xs:string" use="required"/>
|
182
|
+
</xs:complexType>
|
183
|
+
</xs:element>
|
184
|
+
</xs:sequence>
|
185
|
+
</xs:complexType>
|
186
|
+
</xs:element>
|
187
|
+
|
188
|
+
<xs:element name="items" minOccurs="0">
|
189
|
+
<xs:complexType>
|
190
|
+
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
191
|
+
<xs:element name="item">
|
192
|
+
<xs:complexType>
|
193
|
+
<xs:all minOccurs="0">
|
194
|
+
<xs:element name="content_type" type="xs:string" minOccurs="1"/>
|
195
|
+
<xs:element name="title" type="xs:string" minOccurs="1"/>
|
196
|
+
<xs:element name="identifierref" type="xs:string" minOccurs="0"/>
|
197
|
+
<xs:element name="url" type="xs:string" minOccurs="0"/>
|
198
|
+
<xs:element name="position" type="xs:integer" minOccurs="0"/>
|
199
|
+
<xs:element name="indent" type="xs:integer" minOccurs="0"/>
|
200
|
+
</xs:all>
|
201
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
202
|
+
</xs:complexType>
|
203
|
+
</xs:element>
|
204
|
+
</xs:sequence>
|
205
|
+
</xs:complexType>
|
206
|
+
</xs:element>
|
207
|
+
|
208
|
+
<xs:element name="completionRequirements" minOccurs="0">
|
209
|
+
<xs:complexType>
|
210
|
+
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
211
|
+
<xs:element name="completionRequirement">
|
212
|
+
<xs:complexType>
|
213
|
+
<xs:all minOccurs="0">
|
214
|
+
<xs:element name="identifierref" type="xs:string" minOccurs="1"/>
|
215
|
+
<xs:element name="min_score" type="xs:float" minOccurs="0"/>
|
216
|
+
<xs:element name="max_score" type="xs:float" minOccurs="0"/>
|
217
|
+
</xs:all>
|
218
|
+
<xs:attribute name="type" type="xs:string" use="required"/>
|
219
|
+
</xs:complexType>
|
220
|
+
</xs:element>
|
221
|
+
</xs:sequence>
|
222
|
+
</xs:complexType>
|
223
|
+
</xs:element>
|
224
|
+
</xs:all>
|
225
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
226
|
+
</xs:complexType>
|
227
|
+
</xs:element>
|
228
|
+
</xs:sequence>
|
229
|
+
</xs:complexType>
|
230
|
+
</xs:element>
|
231
|
+
|
232
|
+
<xs:element name="externalFeeds">
|
233
|
+
<xs:complexType>
|
234
|
+
<xs:sequence>
|
235
|
+
<xs:element name="externalFeed" minOccurs="0" maxOccurs="unbounded">
|
236
|
+
<xs:complexType>
|
237
|
+
<xs:all minOccurs="0">
|
238
|
+
<xs:element name="url" type="xs:anyURI" minOccurs="1"/>
|
239
|
+
<xs:element name="title" type="xs:string" minOccurs="0"/>
|
240
|
+
<xs:element name="header_match" type="xs:string" minOccurs="0"/>
|
241
|
+
<xs:element name="purpose" minOccurs="0" default="announcements">
|
242
|
+
<xs:simpleType>
|
243
|
+
<xs:restriction base="xs:string">
|
244
|
+
<xs:enumeration value="announcements"/>
|
245
|
+
<!--<xs:enumeration value="calendar"/>-->
|
246
|
+
</xs:restriction>
|
247
|
+
</xs:simpleType>
|
248
|
+
</xs:element>
|
249
|
+
<xs:element name="feed_type" minOccurs="1">
|
250
|
+
<xs:simpleType>
|
251
|
+
<xs:restriction base="xs:string">
|
252
|
+
<xs:enumeration value="rss/atom"/>
|
253
|
+
<!--<xs:enumeration value="ical"/>-->
|
254
|
+
</xs:restriction>
|
255
|
+
</xs:simpleType>
|
256
|
+
</xs:element>
|
257
|
+
<xs:element name="verbosity" minOccurs="1" default="full">
|
258
|
+
<xs:simpleType>
|
259
|
+
<xs:restriction base="xs:string">
|
260
|
+
<xs:enumeration value="full"/>
|
261
|
+
<xs:enumeration value="truncate"/>
|
262
|
+
<xs:enumeration value="link_only"/>
|
263
|
+
</xs:restriction>
|
264
|
+
</xs:simpleType>
|
265
|
+
</xs:element>
|
266
|
+
</xs:all>
|
267
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
268
|
+
</xs:complexType>
|
269
|
+
</xs:element>
|
270
|
+
</xs:sequence>
|
271
|
+
</xs:complexType>
|
272
|
+
</xs:element>
|
273
|
+
|
274
|
+
<xs:element name="assignmentGroups">
|
275
|
+
<xs:complexType>
|
276
|
+
<xs:sequence>
|
277
|
+
<xs:element name="assignmentGroup" minOccurs="0" maxOccurs="unbounded">
|
278
|
+
<xs:complexType>
|
279
|
+
<xs:all minOccurs="0">
|
280
|
+
<xs:element name="title" type="xs:string" minOccurs="1"/>
|
281
|
+
<xs:element name="position" type="xs:integer" minOccurs="0"/>
|
282
|
+
<xs:element name="group_weight" type="xs:float" minOccurs="0"/>
|
283
|
+
<xs:element name="rules" minOccurs="0">
|
284
|
+
<xs:complexType>
|
285
|
+
<xs:sequence>
|
286
|
+
<xs:element name="rule" minOccurs="0" maxOccurs="unbounded">
|
287
|
+
<xs:complexType>
|
288
|
+
<xs:all minOccurs="0">
|
289
|
+
<xs:element name="drop_type" minOccurs="1">
|
290
|
+
<xs:simpleType>
|
291
|
+
<xs:restriction base="xs:string">
|
292
|
+
<xs:enumeration value="drop_lowest"/>
|
293
|
+
<xs:enumeration value="drop_highest"/>
|
294
|
+
<xs:enumeration value="never_drop"/>
|
295
|
+
</xs:restriction>
|
296
|
+
</xs:simpleType>
|
297
|
+
</xs:element>
|
298
|
+
<xs:element name="identifierref" type="xs:string" minOccurs="0"/>
|
299
|
+
<xs:element name="drop_count" type="xs:integer" minOccurs="0"/>
|
300
|
+
</xs:all>
|
301
|
+
</xs:complexType>
|
302
|
+
</xs:element>
|
303
|
+
</xs:sequence>
|
304
|
+
</xs:complexType>
|
305
|
+
</xs:element>
|
306
|
+
</xs:all>
|
307
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
308
|
+
</xs:complexType>
|
309
|
+
</xs:element>
|
310
|
+
</xs:sequence>
|
311
|
+
</xs:complexType>
|
312
|
+
</xs:element>
|
313
|
+
|
314
|
+
<xs:element name="gradingStandards">
|
315
|
+
<xs:complexType>
|
316
|
+
<xs:sequence>
|
317
|
+
<xs:element name="gradingStandard" minOccurs="0" maxOccurs="unbounded">
|
318
|
+
<xs:complexType>
|
319
|
+
<xs:all minOccurs="0">
|
320
|
+
<xs:element name="title" type="xs:string" minOccurs="0"/>
|
321
|
+
<xs:element name="data" type="xs:string" minOccurs="1"/>
|
322
|
+
</xs:all>
|
323
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
324
|
+
<xs:attribute name="version" type="xs:integer" default="1"/>
|
325
|
+
</xs:complexType>
|
326
|
+
</xs:element>
|
327
|
+
</xs:sequence>
|
328
|
+
</xs:complexType>
|
329
|
+
</xs:element>
|
330
|
+
|
331
|
+
<xs:complexType name="ratingsType">
|
332
|
+
<xs:sequence>
|
333
|
+
<xs:element name="rating" minOccurs="0" maxOccurs="unbounded">
|
334
|
+
<xs:complexType>
|
335
|
+
<xs:all minOccurs="0">
|
336
|
+
<xs:element name="id" type="xs:string" minOccurs="0"/>
|
337
|
+
<xs:element name="description" type="xs:string" minOccurs="1"/>
|
338
|
+
<xs:element name="points" type="xs:float" minOccurs="1"/>
|
339
|
+
<xs:element name="criterion_id" type="xs:string" minOccurs="0"/>
|
340
|
+
<xs:element name="long_description" type="xs:string" minOccurs="0"/>
|
341
|
+
</xs:all>
|
342
|
+
</xs:complexType>
|
343
|
+
</xs:element>
|
344
|
+
</xs:sequence>
|
345
|
+
</xs:complexType>
|
346
|
+
|
347
|
+
<xs:element name="learningOutcomes" type="learningOutcomesType"/>
|
348
|
+
<xs:complexType name="learningOutcomesType">
|
349
|
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
350
|
+
|
351
|
+
<xs:element name="learningOutcome">
|
352
|
+
<xs:complexType>
|
353
|
+
<xs:all minOccurs="0">
|
354
|
+
<xs:element name="title" type="xs:string" minOccurs="0"/>
|
355
|
+
<xs:element name="description" type="xs:string" minOccurs="0"/>
|
356
|
+
<xs:element name="points_possible" type="xs:float" minOccurs="0"/>
|
357
|
+
<xs:element name="mastery_points" type="xs:float" minOccurs="0"/>
|
358
|
+
<xs:element name="ratings" type="ratingsType" minOccurs="0"/>
|
359
|
+
<xs:element name="external_identifier" type="xs:string" minOccurs="0"/>
|
360
|
+
<xs:element name="is_global_outcome" type="xs:boolean" minOccurs="0"/>
|
361
|
+
</xs:all>
|
362
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
363
|
+
</xs:complexType>
|
364
|
+
</xs:element>
|
365
|
+
|
366
|
+
<xs:element name="learningOutcomeGroup">
|
367
|
+
<xs:complexType>
|
368
|
+
<xs:all minOccurs="0">
|
369
|
+
<xs:element name="title" type="xs:string" minOccurs="0"/>
|
370
|
+
<xs:element name="description" type="xs:string" minOccurs="0"/>
|
371
|
+
<xs:element name="learningOutcomes" type="learningOutcomesType" minOccurs="0"/>
|
372
|
+
</xs:all>
|
373
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
374
|
+
</xs:complexType>
|
375
|
+
</xs:element>
|
376
|
+
|
377
|
+
</xs:choice>
|
378
|
+
</xs:complexType>
|
379
|
+
|
380
|
+
<xs:element name="rubrics">
|
381
|
+
<xs:complexType>
|
382
|
+
<xs:sequence>
|
383
|
+
<xs:element name="rubric" minOccurs="0" maxOccurs="unbounded">
|
384
|
+
<xs:complexType>
|
385
|
+
<xs:all minOccurs="0">
|
386
|
+
<xs:element name="title" type="xs:string" minOccurs="0"/>
|
387
|
+
<xs:element name="description" type="xs:string" minOccurs="0"/>
|
388
|
+
<xs:element name="read_only" type="xs:boolean" minOccurs="0"/>
|
389
|
+
<xs:element name="reusable" type="xs:boolean" minOccurs="0"/>
|
390
|
+
<xs:element name="public" type="xs:boolean" minOccurs="0"/>
|
391
|
+
<xs:element name="points_possible" type="xs:float" minOccurs="0"/>
|
392
|
+
<xs:element name="hide_score_total" type="xs:boolean" minOccurs="0"/>
|
393
|
+
<xs:element name="free_form_criterion_comments" type="xs:boolean" minOccurs="0"/>
|
394
|
+
<xs:element name="external_identifier" type="xs:string" minOccurs="0"/>
|
395
|
+
|
396
|
+
<xs:element name="criteria">
|
397
|
+
<xs:complexType>
|
398
|
+
<xs:sequence minOccurs="0">
|
399
|
+
<xs:element name="criterion" maxOccurs="unbounded">
|
400
|
+
<xs:complexType>
|
401
|
+
<xs:all minOccurs="0">
|
402
|
+
<xs:element name="criterion_id" type="xs:string" minOccurs="0"/>
|
403
|
+
<xs:element name="description" type="xs:string" minOccurs="0"/>
|
404
|
+
<xs:element name="long_description" type="xs:string" minOccurs="0"/>
|
405
|
+
<xs:element name="points" type="xs:float" minOccurs="0"/>
|
406
|
+
<xs:element name="mastery_points" type="xs:float" minOccurs="0"/>
|
407
|
+
<xs:element name="ignore_for_scoring" type="xs:boolean" minOccurs="0"/>
|
408
|
+
<xs:element name="learning_outcome_identifierref" type="xs:string" minOccurs="0"/>
|
409
|
+
<xs:element name="ratings" type="ratingsType" minOccurs="0"/>
|
410
|
+
</xs:all>
|
411
|
+
</xs:complexType>
|
412
|
+
</xs:element>
|
413
|
+
</xs:sequence>
|
414
|
+
</xs:complexType>
|
415
|
+
</xs:element>
|
416
|
+
|
417
|
+
</xs:all>
|
418
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
419
|
+
</xs:complexType>
|
420
|
+
</xs:element>
|
421
|
+
</xs:sequence>
|
422
|
+
</xs:complexType>
|
423
|
+
</xs:element>
|
424
|
+
|
425
|
+
<xs:element name="externalTools">
|
426
|
+
<xs:complexType>
|
427
|
+
<xs:sequence>
|
428
|
+
<xs:element name="externalTool" minOccurs="0" maxOccurs="unbounded">
|
429
|
+
<xs:complexType>
|
430
|
+
<xs:all minOccurs="0">
|
431
|
+
<xs:element name="title" type="xs:string" minOccurs="0"/>
|
432
|
+
<xs:element name="url" type="xs:anyURI" minOccurs="0"/>
|
433
|
+
<xs:element name="description" type="xs:string" minOccurs="0"/>
|
434
|
+
<xs:element name="domain" type="xs:string" minOccurs="0"/>
|
435
|
+
|
436
|
+
<xs:element name="privacy_level" minOccurs="1" default="anonymous">
|
437
|
+
<xs:simpleType>
|
438
|
+
<xs:restriction base="xs:string">
|
439
|
+
<xs:enumeration value="name_only"/>
|
440
|
+
<xs:enumeration value="public"/>
|
441
|
+
<xs:enumeration value="anonymous"/>
|
442
|
+
</xs:restriction>
|
443
|
+
</xs:simpleType>
|
444
|
+
</xs:element>
|
445
|
+
|
446
|
+
</xs:all>
|
447
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
448
|
+
</xs:complexType>
|
449
|
+
</xs:element>
|
450
|
+
</xs:sequence>
|
451
|
+
</xs:complexType>
|
452
|
+
</xs:element>
|
453
|
+
|
454
|
+
<xs:element name="quiz">
|
455
|
+
<xs:complexType>
|
456
|
+
<xs:all minOccurs="0" maxOccurs="1">
|
457
|
+
<xs:element name="title" type="xs:string" minOccurs="1"/>
|
458
|
+
<xs:element name="description" type="xs:string" minOccurs="1"/>
|
459
|
+
<xs:element name="points_possible" type="xs:float" minOccurs="0"/>
|
460
|
+
<xs:element name="assignment" type="assignmentType" minOccurs="0"/>
|
461
|
+
<xs:element name="lock_at" type="xs:dateTime" minOccurs="0"/>
|
462
|
+
<xs:element name="unlock_at" type="xs:dateTime" minOccurs="0"/>
|
463
|
+
<xs:element name="due_at" type="xs:dateTime" minOccurs="0"/>
|
464
|
+
<xs:element name="shuffle_answers" type="xs:boolean" minOccurs="0"/>
|
465
|
+
<xs:element name="hide_results" type="xs:string" minOccurs="0"/>
|
466
|
+
<xs:element name="require_lockdown_browser" type="xs:boolean" minOccurs="0"/>
|
467
|
+
<xs:element name="require_lockdown_browser_for_results" type="xs:boolean" minOccurs="0"/>
|
468
|
+
<xs:element name="access_code" type="xs:string" minOccurs="0"/>
|
469
|
+
<xs:element name="ip_filter" type="xs:string" minOccurs="0"/>
|
470
|
+
<xs:element name="show_correct_answers" type="xs:boolean" minOccurs="0"/>
|
471
|
+
<xs:element name="anonymous_submissions" type="xs:boolean" minOccurs="0"/>
|
472
|
+
<xs:element name="could_be_locked" type="xs:boolean" minOccurs="0"/>
|
473
|
+
<xs:element name="available" type="xs:boolean" minOccurs="0"/>
|
474
|
+
<xs:element name="time_limit" type="xs:integer" minOccurs="0"/>
|
475
|
+
<xs:element name="allowed_attempts" type="xs:integer" minOccurs="0"/>
|
476
|
+
<xs:element name="one_question_at_a_time" type="xs:boolean" minOccurs="0"/>
|
477
|
+
<xs:element name="cant_go_back" type="xs:boolean" minOccurs="0"/>
|
478
|
+
<xs:element name="assignment_group_identifierref" type="xs:string" minOccurs="0"/>
|
479
|
+
|
480
|
+
<xs:element name="quiz_type" minOccurs="0" default="practice_quiz">
|
481
|
+
<xs:simpleType>
|
482
|
+
<xs:restriction base="xs:string">
|
483
|
+
<xs:enumeration value="practice_quiz"/>
|
484
|
+
<xs:enumeration value="assignment"/>
|
485
|
+
<xs:enumeration value="graded_survey"/>
|
486
|
+
<xs:enumeration value="survey"/>
|
487
|
+
</xs:restriction>
|
488
|
+
</xs:simpleType>
|
489
|
+
</xs:element>
|
490
|
+
|
491
|
+
<xs:element name="scoring_policy" minOccurs="0" default="keep_highest">
|
492
|
+
<xs:simpleType>
|
493
|
+
<xs:restriction base="xs:string">
|
494
|
+
<xs:enumeration value="keep_latest"/>
|
495
|
+
<xs:enumeration value="keep_highest"/>
|
496
|
+
</xs:restriction>
|
497
|
+
</xs:simpleType>
|
498
|
+
</xs:element>
|
499
|
+
|
500
|
+
</xs:all>
|
501
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
502
|
+
</xs:complexType>
|
503
|
+
</xs:element>
|
504
|
+
|
505
|
+
<xs:element name="events">
|
506
|
+
<xs:complexType>
|
507
|
+
<xs:sequence>
|
508
|
+
<xs:element name="event" minOccurs="0" maxOccurs="unbounded">
|
509
|
+
<xs:complexType>
|
510
|
+
<xs:all minOccurs="0">
|
511
|
+
<xs:element name="title" type="xs:string" minOccurs="0"/>
|
512
|
+
<xs:element name="description" type="xs:string" minOccurs="0"/>
|
513
|
+
<xs:element name="start_at" type="xs:dateTime" minOccurs="0"/>
|
514
|
+
<xs:element name="end_at" type="xs:dateTime" minOccurs="0"/>
|
515
|
+
<xs:element name="all_day_date" type="xs:date" minOccurs="0"/>
|
516
|
+
<xs:element name="all_day" type="xs:boolean" minOccurs="0"/>
|
517
|
+
</xs:all>
|
518
|
+
<xs:attribute name="identifier" type="xs:ID" use="required"/>
|
519
|
+
</xs:complexType>
|
520
|
+
</xs:element>
|
521
|
+
</xs:sequence>
|
522
|
+
</xs:complexType>
|
523
|
+
</xs:element>
|
524
|
+
|
525
|
+
<xs:element name="fileMeta">
|
526
|
+
<xs:complexType>
|
527
|
+
<xs:all minOccurs="0" maxOccurs="1">
|
528
|
+
<xs:element name="folders" minOccurs="0">
|
529
|
+
<xs:complexType>
|
530
|
+
<xs:sequence>
|
531
|
+
<xs:element name="folder" minOccurs="0" maxOccurs="unbounded">
|
532
|
+
<xs:complexType>
|
533
|
+
<xs:all minOccurs="0">
|
534
|
+
<xs:element name="hidden" type="xs:boolean" minOccurs="0"/>
|
535
|
+
<xs:element name="locked" type="xs:boolean" minOccurs="0"/>
|
536
|
+
</xs:all>
|
537
|
+
<xs:attribute name="path" type="xs:string" use="required"/>
|
538
|
+
</xs:complexType>
|
539
|
+
</xs:element>
|
540
|
+
</xs:sequence>
|
541
|
+
</xs:complexType>
|
542
|
+
</xs:element>
|
543
|
+
<xs:element name="files" minOccurs="0">
|
544
|
+
<xs:complexType>
|
545
|
+
<xs:sequence>
|
546
|
+
<xs:element name="file" minOccurs="0" maxOccurs="unbounded">
|
547
|
+
<xs:complexType>
|
548
|
+
<xs:all minOccurs="0">
|
549
|
+
<xs:element name="display_name" type="xs:string" minOccurs="0"/>
|
550
|
+
<xs:element name="hidden" type="xs:boolean" minOccurs="0"/>
|
551
|
+
<xs:element name="locked" type="xs:boolean" minOccurs="0"/>
|
552
|
+
</xs:all>
|
553
|
+
<xs:attribute name="identifier" type="xs:string" use="required"/>
|
554
|
+
</xs:complexType>
|
555
|
+
</xs:element>
|
556
|
+
</xs:sequence>
|
557
|
+
</xs:complexType>
|
558
|
+
</xs:element>
|
559
|
+
</xs:all>
|
560
|
+
</xs:complexType>
|
561
|
+
</xs:element>
|
562
|
+
|
563
|
+
</xs:schema>
|