Skip to content

Commit

Permalink
LTI 2.0 Final
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg McFall committed Nov 25, 2013
1 parent d767af7 commit 48942de
Show file tree
Hide file tree
Showing 12 changed files with 520 additions and 155 deletions.
2 changes: 2 additions & 0 deletions examples/lti/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/semantictools-context-renderer"/>
<classpathentry combineaccessrules="false" kind="src" path="/semantictools-jsonld"/>
<classpathentry kind="output" path="target/lis-rest-1.0-SNAPSHOT/WEB-INF/classes"/>
</classpath>
5 changes: 2 additions & 3 deletions examples/lti/src/main/resources/rdf/Result/context.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ mediaTypeURI=http://www.imslobal.org/lti/v2p0/media/application/vnd/ims/lis/v2/R
rdfType=http://purl.imsglobal.org/vocab/lis/v2/outcomes#Result
contextURI=http://purl.imsglobal.org/ctx/lis/v2/Result
contextRef=[LIS-v2-Result]
resultScore.@type=http://www.w3.org/2001/XMLSchema#float

expandedValue=http://purl.imsglobal.org/vocab/lis/v2/outcomes#resultScore

abstract= \
This specification defines a minimal representation of an LIS Result object which \
merely provides a single score as a decimal value in the range [0, 1].



