- From: Holger Knublauch <holger@topquadrant.com>
- Date: Sun, 10 Apr 2016 12:19:32 +1000
- To: public-data-shapes-wg@w3.org
Thanks for pointing this out. This was a glitch when I copied code from my node validation function. Fixed to SELECT $this ($this AS ?subject) $predicate (?value AS ?object) WHERE { $this $predicate ?value . BIND (?value > $minExclusive AS ?result) . FILTER (!?result || !bound(?result)) . } http://w3c.github.io/data-shapes/shacl/#range-property-constraints https://github.com/w3c/data-shapes/commit/b5f5b6ddd578be4e02a5fac72b454139de7645e1 Holger On 9/04/2016 4:28, RDF Data Shapes Working Group Issue Tracker wrote: > shapes-ISSUE-145 (minExclusive code incorrect): the SPARQL code for sh:minExclusive is incorrect [SHACL - Core] > > http://www.w3.org/2014/data-shapes/track/issues/145 > > Raised by: Peter Patel-Schneider > On product: SHACL - Core > > The SPARQL code for sh:minExclusive in a predicate constraint is: > > SELECT $this ($this AS ?subject) $predicate (?value AS ?object) > WHERE { > $this $predicate ?value . > FILTER (!($value > $minExclusive)) . > } > > This filters out all values that are not greater than the boundary, but also incorrectly filters out all values for which the comparison produces an error. > > >
Received on Sunday, 10 April 2016 02:20:05 UTC