This session is about expressing syntactic constraints on RDF graph using the Shapes Constraint Language SHACL.
TopQuadrant, a software company specialised in Semantic Web data management, provides a shape schema that expresses some of the constraints described informally in Schema.org specifications.
Answer the following questions in the email you send at the end of the session to Antoine Zimmermann and Victor Charpenay.
schema:Order
class is defined. What is the datatype for the value of the rdfs:comment
for schema:Order
?sh:property
. Consider schema:Order-orderDate
. Find its definition in the file. What is the type of this entity?schema:Order-orderDate
as an sh:or
constraint. Assuming ex:order
is an instance of schema:Order
, to which kind of entities does this constraint apply?. What is the constraint about? Guess what the constraint is telling by providing a correct example and an incorrect example. Write your answer in the email to us.ex:order
using schema.org, assming it has been placed today on LDLC for a Seagate BarraCuda hard disk drive at the price indicated in the offer. Include a description of the product and the offer as well (hint: the product and the offer are already described in JSON-LD in the web page). Refer to the documentation for schema:Order
to describe the order. Then validate your entire graph against the SHACL schema. Copy the input RDF graph and the validation report to your email to us (both graphs should be in Turtle).We will add constraints to orders such that every order must be associated with a date.
schema:orderDate
has exactly 1 date. This can be done using sh:minCount
and sh:maxCount
.sh:or
to provide alternative constraint for orders that model this case.ldlc-[some number]
.