W3C home > Mailing lists > Public > public-data-shapes-wg@w3.org > April 2015

shapes-ISSUE-40 (Property Cardinality): sh:min/max constrains properties, not values

From: RDF Data Shapes Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Sun, 05 Apr 2015 16:08:05 +0000
To: public-data-shapes-wg@w3.org
Message-Id: <E1Yen5h-0007uM-2y@maia.w3.org>
shapes-ISSUE-40 (Property Cardinality): sh:min/max constrains properties, not values

http://www.w3.org/2014/data-shapes/track/issues/40

Raised by: Karen Coyle
On product: 

The spec at https://w3c.github.io/data-shapes/shacl/ currently reads:

"The properties sh:minCount and sh:maxCount restrict the number of values of the given property at the focus node."

It should read:
"The properties sh:minCount and sh:maxCount restrict the cardinality of properties of the focus node."

The cardinality of the value of a triple is always min=1 max=1. It is the cardinality of the properties in the node that can be constrained, e.g. 

sh:property [
		sh:predicate foaf:name ;
		sh:minCount 1 ;
		sh:maxCount 1 .
Received on Sunday, 5 April 2015 16:08:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:30:21 UTC