Skip to content

Commit

Permalink
Updates to LTI example
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg McFall committed Oct 2, 2013
1 parent fec119d commit 4ce5f6d
Show file tree
Hide file tree
Showing 8 changed files with 1,758 additions and 365 deletions.
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
Expand Up @@ -31,7 +31,7 @@
"code" : "assessment-tool",
"vendor" : {
"code" : "acme.com",
"name" : {
"vendor_name" : {
"default_value" : "Acme",
"key" : "tool.vendor.name"
},
Expand Down Expand Up @@ -77,7 +77,7 @@
"resource_handler" : [
{
"resource_type" : { "code" : "asmt"},
"name" : {
"resource_name" : {
"default_value" : "Acme Assessment",
"key" : "assessment.resource.name"
},
Expand Down
11 changes: 10 additions & 1 deletion examples/lti/src/main/resources/rdf/liso.ttl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@prefix liso: <http://purl.imsglobal.org/vocab/lis/v2/outcomes#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bind: <http://purl.org/semantictools/v1/vocab/bind#> .

<http://purl.imsglobal.org/vocab/lis/v2/outcomes#> a owl:Ontology ;
Expand All @@ -12,6 +12,10 @@

liso:Result rdf:type owl:Class;
rdfs:subClassOf
[ a owl:Restriction ;
owl:onProperty liso:comment;
rdfs:comment "A comment about this Result suitable for display to the learner. Typically, this is a comment made by the instructor or grader."
] ,
[ a owl:Restriction ;
owl:onProperty liso:resultScore;
rdfs:comment "The score that the Learner received for engaging in some activity or submitting an assignment."
Expand All @@ -21,6 +25,11 @@ liso:Result rdf:type owl:Class;
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 ;
Expand Down
114 changes: 51 additions & 63 deletions examples/lti/src/main/resources/rdf/lti.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ In the case of a MessageHandler, the path may be an absolute path if the associa

lti:ServiceProvider rdf:type owl:Class;
rdfs:subClassOf
[ a owl:Restriction ;
owl:onProperty lti:guid;
owl:minCardinality 1;
rdfs:comment "A globally unique identifier for the service provider. As a best practice, this value should match an Internet domain name assigned by ICANN, but any globally unique identifier is acceptable. "
] ,
[ a owl:Restriction ;
owl:onProperty lti:timestamp;
owl:minCardinality 1;
Expand Down Expand Up @@ -243,8 +248,7 @@ lti:ToolProfile rdf:type owl:Class ;
lti:ResourceHandler rdf:type owl:Class;
rdfs:subClassOf
[ a owl:Restriction ;
owl:onProperty lti:name;
owl:allValuesFrom lti:LocalizedName;
owl:onProperty lti:resource_name;
owl:minCardinality 1;
rdfs:comment "The name of the resource handler suitable for display in the TC user interface."
] ,
Expand All @@ -268,7 +272,6 @@ lti:Parameter rdf:type owl:Class;
rdfs:subClassOf
[ a owl:Restriction ;
owl:onProperty lti:name;
owl:allValuesFrom xsd:Name;
owl:minCardinality 1;
rdfs:comment "The name of the parameter."
] ,
Expand Down Expand Up @@ -303,8 +306,7 @@ lti:Vendor rdf:type owl:Class ;
rdfs:comment "A timestamp for the Vendor record. This value is useful for determining which record is most current."
] ,
[ a owl:Restriction ;
owl:onProperty lti:name;
owl:allValuesFrom lti:LocalizedName;
owl:onProperty lti:vendor_name;
owl:minCardinality 1;
rdfs:comment "Defines a human readable name for the Vendor. The name should be suitable for display in management screens within the Tool Provider system."
] ,
Expand Down Expand Up @@ -443,30 +445,27 @@ lti:ProductInstance rdf:type owl:Class;
[ a owl:Restriction ;
owl:onProperty lti:profile;
rdfs:comment "A resource that presents a view of this ProductInstance to one or more integration partners."
] ,
[ a owl:Restriction ;
owl:onProperty lti:support;
rdfs:comment "Contact information for support on this deployed instance of the product (Tool or ToolConsumer)."
] ,
[ a owl:Restriction ;
owl:onProperty lti:service_owner;
rdfs:comment "The entity that owns the services provided by this product instance."
] ;
rdfs:comment "The resource encapsulates information about one deployed instance of a web-based product (Tool or Tool Consumer)." .

lti:ServiceOwner rdf:type owl:Class;
rdfs:subClassOf
[ a owl:Restriction ;
owl:onProperty lti:timestamp;
owl:minCardinality 1;
rdfs:comment "The date and time when this record was last modified."
] ,
[ a owl:Restriction ;
owl:onProperty lti:owner_name;
owl:minCardinality 1;
rdfs:comment "The name of the service owner, suitable for display in a user interface."
] ,
[ a owl:Restriction ;
owl:onProperty lti:description;
rdfs:comment "A description of the service owner."
owl:minCardinality 1
] ,
[ a owl:Restriction ;
owl:onProperty lti:support;
rdfs:comment "Contact information for support on this deployed instance of the product (Tool or ToolConsumer)."
owl:onProperty lti:service_owner_name
] ;
rdfs:comment "The entity that owns the services provided by this product instance." .
rdfs:comment "The entity that owns the services provided by a product instance." .

lti:ToolProxy rdf:type owl:Class ;
rdfs:subClassOf lti:ToolSettingsContainer ,
Expand Down Expand Up @@ -500,11 +499,6 @@ lti:ToolProxy rdf:type owl:Class ;

lti:ToolProxyBinding rdf:type owl:Class ;
rdfs:subClassOf lti:ToolSettingsContainer ,
[ a owl:Restriction ;
owl:onProperty lti:tool_proxy;
owl:minCardinality 1;
rdfs:comment "The ToolProxy associated with this ToolProxyBinding."
] ,
[ a owl:Restriction ;
owl:onProperty lti:context;
owl:minCardinality 1;
Expand Down Expand Up @@ -537,7 +531,7 @@ lti:ToolSettingsContainer rdf:type owl:Class;
] ,
[ a owl:Restriction ;
owl:onProperty lti:custom;
rdfs:comment "A collection of custom properties defined by the Tool Provider and stored in this ToolSettingsContainer. "
rdfs:comment "A collection of custom properties defined by the Tool Provider and stored in this ToolSettingsContainer."
] ;
rdfs:comment "<code>ToolSettingsContainer</code> is the base class for all resources that encapsulate tool settings." .

Expand Down Expand Up @@ -586,6 +580,18 @@ lti:path rdf:type owl:FunctionalProperty ;
rdfs:comment """This attribute specifies the path for an endpoint such as a MessageHandler or an Icon. Typically, this path is relative to one of the base URL values defined in a BaseUrlChoice.
In the case of a MessageHandler, the path may be an absolute path if the associated message type explicitly declares that an absolute path is allowed. """ .

lti:guid rdf:type owl:FunctionalProperty ;
rdfs:domain [
rdf:type owl:Class ;
owl:unionOf (
lti:ServiceProvider
lti:ToolConsumerProfile
lti:ProductInstance
)
] ;
rdfs:range lti-type:GUID.Type ;
rdfs:comment "A globally unique identifier for the service provider. As a best practice, this value should match an Internet domain name assigned by ICANN, but any globally unique identifier is acceptable. " .

lti:timestamp rdf:type owl:FunctionalProperty ;
rdfs:domain [
rdf:type owl:Class ;
Expand Down Expand Up @@ -622,7 +628,7 @@ lti:support rdf:type owl:FunctionalProperty ;
rdf:type owl:Class ;
owl:unionOf (
lti:ServiceProvider
lti:ServiceOwner
lti:ProductInstance
)
] ;
rdfs:range lti:Contact ;
Expand Down Expand Up @@ -693,7 +699,7 @@ lti:parameter rdf:type rdf:Property ;

lti:product_name rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ProductInfo ;
rdfs:range lti:ShortLocalizedName ;
rdfs:range lti:LocalizedName ;
rdfs:comment "A name for the product, suitable for display to end users." .

lti:product_version rdf:type owl:FunctionalProperty ;
Expand Down Expand Up @@ -758,16 +764,6 @@ lti:product_instance rdf:type owl:FunctionalProperty ;
owl:inverseOf lti:profile ;
rdfs:comment "An inverse attribute which references the ProductInstance within which this ProductProfile is defined." .

lti:guid rdf:type owl:FunctionalProperty ;
rdfs:domain [
rdf:type owl:Class ;
owl:unionOf (
lti:ToolConsumerProfile
lti:ProductInstance
)
] ;
rdfs:range lti-type:GUID.Type .

lti:capability_offered rdf:type rdf:Property ;
rdfs:domain lti:ToolConsumerProfile ;
rdfs:range lti:Capability ;
Expand All @@ -791,22 +787,9 @@ lti:base_url_choice rdf:type rdf:Property ;
rdfs:domain lti:ToolProfile ;
rdfs:range lti:BaseUrlChoice .

lti:name rdf:type owl:FunctionalProperty ;
rdfs:domain [
rdf:type owl:Class ;
owl:unionOf (
lti:ResourceHandler
lti:Parameter
lti:Vendor
)
] ;
rdfs:range [
rdf:type owl:Class ;
owl:unionOf (
lti:LocalizedName
xsd:Name
)
] ;
lti:resource_name rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ResourceHandler ;
rdfs:range lti:LocalizedName ;
rdfs:comment "The name of the resource handler suitable for display in the TC user interface." .

lti:resource_type rdf:type owl:FunctionalProperty ;
Expand All @@ -819,6 +802,11 @@ lti:icon_info rdf:type rdf:Property ;
rdfs:range lti:IconInfo ;
rdfs:comment "Provides information about a graphical icon that represents the resource described by this ResourceHandler." .

lti:name rdf:type owl:FunctionalProperty ;
rdfs:domain lti:Parameter ;
rdfs:range xsd:Name ;
rdfs:comment "The name of the parameter." .

lti:fixed rdf:type owl:FunctionalProperty ;
rdfs:domain lti:Parameter ;
rdfs:range lti-type:DataValue.Type ;
Expand All @@ -829,6 +817,11 @@ lti:variable rdf:type owl:FunctionalProperty ;
rdfs:range lti-type:VariableName.Type ;
rdfs:comment "Denotes that the parameter has a variable value that is automatically substituted at run-time. The value of this attribute is the name for a variable whose value will be added to the message at run-time. " .

lti:vendor_name rdf:type owl:FunctionalProperty ;
rdfs:domain lti:Vendor ;
rdfs:range lti:LocalizedName ;
rdfs:comment "Defines a human readable name for the Vendor. The name should be suitable for display in management screens within the Tool Provider system." .

lti:website rdf:type owl:FunctionalProperty ;
rdfs:domain lti:Vendor ;
rdfs:range xsd:anyURI ;
Expand Down Expand Up @@ -931,12 +924,12 @@ lti:profile rdf:type rdf:Property ;

lti:service_owner rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ProductInstance ;
rdfs:range lti:ServiceOwner .
rdfs:range lti:ServiceOwner ;
rdfs:comment "The entity that owns the services provided by this product instance." .

lti:owner_name rdf:type owl:FunctionalProperty ;
lti:service_owner_name rdf:type rdf:Property ;
rdfs:domain lti:ServiceOwner ;
rdfs:range lti:LocalizedName ;
rdfs:comment "The name of the service owner, suitable for display in a user interface." .
rdfs:range lti:LocalizedName .

lti:tool_proxy_guid rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ToolProxy ;
Expand All @@ -958,11 +951,6 @@ lti:tool_consumer_profile rdf:type owl:FunctionalProperty ;
rdfs:range lti:ToolConsumerProfile ;
rdfs:comment "The profile of the Tool Consumer that is participating in the integration governed by this ToolProxy." .

lti:tool_proxy rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ToolProxyBinding ;
rdfs:range lti:ToolProxy ;
rdfs:comment "The ToolProxy associated with this ToolProxyBinding." .

lti:context rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ToolProxyBinding ;
rdfs:range lti:Context ;
Expand All @@ -989,5 +977,5 @@ lti:custom_uri rdf:type owl:FunctionalProperty ;
lti:custom rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ToolSettingsContainer ;
rdfs:range lti:PropertyMap ;
rdfs:comment "A collection of custom properties defined by the Tool Provider and stored in this ToolSettingsContainer. " .
rdfs:comment "A collection of custom properties defined by the Tool Provider and stored in this ToolSettingsContainer." .

13 changes: 4 additions & 9 deletions examples/lti/src/main/resources/rdf/lti_binding.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,13 @@ lti:ProductInstance rdfs:subClassOf
bind:onProperty lti:profile ;
bind:associationType bind:Composition
],
[ rdf:type bind:AssociationQualifier ;
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
],
[ rdf:type bind:AssociationQualifier ;
bind:onProperty lti:service_owner ;
bind:associationType bind:Aggregation
] .
lti:ToolProxy rdf:type bind:Addressable .
lti:ToolProxy rdfs:subClassOf
Expand All @@ -201,10 +200,6 @@ lti:ToolProxy rdfs:subClassOf
] .
lti:ToolProxyBinding rdf:type bind:Addressable .
lti:ToolProxyBinding rdfs:subClassOf
[ rdf:type bind:AssociationQualifier ;
bind:onProperty lti:tool_proxy ;
bind:associationType bind:Aggregation
],
[ rdf:type bind:AssociationQualifier ;
bind:onProperty lti:context ;
bind:associationType bind:Aggregation
Expand Down
13 changes: 12 additions & 1 deletion examples/lti/src/main/resources/rdf/ltiv.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,16 @@ ltiv:Result.createdTimestamp rdf:type ltiv:Variable ;
<pre>
</pre></p>""" .

ltiv:Result.status rdf:type ltiv:Variable ;
rdfs:comment """A URI for the status of the Result. As a best practice, the URI <em>should</em> resolve to a JSON-LD description of the status value or a term in a VDEX file. The vocabulary for Result status values is extensible. The set of standard values includes:
<UL>
<LI> http://www.imsglobal.org/lis/omsv1p0/statusofresultvocabularyv1p0#Unmoderated
<LI> http://www.imsglobal.org/lis/omsv1p0/statusofresultvocabularyv1p0#Tobemoderated
<LI> http://www.imsglobal.org/lis/omsv1p0/statusofresultvocabularyv1p0#Pending
<LI> http://www.imsglobal.org/lis/omsv1p0/statusofresultvocabularyv1p0#Completed
</UL>
""" .

ltiv:Result.resultScore rdf:type ltiv:Variable ;
rdfs:comment """The score that the learner earned on the assignment or activity to which this Result pertains.
<p>In the LIS Database, this value corresponds to
Expand All @@ -507,5 +517,6 @@ ltiv:Result.dataSource rdf:type ltiv:Variable ;
ltiv:Result.uri rdf:type ltiv:Variable ;
rdfs:comment "The URI of the Result resource. Client applications may issue an HTTP request to read, update or delete the resource at this URI." .

ltiv:User.username rdf:type ltiv:Variable .
ltiv:User.username rdf:type ltiv:Variable ;
rdfs:comment "The username that identifies the user within the Tool Consumer system." .

18 changes: 13 additions & 5 deletions examples/lti/src/main/resources/uml/LIS_Result.uml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ prefix=liso
<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>
<XPD:ATTR name="Left" type="integer">108</XPD:ATTR>
<XPD:ATTR name="Top" type="integer">96</XPD:ATTR>
<XPD:ATTR name="Width" type="integer">100</XPD:ATTR>
<XPD:ATTR name="Height" type="integer">56</XPD:ATTR>
<XPD:ATTR name="Left" type="integer">72</XPD:ATTR>
<XPD:ATTR name="Top" type="integer">88</XPD:ATTR>
<XPD:ATTR name="Width" type="integer">123</XPD:ATTR>
<XPD:ATTR name="Height" type="integer">59</XPD:ATTR>
<XPD:ATTR name="ShowProperty" type="boolean">True</XPD:ATTR>
<XPD:REF name="Model">sMSIv4toP0GYumGC3IE5gQAA</XPD:REF>
<XPD:OBJ name="NameCompartment" type="UMLNameCompartmentView" guid="WjjeXTJ/30G9HzZ4FQncqgAA">
Expand Down Expand Up @@ -159,7 +159,7 @@ prefix=liso
<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">324,125;207,125</XPD:ATTR>
<XPD:ATTR name="Points" type="Points">324,125;194,125</XPD:ATTR>
<XPD:ATTR name="ShowProperty" type="boolean">True</XPD:ATTR>
<XPD:REF name="Model">G6eXSX/Nak+hnnp8Z6C/CQAA</XPD:REF>
<XPD:REF name="Head">EvaZfwtdL0mBfJHP0W3+oAAA</XPD:REF>
Expand Down Expand Up @@ -256,6 +256,14 @@ prefix=liso
<XPD:REF name="Views[3]">Sm9hXAfyukOySjCJt9t7dQAA</XPD:REF>
<XPD:ATTR name="#Associations" type="integer">1</XPD:ATTR>
<XPD:REF name="Associations[0]">pTgeGEpWmkGrD9l9YJopXQAA</XPD:REF>
<XPD:ATTR name="#Attributes" type="integer">1</XPD:ATTR>
<XPD:OBJ name="Attributes[0]" type="UMLAttribute" guid="9nKDn5joEk6R0I3rlLYSNgAA">
<XPD:ATTR name="Name" type="string">comment</XPD:ATTR>
<XPD:ATTR name="Documentation" type="string">A comment about this Result suitable for display to the learner. Typically, this is a comment made by the instructor or grader.</XPD:ATTR>
<XPD:ATTR name="Multiplicity" type="string">0..1</XPD:ATTR>
<XPD:ATTR name="TypeExpression" type="string">string</XPD:ATTR>
<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>
Expand Down
Loading

0 comments on commit 4ce5f6d

Please sign in to comment.