ISSUE-168: How to constrain number of instances of a class in a graph

instance count

How to constrain number of instances of a class in a graph

State:
CLOSED
Product:
SHACL - Core
Raised by:
Holger Knublauch
Opened on:
2016-06-13
Description:
There was recent discussion about how to specify min/max numbers of instances in a graph. Off-list I had also received a question from schema.org people about how to state that a graph/message must have exactly one instance of schema:FlightReservation, possibly to ensure that a graph has a starting point/root for validation.

A possible syntax that would easily work with the current architecture could be

ex:MyShape
a sh:Shape ;
sh:scopeNode schema:FlightReservation ;
sh:constraint [
sh:minInstanceCount 1 ;
sh:maxInstanceCount 1 ;
] .
Related Actions Items:
No related actions
Related emails:
  1. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-23)
  2. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from holger@topquadrant.com on 2016-06-23)
  3. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from holger@topquadrant.com on 2016-06-23)
  4. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from pfpschneider@gmail.com on 2016-06-22)
  5. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from lehors@us.ibm.com on 2016-06-22)
  6. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from irene@topquadrant.com on 2016-06-22)
  7. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-22)
  8. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from irene@topquadrant.com on 2016-06-22)
  9. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-22)
  10. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from holger@topquadrant.com on 2016-06-22)
  11. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-21)
  12. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-18)
  13. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from holger@topquadrant.com on 2016-06-18)
  14. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from irene@topquadrant.com on 2016-06-17)
  15. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from irene@topquadrant.com on 2016-06-17)
  16. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-17)
  17. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from irene@topquadrant.com on 2016-06-17)
  18. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-17)
  19. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from holger@topquadrant.com on 2016-06-17)
  20. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kontokostas@informatik.uni-leipzig.de on 2016-06-14)
  21. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from holger@topquadrant.com on 2016-06-14)
  22. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from holger@topquadrant.com on 2016-06-14)
  23. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kontokostas@informatik.uni-leipzig.de on 2016-06-13)
  24. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from irene@topquadrant.com on 2016-06-13)
  25. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-13)
  26. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from kcoyle@kcoyle.net on 2016-06-13)
  27. Re: shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from irene@topquadrant.com on 2016-06-13)
  28. shapes-ISSUE-168 (instance count): How to constrain number of instances of a class in a graph [SHACL - Core] (from sysbot+tracker@w3.org on 2016-06-13)

Related notes:

RESOLUTION: Close ISSUE-168, without adding min/maxInstanceCount as not motivated enough
See https://www.w3.org/2016/06/23-shapes-minutes.html#item04

Arnaud Le Hors, 29 Jun 2016, 16:06:17

Display change log ATOM feed


Chair, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 168.html,v 1.1 2018/11/26 09:03:31 carine Exp $