introduction= \
This specification defines a minimal representation of an LIS Result object which \
merely provides a single score as a decimal value in the range [0, 1].
Expand Down
3 changes: 2 additions & 1 deletion examples/lti/src/main/resources/rdf/Result/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"resultScore" : {
"@type" : "decimal",
"@value" : 0.83
}
},
"comment" : "Nice Work!"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"code" : "omega",
"vendor" : {
"code" : "lms.example.com",
"name" : {
"vendor_name" : {
"default_value" : "LMS Corporation",
"key" : "product.vendor.name"
},
Expand All @@ -48,7 +48,7 @@
"service_owner" : {
"@id" : "http://state.university.edu/",
"timestamp" : "2012-03-28T09:08:16-04:00",
"owner_name" : {
"service_owner_name" : {
"default_value" : "State University",
"key" : "service_owner.name"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/lti/src/main/resources/rdf/ToolProxy/sample.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@context" : [
"http://purl.imsglobal.org/ctx/lti/v2/ToolProxy",
"http://purl.org/blackboard/ctx/v1/iconStyle"
"http://purl.imsglobal.org/ctx/lti/v2/ToolProxy",
"http://purl.org/blackboard/ctx/v1/iconStyle"
],
"@type" : "ToolProxy",
"@id" : "http://lms.example.com/ToolProxy/869e5ce5-214c-4e85-86c6-b99e8458a592",
Expand Down
5 changes: 1 addition & 4 deletions examples/lti/src/main/resources/rdf/liso.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ liso:Result rdf:type owl:Class;
] ;
rdfs:comment "A container that holds the result of some scorable activity or assignment." .

liso:Score rdf:type owl:Class ;
rdfs:comment "The score that a learner has received for engaging in some activity or submitting an assignment." .

liso:comment rdf:type owl:FunctionalProperty ;
rdfs:domain liso:Result ;
rdfs:range xsd:string ;
rdfs:comment "A comment about this Result suitable for display to the learner. Typically, this is a comment made by the instructor or grader." .

liso:resultScore rdf:type owl:FunctionalProperty ;
rdfs:domain liso:Result ;
rdfs:range liso:Score ;
rdfs:range xsd:float ;
rdfs:comment "The score that the Learner received for engaging in some activity or submitting an assignment." .

2 changes: 0 additions & 2 deletions examples/lti/src/main/resources/rdf/liso_binding.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ liso:Result rdfs:subClassOf
bind:onProperty liso:resultScore ;
bind:associationType bind:Composition
] .
liso:Score rdf:type bind:EmbeddableClass .
liso:Score rdf:type bind:AbstractClass .

5 changes: 5 additions & 0 deletions examples/lti/src/main/resources/rdf/lti.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ lti:ServiceOwner rdf:type owl:Class;
] ,
[ a owl:Restriction ;
owl:onProperty lti:service_owner_name
] ,
[ a owl:Restriction ;
owl:onProperty lti:support;
rdfs:comment "Contact information for support from the service owner."
] ;
rdfs:comment "The entity that owns the services provided by a product instance." .

Expand Down Expand Up @@ -629,6 +633,7 @@ lti:support rdf:type owl:FunctionalProperty ;
owl:unionOf (
lti:ServiceProvider
lti:ProductInstance
lti:ServiceOwner
)
] ;
rdfs:range lti:Contact ;
Expand Down
5 changes: 5 additions & 0 deletions examples/lti/src/main/resources/rdf/lti_binding.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ lti:ProductInstance rdfs:subClassOf
bind:onProperty lti:service_owner ;
bind:associationType bind:Aggregation
] .
lti:ServiceOwner rdfs:subClassOf
[ rdf:type bind:AssociationQualifier ;
bind:onProperty lti:support ;
bind:associationType bind:Composition
] .
lti:ToolProxy rdf:type bind:Addressable .
lti:ToolProxy rdfs:subClassOf
[ rdf:type bind:AssociationQualifier ;
Expand Down
3 changes: 0 additions & 3 deletions examples/lti/src/main/resources/rdf/xmlDatatypes.ttl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix bind: <http://purl.org/semantictools/v1/vocab/bind#> .

<http://purl.imsglobal.org/xsd/lti/v2/ltid#> a owl:Ontology ;
bind:suggestedPrefix "lti-type" .

118 changes: 17 additions & 101 deletions examples/lti/src/main/resources/uml/LIS_Result.uml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ prefix=liso
<XPD:REF name="DiagramOwner">j0DcoymyMEug6VDYImm/3gAA</XPD:REF>
<XPD:OBJ name="DiagramView" type="UMLClassDiagramView" guid="67yPKw5ACU+tOgAXMEB5nAAA">
<XPD:REF name="Diagram">9A5BE2Na9UK77h4oIHPlhgAA</XPD:REF>
<XPD:ATTR name="#OwnedViews" type="integer">5</XPD:ATTR>
<XPD:ATTR name="#OwnedViews" type="integer">3</XPD:ATTR>
<XPD:OBJ name="OwnedViews[0]" type="UMLClassView" guid="EvaZfwtdL0mBfJHP0W3+oAAA">
<XPD:ATTR name="LineColor" type="string">clMaroon</XPD:ATTR>
<XPD:ATTR name="FillColor" type="string">$00B9FFFF</XPD:ATTR>
Expand Down Expand Up @@ -66,13 +66,13 @@ prefix=liso
<XPD:ATTR name="Left" type="integer">324</XPD:ATTR>
<XPD:ATTR name="Top" type="integer">104</XPD:ATTR>
<XPD:ATTR name="Width" type="integer">100</XPD:ATTR>
<XPD:ATTR name="Height" type="integer">46</XPD:ATTR>
<XPD:ATTR name="Height" type="integer">37</XPD:ATTR>
<XPD:ATTR name="ShowProperty" type="boolean">True</XPD:ATTR>
<XPD:REF name="Model">oLQRb4dU4Uq1d7HG9OkCNgAA</XPD:REF>
<XPD:OBJ name="NameCompartment" type="UMLNameCompartmentView" guid="7xVSyeI4kES1mkAzIRwImAAA">
<XPD:OBJ name="NameLabel" type="LabelView" guid="7cvTdMECokWCdxA++3k7xwAA">
<XPD:ATTR name="FontStyle" type="integer">3</XPD:ATTR>
<XPD:ATTR name="Text" type="string">Score</XPD:ATTR>
<XPD:ATTR name="Text" type="string">float</XPD:ATTR>
</XPD:OBJ>
<XPD:OBJ name="StereotypeLabel" type="LabelView" guid="zN4E4wG+WUqEWzkzmOxSrgAA">
<XPD:ATTR name="Text" type="string">&lt;&lt;embeddable&gt;&gt;</XPD:ATTR>
Expand All @@ -82,6 +82,7 @@ prefix=liso
</XPD:OBJ>
</XPD:OBJ>
<XPD:OBJ name="AttributeCompartment" type="UMLAttributeCompartmentView" guid="EXqQ3Zcf10aJC6T4/dkTcgAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
<XPD:REF name="Model">oLQRb4dU4Uq1d7HG9OkCNgAA</XPD:REF>
</XPD:OBJ>
<XPD:OBJ name="OperationCompartment" type="UMLOperationCompartmentView" guid="rV6NlaTSCUuSDnAgj4IgZwAA">
Expand All @@ -93,69 +94,7 @@ prefix=liso
<XPD:REF name="Model">oLQRb4dU4Uq1d7HG9OkCNgAA</XPD:REF>
</XPD:OBJ>
</XPD:OBJ>
<XPD:OBJ name="OwnedViews[2]" type="UMLClassView" guid="c/OQCav5D0iNehDjQMe0hAAA">
<XPD:ATTR name="LineColor" type="string">clMaroon</XPD:ATTR>
<XPD:ATTR name="FillColor" type="string">$00B9FFFF</XPD:ATTR>
<XPD:ATTR name="Left" type="integer">328</XPD:ATTR>
<XPD:ATTR name="Top" type="integer">204</XPD:ATTR>
<XPD:ATTR name="Width" type="integer">80</XPD:ATTR>
<XPD:ATTR name="Height" type="integer">30</XPD:ATTR>
<XPD:ATTR name="ShowProperty" type="boolean">True</XPD:ATTR>
<XPD:REF name="Model">SDZT2ApcfEexlY3qKukUfgAA</XPD:REF>
<XPD:OBJ name="NameCompartment" type="UMLNameCompartmentView" guid="fqm34eyhXES1/nfaQC0fzQAA">
<XPD:OBJ name="NameLabel" type="LabelView" guid="/ftxhuL8nEW8EtiWtIzuVAAA">
<XPD:ATTR name="FontStyle" type="integer">1</XPD:ATTR>
<XPD:ATTR name="Text" type="string">float</XPD:ATTR>
</XPD:OBJ>
<XPD:OBJ name="StereotypeLabel" type="LabelView" guid="rezpuXvUmU2jR4PDycUgHgAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
</XPD:OBJ>
<XPD:OBJ name="PropertyLabel" type="LabelView" guid="tg/UxziacEqQrwV9lixxlgAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
</XPD:OBJ>
</XPD:OBJ>
<XPD:OBJ name="AttributeCompartment" type="UMLAttributeCompartmentView" guid="AZbs3eDiU0CBQuseODAXdgAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
<XPD:REF name="Model">SDZT2ApcfEexlY3qKukUfgAA</XPD:REF>
</XPD:OBJ>
<XPD:OBJ name="OperationCompartment" type="UMLOperationCompartmentView" guid="Xh/oVLWuwkewDHWCfwoVnwAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
<XPD:REF name="Model">SDZT2ApcfEexlY3qKukUfgAA</XPD:REF>
</XPD:OBJ>
<XPD:OBJ name="TemplateParameterCompartment" type="UMLTemplateParameterCompartmentView" guid="S+sUGqRYs02dOGQGydkBEAAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
<XPD:REF name="Model">SDZT2ApcfEexlY3qKukUfgAA</XPD:REF>
</XPD:OBJ>
</XPD:OBJ>
<XPD:OBJ name="OwnedViews[3]" type="UMLGeneralizationView" guid="U5ysvUmuKkmvLpN6tzv0IAAA">
<XPD:ATTR name="LineColor" type="string">clMaroon</XPD:ATTR>
<XPD:ATTR name="FillColor" type="string">$00B9FFFF</XPD:ATTR>
<XPD:ATTR name="LineStyle" type="LineStyleKind">lsRectilinear</XPD:ATTR>
<XPD:ATTR name="Points" type="Points">362,204;362,149</XPD:ATTR>
<XPD:ATTR name="ShowProperty" type="boolean">True</XPD:ATTR>
<XPD:REF name="Model">RkB5K/GphEu/B3UHlOVEXwAA</XPD:REF>
<XPD:REF name="Head">vGfa3BTtwk25lkprN0WdrwAA</XPD:REF>
<XPD:REF name="Tail">c/OQCav5D0iNehDjQMe0hAAA</XPD:REF>
<XPD:OBJ name="NameLabel" type="EdgeLabelView" guid="Tctzomy7bU2ibY4LTTgr3QAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
<XPD:ATTR name="Alpha" type="real">1.5707963267949</XPD:ATTR>
<XPD:ATTR name="Distance" type="real">15</XPD:ATTR>
<XPD:REF name="Model">RkB5K/GphEu/B3UHlOVEXwAA</XPD:REF>
</XPD:OBJ>
<XPD:OBJ name="StereotypeLabel" type="EdgeLabelView" guid="sFOUYlU1B0+z8pIKP6cjFwAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
<XPD:ATTR name="Alpha" type="real">1.5707963267949</XPD:ATTR>
<XPD:ATTR name="Distance" type="real">30</XPD:ATTR>
<XPD:REF name="Model">RkB5K/GphEu/B3UHlOVEXwAA</XPD:REF>
</XPD:OBJ>
<XPD:OBJ name="PropertyLabel" type="EdgeLabelView" guid="KyKoZBK65k6XwlAmUO7RKwAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
<XPD:ATTR name="Alpha" type="real">-1.5707963267949</XPD:ATTR>
<XPD:ATTR name="Distance" type="real">15</XPD:ATTR>
<XPD:REF name="Model">RkB5K/GphEu/B3UHlOVEXwAA</XPD:REF>
</XPD:OBJ>
</XPD:OBJ>
<XPD:OBJ name="OwnedViews[4]" type="UMLAssociationView" guid="XxgddoJUlEaDZgsri/QlAQAA">
<XPD:OBJ name="OwnedViews[2]" type="UMLAssociationView" guid="XxgddoJUlEaDZgsri/QlAQAA">
<XPD:ATTR name="LineColor" type="string">clMaroon</XPD:ATTR>
<XPD:ATTR name="FillColor" type="string">$00B9FFFF</XPD:ATTR>
<XPD:ATTR name="LineStyle" type="LineStyleKind">lsRectilinear</XPD:ATTR>
Expand Down Expand Up @@ -243,7 +182,7 @@ prefix=liso
</XPD:OBJ>
</XPD:OBJ>
</XPD:OBJ>
<XPD:ATTR name="#OwnedElements" type="integer">4</XPD:ATTR>
<XPD:ATTR name="#OwnedElements" type="integer">2</XPD:ATTR>
<XPD:OBJ name="OwnedElements[0]" type="UMLClass" guid="sMSIv4toP0GYumGC3IE5gQAA">
<XPD:ATTR name="Name" type="string">Result</XPD:ATTR>
<XPD:ATTR name="Documentation" type="string">A container that holds the result of some scorable activity or assignment.</XPD:ATTR>
Expand All @@ -265,33 +204,7 @@ prefix=liso
<XPD:REF name="Owner">sMSIv4toP0GYumGC3IE5gQAA</XPD:REF>
</XPD:OBJ>
</XPD:OBJ>
<XPD:OBJ name="OwnedElements[1]" type="UMLClass" guid="oLQRb4dU4Uq1d7HG9OkCNgAA">
<XPD:ATTR name="Name" type="string">Score</XPD:ATTR>
<XPD:ATTR name="Documentation" type="string">The score that a learner has received for engaging in some activity or submitting an assignment.</XPD:ATTR>
<XPD:ATTR name="StereotypeName" type="string">embeddable</XPD:ATTR>
<XPD:ATTR name="IsAbstract" type="boolean">True</XPD:ATTR>
<XPD:REF name="Namespace">j0DcoymyMEug6VDYImm/3gAA</XPD:REF>
<XPD:ATTR name="#Views" type="integer">4</XPD:ATTR>
<XPD:REF name="Views[0]">vGfa3BTtwk25lkprN0WdrwAA</XPD:REF>
<XPD:REF name="Views[1]">EXqQ3Zcf10aJC6T4/dkTcgAA</XPD:REF>
<XPD:REF name="Views[2]">rV6NlaTSCUuSDnAgj4IgZwAA</XPD:REF>
<XPD:REF name="Views[3]">mz70EBVpzkGahl4OND4J9QAA</XPD:REF>
<XPD:ATTR name="#Specializations" type="integer">1</XPD:ATTR>
<XPD:REF name="Specializations[0]">RkB5K/GphEu/B3UHlOVEXwAA</XPD:REF>
<XPD:ATTR name="#Associations" type="integer">1</XPD:ATTR>
<XPD:REF name="Associations[0]">YI9ywDwegUOKdtw9BfVi8wAA</XPD:REF>
</XPD:OBJ>
<XPD:OBJ name="OwnedElements[2]" type="UMLGeneralization" guid="RkB5K/GphEu/B3UHlOVEXwAA">
<XPD:REF name="Namespace">j0DcoymyMEug6VDYImm/3gAA</XPD:REF>
<XPD:REF name="Child">SDZT2ApcfEexlY3qKukUfgAA</XPD:REF>
<XPD:REF name="Parent">oLQRb4dU4Uq1d7HG9OkCNgAA</XPD:REF>
<XPD:ATTR name="#Views" type="integer">4</XPD:ATTR>
<XPD:REF name="Views[0]">U5ysvUmuKkmvLpN6tzv0IAAA</XPD:REF>
<XPD:REF name="Views[1]">Tctzomy7bU2ibY4LTTgr3QAA</XPD:REF>
<XPD:REF name="Views[2]">sFOUYlU1B0+z8pIKP6cjFwAA</XPD:REF>
<XPD:REF name="Views[3]">KyKoZBK65k6XwlAmUO7RKwAA</XPD:REF>
</XPD:OBJ>
<XPD:OBJ name="OwnedElements[3]" type="UMLAssociation" guid="G6eXSX/Nak+hnnp8Z6C/CQAA">
<XPD:OBJ name="OwnedElements[1]" type="UMLAssociation" guid="G6eXSX/Nak+hnnp8Z6C/CQAA">
<XPD:REF name="Namespace">j0DcoymyMEug6VDYImm/3gAA</XPD:REF>
<XPD:ATTR name="#Views" type="integer">4</XPD:ATTR>
<XPD:REF name="Views[0]">XxgddoJUlEaDZgsri/QlAQAA</XPD:REF>
Expand Down Expand Up @@ -330,16 +243,19 @@ prefix=xsd
</XPD:ATTR>
<XPD:REF name="Namespace">MNCsPdJX30Ktqaa4Kusj8AAA</XPD:REF>
<XPD:ATTR name="#OwnedElements" type="integer">1</XPD:ATTR>
<XPD:OBJ name="OwnedElements[0]" type="UMLClass" guid="SDZT2ApcfEexlY3qKukUfgAA">
<XPD:OBJ name="OwnedElements[0]" type="UMLClass" guid="oLQRb4dU4Uq1d7HG9OkCNgAA">
<XPD:ATTR name="Name" type="string">float</XPD:ATTR>
<XPD:ATTR name="Documentation" type="string">The score that a learner has received for engaging in some activity or submitting an assignment.</XPD:ATTR>
<XPD:ATTR name="StereotypeName" type="string">embeddable</XPD:ATTR>
<XPD:ATTR name="IsAbstract" type="boolean">True</XPD:ATTR>
<XPD:REF name="Namespace">UeWvuBPreECUFDOEHsRluQAA</XPD:REF>
<XPD:ATTR name="#Views" type="integer">4</XPD:ATTR>
<XPD:REF name="Views[0]">c/OQCav5D0iNehDjQMe0hAAA</XPD:REF>
<XPD:REF name="Views[1]">AZbs3eDiU0CBQuseODAXdgAA</XPD:REF>
<XPD:REF name="Views[2]">Xh/oVLWuwkewDHWCfwoVnwAA</XPD:REF>
<XPD:REF name="Views[3]">S+sUGqRYs02dOGQGydkBEAAA</XPD:REF>
<XPD:ATTR name="#Generalizations" type="integer">1</XPD:ATTR>
<XPD:REF name="Generalizations[0]">RkB5K/GphEu/B3UHlOVEXwAA</XPD:REF>
<XPD:REF name="Views[0]">vGfa3BTtwk25lkprN0WdrwAA</XPD:REF>
<XPD:REF name="Views[1]">EXqQ3Zcf10aJC6T4/dkTcgAA</XPD:REF>
<XPD:REF name="Views[2]">rV6NlaTSCUuSDnAgj4IgZwAA</XPD:REF>
<XPD:REF name="Views[3]">mz70EBVpzkGahl4OND4J9QAA</XPD:REF>
<XPD:ATTR name="#Associations" type="integer">1</XPD:ATTR>
<XPD:REF name="Associations[0]">YI9ywDwegUOKdtw9BfVi8wAA</XPD:REF>
</XPD:OBJ>
</XPD:OBJ>
</XPD:OBJ>
Expand Down
Loading

0 comments on commit 48942de

Please sign in to comment.