ISSUE-47: Can SPARQL-based constraints access the shape graph, and how?

sparqling-shape-graph

Can SPARQL-based constraints access the shape graph, and how?

State:
CLOSED
Product:
SHACL - SPARQL
Raised by:
Richard Cyganiak
Opened on:
2015-04-23
Description:
SHACL constraints are themselves encoded as RDF graphs.

The WG will likely define a SPARQL-based extension mechanism.

When writing constraints using this SPARQL-based extension mechanism, one may want access to certain information from the SHACL constraint graph. Possible mechanisms for such access include:

1. The SHACL processor substitutes magic variables in the SPARQL query with values from the shape graph (a form of template instantiation)
2. SHACL defines additional SPARQL functions that allow access to the SHACL graph and can be used in the query in BIND/FILTER expressions
3a. The RDF dataset under validation is overlaid with an additional named graph that contains the SHACL graph, and can be used in the query with the GRAPH keyword
3b. Like 3a, but instead of a hardcoded graph name in the dataset, we have a magic variable that contains the name of the SHACL graph
4. Provide no access and require that the query be self-contained (except for passing in the focus node via ?this)

Multiple mechanisms could be supported.

This is a narrower phrasing of the now closed ISSUE-30.
Related Actions Items:
No related actions
Related emails:
  1. Re: shapes-ISSUE-130 (rdf dataset assumption): SHACL should not assume that the data graph is in an RDF dataset [SHACL Spec] (from kontokostas@informatik.uni-leipzig.de on 2016-03-21)
  2. Re: shapes-ISSUE-130 (rdf dataset assumption): SHACL should not assume that the data graph is in an RDF dataset [SHACL Spec] (from pfpschneider@gmail.com on 2016-03-21)
  3. Re: shapes-ISSUE-130 (rdf dataset assumption): SHACL should not assume that the data graph is in an RDF dataset [SHACL Spec] (from kontokostas@informatik.uni-leipzig.de on 2016-03-21)
  4. Re: shapes-ISSUE-130 (rdf dataset assumption): SHACL should not assume that the data graph is in an RDF dataset [SHACL Spec] (from pfpschneider@gmail.com on 2016-03-21)
  5. ISSUE-47: New proposal (from holger@topquadrant.com on 2016-02-12)
  6. Re: Proposal to close ISSUE-29 as a duplicate (from holger@topquadrant.com on 2015-07-29)
  7. Re: Proposal to close ISSUE-29 as a duplicate (from pfpschneider@gmail.com on 2015-07-28)
  8. Re: Proposal to close ISSUE-29 as a duplicate (from pfpschneider@gmail.com on 2015-07-28)
  9. Proposal to close ISSUE-29 as a duplicate (from holger@topquadrant.com on 2015-07-28)
  10. Re: ISSUE-47 Wiki Page Created (from holger@topquadrant.com on 2015-07-17)
  11. Re: ISSUE-47 Wiki Page Created (from simon.steyskal@wu.ac.at on 2015-07-17)
  12. ISSUE-47 Wiki Page Created (from holger@topquadrant.com on 2015-07-17)
  13. Re: RDF Data Shapes WG agenda for 25 June 2015 (from kontokostas@informatik.uni-leipzig.de on 2015-06-25)
  14. Re: RDF Data Shapes WG agenda for 25 June 2015 (from pfpschneider@gmail.com on 2015-06-24)
  15. Re: RDF Data Shapes WG agenda for 25 June 2015 (from lehors@us.ibm.com on 2015-06-24)
  16. Re: RDF Data Shapes WG agenda for 25 June 2015 (from pfpschneider@gmail.com on 2015-06-24)
  17. Re: proposal for ISSUE-47 - no required access to the shape graph (from kontokostas@informatik.uni-leipzig.de on 2015-06-19)
  18. Re: proposal for ISSUE-47 - no required access to the shape graph (from holger@topquadrant.com on 2015-06-19)
  19. proposal for ISSUE-47 - no required access to the shape graph (from pfpschneider@gmail.com on 2015-06-18)
  20. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from jimkont@gmail.com on 2015-06-15)
  21. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from holger@topquadrant.com on 2015-06-15)
  22. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from jimkont@gmail.com on 2015-06-15)
  23. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from holger@topquadrant.com on 2015-06-15)
  24. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from kontokostas@informatik.uni-leipzig.de on 2015-06-14)
  25. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from holger@topquadrant.com on 2015-06-14)
  26. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from kontokostas@informatik.uni-leipzig.de on 2015-06-12)
  27. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from holger@topquadrant.com on 2015-06-12)
  28. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from kontokostas@informatik.uni-leipzig.de on 2015-06-12)
  29. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from kontokostas@informatik.uni-leipzig.de on 2015-06-12)
  30. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from holger@topquadrant.com on 2015-06-12)
  31. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from holger@topquadrant.com on 2015-06-12)
  32. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from kontokostas@informatik.uni-leipzig.de on 2015-06-11)
  33. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from pfpschneider@gmail.com on 2015-06-11)
  34. Re: resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from kontokostas@informatik.uni-leipzig.de on 2015-06-11)
  35. resolving ISSUE-47: Can SPARQL-based constraints access the shape graph, and how? (from pfpschneider@gmail.com on 2015-06-10)
  36. Re: shapes-ISSUE-65 (shapes, scopes, and constraints): A consistent and cohesive definition of shapes, scopes, and constraints [SHACL Spec] (from holger@topquadrant.com on 2015-06-02)
  37. Re: implementing today's resolution (from holger@topquadrant.com on 2015-06-01)
  38. shapes-ISSUE-47 (sparqling-shape-graph): Can SPARQL-based constraints access the shape graph, and how? [SHACL Spec] (from sysbot+tracker@w3.org on 2015-04-23)

Related notes:

Opened as per WG call on 2015-05-07.

Richard Cyganiak, 7 May 2015, 18:14:36

[kcoyle]: Can SPARQL-based constraints access the shape graph, and how?

2 Jul 2015, 18:31:15

RESOLUTION: Close ISSUE-47, stating that: Not all execution environments can support $shapesGraph access, just like not all platforms have to support SPARQL extensions in general. However, for those environments that do, the spec should define $shapesGraph access and clarify that it is an optional feature. Implementations that do not support it may report a Failure. For the core built-ins, these implementations may use alternative approaches such as custom SPARQL code generators but that is left as an implementation detail.
See https://www.w3.org/2016/02/18-shapes-minutes.html#resolution02

Arnaud Le Hors, 18 Feb 2016, 21:57:53

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: 47.html,v 1.1 2018/11/26 09:03:39 carine Exp $