W3C home > Mailing lists > Public > public-rdf-shapes@w3.org > October 2016

on literal parameters (editors' draft of 12 October)

From: Peter F. Patel-Schneider <pfpschneider@gmail.com>
Date: Wed, 12 Oct 2016 06:50:26 -0700
To: "public-rdf-shapes@w3.org" <public-rdf-shapes@w3.org>
Message-ID: <fd3a4fab-9dbe-874a-5f71-bb554b1d3f82@gmail.com>
The value type, i.e., expected type, of sh:minCount is xsd:integer.  The
definition of expected type is:

"Expected Type
In a shapes graph, the values of a property or a property path can have an
expected type. These nodes are treated as instances of specific classes,
even when these nodes are not SHACL instances of these classes. For example,
the objects of triples with sh:shape as predicate have sh:Shape as expected
type and there does not need to be a triple with the object node as the
subject, rdf:type as predicate and sh:Shape as object in the shapes graph."

This means any node can be the object of sh:minCount in a constraint so that

s:s1 rdf:type sh:Shape ;
 sh:property [ sh:predicate ex:child ;
               sh:minCount ex:John ] .

is a valid shape.

All constraint parameters with a value type that is a datatype have similar

This is yet another case of sloppy definitions.

Peter F. Patel-Schneider
Nuance Communications
Received on Wednesday, 12 October 2016 13:50:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:02:45 UTC