Last active
December 10, 2015 06:08
-
-
Save bracken/4392104 to your computer and use it in GitHub Desktop.
Proposal for an Assignment extension for IMS Common Cartridge
This won't validate because the namespace stuff isn't set up correctly, but it shows the general idea. Latest version of these proposals here: https://drive.google.com/a/instructure.com/#folders/0B1TZ1hbo34WEbHE4MnZBQUZzc3M
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <assignment xmlns="http://www.imsglobal.org/xsd/imscc_extensions/imscc_extensions/assignment" | |
| identifier="example_asmnt"> | |
| <title>Renaissance Paper</title> | |
| <text texttype="text/html">Write about this painting by a famous renaissance artist. <img src="$IMS-CC-FILEBASE$../I_00006_Media/related_picture.jpg"/></text> | |
| <!-- section for student visible attachments --> | |
| <attachments> | |
| <!-- any number of attachments --> | |
| <attachment href="../I_00006_Media/related_picture.jpg"/> | |
| </attachments> | |
| <!-- indicates this is intended to produce grades, assume true if absent--> | |
| <gradable>true</gradable> | |
| <!-- preferred interaction, fixed enumeration #TODO - we don’t really like ‘format’ --> | |
| <submission_formats> | |
| <format type=”text”/> | |
| <format type=”url”/> | |
| <format type=”upload”/> | |
| </submission_formats> | |
| <!-- section to contain additional content only visible to the instructor--> | |
| <instructor_content> | |
| <text texttype="text/html">The student should not forget to mention Michaelangelo... <img src="$IMS-CC-FILEBASE$../I_00006_Media/related_picture.jpg"/></text> | |
| <!-- section for instructor, like grading guides --> | |
| <attachments> | |
| <!-- any number of attachments --> | |
| <attachment href="../how_to_grade_this.doc"/> | |
| </attachments> | |
| </instructor_content> | |
| <!-- Grading Forms - depending on an actual grading form proposal :) --> | |
| <!-- can be inlined or file path to an externalized grading --> | |
| <!-- Should be inserted by priority order in case the host supports only | |
| a single Grading Form --> | |
| <grading_forms> | |
| <grading_form href="gradingforms.xml" studentVisible="true"/> | |
| <grading_form title="gradingform" studentVisible="true"> | |
| <criteria> TBD </criteria> | |
| </grading_form> | |
| </grading_forms> | |
| <!-- Extensions: platform can be a consumer (LMS) or a producer (vendor) --> | |
| <extensions platform="my.lms.com"> | |
| <property name="rubric_id">1234</property> | |
| </extensions> | |
| </assignment> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xs:schema targetNamespace="http://www.imsglobal.org/xsd/imscc_extensions/imscc_extensions/assignment" | |
| xmlns="http://www.imsglobal.org/xsd/imscc_extensions/imscc_extensions/assignment" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| version="IMS Assignment Proposal 0.0.1" | |
| xmlns:lticp="http://www.imsglobal.org/xsd/imslticp_v1p0" | |
| xmlns:lticm="http://www.imsglobal.org/xsd/imslticm_v1p0" | |
| elementFormDefault="qualified" | |
| attributeFormDefault="unqualified"> | |
| <!-- borrowed from LTI XSD to have the custom/extension elements --> | |
| <xs:import namespace="http://www.imsglobal.org/xsd/imslticm_v1p0" schemaLocation="http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd"/> | |
| <xs:import namespace="http://www.imsglobal.org/xsd/imslticp_v1p0" schemaLocation="http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd"/> | |
| <xs:element name="assignment" type="Assignment.Type"/> | |
| <xs:complexType name="Assignment.Type"> | |
| <xs:all minOccurs="0" maxOccurs="1"> | |
| <!-- Common among most platforms --> | |
| <xs:element name="title" type="xs:string" minOccurs="1"/> | |
| <xs:element name="text" type="Text.Type" minOccurs="0"/> | |
| <xs:element name="due_at" type="xs:dateTime" minOccurs="0"/> | |
| <xs:element name="points_possible" type="xs:float" minOccurs="0"/> | |
| <xs:element name="attachments" type="Attachments.Type" minOccurs="0"/> <!-- Same format as the CC Topic attachments --> | |
| <!-- Less common but maybe useful in CC--> | |
| <!-- Control when student would be able to see assignment --> | |
| <xs:element name="unlock_at" type="xs:dateTime" minOccurs="0"/> | |
| <xs:element name="lock_at" type="xs:dateTime" minOccurs="0"/> | |
| <!-- Any other properties to add? --> | |
| <!-- Allows for easy extension like the LTI XML format does --> | |
| <xs:element name="extensions" type="lticm:PlatformPropertySet.Type" minOccurs="0"/> | |
| <xs:element name="vendor" type="lticp:Vendor.Type" minOccurs="0" maxOccurs="1"/> | |
| </xs:all> | |
| <xs:attribute name="identifier" type="xs:ID" use="required"/> | |
| </xs:complexType> | |
| <!-- These type definitions are copied from http://www.imsglobal.org/profile/cc/ccv1p2/ccv1p2_imsdt_v1p2.xsd --> | |
| <xs:complexType name="Text.Type"> | |
| <xs:annotation> | |
| <xs:documentation source="umldocumentation">The Text for the assignment.</xs:documentation> | |
| </xs:annotation> | |
| <xs:simpleContent> | |
| <xs:extension base="xs:string"> | |
| <xs:attribute name="texttype" use="required"> | |
| <xs:simpleType> | |
| <xs:restriction base="xs:string"> | |
| <xs:enumeration value="text/plain"/> | |
| <xs:enumeration value="text/html"/> | |
| </xs:restriction> | |
| </xs:simpleType> | |
| </xs:attribute> | |
| </xs:extension> | |
| </xs:simpleContent> | |
| </xs:complexType> | |
| <xs:complexType name="EmptyPrimitiveType.Type"> | |
| <xs:complexContent> | |
| <xs:restriction base="xs:anyType"/> | |
| </xs:complexContent> | |
| </xs:complexType> | |
| <xs:complexType name="Attachments.Type" mixed="false"> | |
| <xs:sequence> | |
| <xs:element name="attachment" type="Attachment.Type" minOccurs="1" maxOccurs="unbounded"/> | |
| </xs:sequence> | |
| </xs:complexType> | |
| <xs:complexType name="Attachment.Type"> | |
| <xs:complexContent> | |
| <xs:extension base="EmptyPrimitiveType.Type"> | |
| <xs:attribute name="href" use="required" type="xs:normalizedString"/> | |
| </xs:extension> | |
| </xs:complexContent> | |
| </xs:complexType> | |
| </xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment