Skip to content

Commit

Permalink
Removed Membership
Browse files Browse the repository at this point in the history
Added ServiceOwner class.

Added service_owner property to ProductInstance.

Moved "support" property from ProductInstance to ServiceOwner.

Removed "guid" property from ServiceProvider.

Changed status code for successful POST methods from 200 OK to 201
Created.
  • Loading branch information
Greg McFall committed Sep 5, 2013
1 parent f11eb49 commit fec119d
Show file tree
Hide file tree
Showing 12 changed files with 321 additions and 276 deletions.
2 changes: 1 addition & 1 deletion examples/lti/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<plugin>
<groupId>org.semantictools</groupId>
<artifactId>semantictools-maven-plugin</artifactId>
<version>1.17</version>
<version>1.22</version>
<configuration>
<version>2013-04-29</version>
<publish>false</publish>
Expand Down
22 changes: 0 additions & 22 deletions examples/lti/src/main/resources/rdf/Membership/context.properties

This file was deleted.

13 changes: 0 additions & 13 deletions examples/lti/src/main/resources/rdf/Membership/sample.json

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,19 @@
}
}
},
"support" : {
"email" : "[email protected]"
"service_owner" : {
"@id" : "http://state.university.edu/",
"timestamp" : "2012-03-28T09:08:16-04:00",
"owner_name" : {
"default_value" : "State University",
"key" : "service_owner.name"
},
"description" : {
"default_value" : "A fictitious university."
},
"support" : {
"email" : "[email protected]"
}
},
"service_provider" : {
"@id" : "http://yasp.example.com/ServiceProvider",
Expand All @@ -68,13 +79,13 @@
"capability_offered" : [
"basic-lti-launch-request",
"Result.autocreate",
"Result.sourcedGUID"
"Result.sourcedId"
],
"service_offered" : [
{
"@type" : "RestService",
"@id" : "tcp:ToolProxy.collection",
"endpoint" : "http://lms.example.com/resources/ToolProxy",
"endpoint" : "http://lms.example.com/resources/ToolProxy/",
"format" : ["application/vnd.ims.lti.v2.ToolProxy+json"],
"action" : ["POST"]
},
Expand Down
49 changes: 0 additions & 49 deletions examples/lti/src/main/resources/rdf/liscore.ttl

This file was deleted.

23 changes: 0 additions & 23 deletions examples/lti/src/main/resources/rdf/liscore_binding.ttl

This file was deleted.

60 changes: 41 additions & 19 deletions examples/lti/src/main/resources/rdf/lti.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ 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 @@ -448,12 +443,30 @@ 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."
] ;
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."
] ,
[ a owl:Restriction ;
owl:onProperty lti:support;
rdfs:comment "Contact information for support on this deployed instance of the product (Tool or ToolConsumer)."
] ;
rdfs:comment "The resource encapsulates information about one deployed instance of a web-based product (Tool or Tool Consumer)." .
rdfs:comment "The entity that owns the services provided by this product instance." .

lti:ToolProxy rdf:type owl:Class ;
rdfs:subClassOf lti:ToolSettingsContainer ,
Expand Down Expand Up @@ -573,24 +586,13 @@ 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 ;
owl:unionOf (
lti:ServiceProvider
lti:Vendor
lti:ServiceOwner
)
] ;
rdfs:range xsd:dateTime ;
Expand All @@ -609,6 +611,7 @@ lti:description rdf:type owl:FunctionalProperty ;
lti:ProductInfo
lti:ResourceHandler
lti:Vendor
lti:ServiceOwner
)
] ;
rdfs:range lti:LocalizedText ;
Expand All @@ -619,7 +622,7 @@ lti:support rdf:type owl:FunctionalProperty ;
rdf:type owl:Class ;
owl:unionOf (
lti:ServiceProvider
lti:ProductInstance
lti:ServiceOwner
)
] ;
rdfs:range lti:Contact ;
Expand Down Expand Up @@ -755,6 +758,16 @@ 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 Down Expand Up @@ -916,6 +929,15 @@ lti:profile rdf:type rdf:Property ;
owl:inverseOf lti:product_instance ;
rdfs:comment "A resource that presents a view of this ProductInstance to one or more integration partners." .

lti:service_owner rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ProductInstance ;
rdfs:range lti:ServiceOwner .

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

lti:tool_proxy_guid rdf:type owl:FunctionalProperty ;
rdfs:domain lti:ToolProxy ;
rdfs:range lti-type:GUID.Type ;
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 @@ -172,6 +172,11 @@ 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
Expand Down
2 changes: 2 additions & 0 deletions examples/lti/src/main/resources/rdf/ltiv.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -507,3 +507,5 @@ 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 .

3 changes: 3 additions & 0 deletions examples/lti/src/main/resources/rdf/xmlDatatypes.ttl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@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" .

Loading

0 comments on commit fec119d

Please sign in to comment.