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

Re: divergence in the definition of sh:minCount

From: Dimitris Kontokostas <kontokostas@informatik.uni-leipzig.de>
Date: Sat, 24 Sep 2016 17:12:05 +0300
Message-ID: <CA+u4+a1mvF2GWHYmdQe1Fgykm0Ja8Os=5jt+cSJc7BZjzpfdVg@mail.gmail.com>
To: "Peter F. Patel-Schneider" <pfpschneider@gmail.com>
Cc: "public-rdf-sha." <public-rdf-shapes@w3.org>
Hi Peter,

is this about the fact that property paths might return duplicate value
nodes or something else?
In this case, we count all nodes, even duplicates for cardinality
restrictions

Thanks,
Dimitris

On Fri, Sep 23, 2016 at 9:17 PM, Peter F. Patel-Schneider <
pfpschneider@gmail.com> wrote:

> The textual and SPARQL definitions of sh:minCount do not align when paths
> are allowed.
>
>
> A validation result must be produced if the number of value nodes is less
> than the value of sh:minCount.
>
> SELECT $this
> WHERE {OPTIONAL {$this $PATH ?value .}}
> GROUP BY $this
> HAVING (COUNT(?value) < $minCount)
>
>
>
> Peter F. Patel-Schneider
> Nuance Communications
>
>


-- 
Dimitris Kontokostas
Department of Computer Science, University of Leipzig & DBpedia Association
Projects: http://dbpedia.org, http://rdfunit.aksw.org,
http://aligned-project.eu
Homepage: http://aksw.org/DimitrisKontokostas
Research Group: AKSW/KILT http://aksw.org/Groups/KILT
Received on Saturday, 24 September 2016 14:13:02 UTC

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