ISSUE-80: Constraint to limit IRIs against scheme/namespace, possibly with dereferencing

Scheme URIs

Constraint to limit IRIs against scheme/namespace, possibly with dereferencing

State:
CLOSED
Product:
SHACL Spec
Raised by:
Holger Knublauch
Opened on:
2015-08-13
Description:
This requirement has come up several times, most recently in http://lists.w3.org/Archives/Public/public-rdf-shapes/2015Aug/0000.html
Given that it appears to be a genuine use case, we should consider adding support for this in the Core language.

The problem statement could be summarized that some property values need to stem from a controlled vocabulary with a given scheme URI or namespace, and validation should also make sure that the terms actually exist. Some of this data may originate from online resources.

As a minimum, I believe we should add a keyword such as sh:valueScheme (suggested by Miika Alonen). For example

sh:property [
sh:predicate org:memberOf ;
sh:valueClass skos:Concept ;
sh:valueScheme <http://id.loc.gov/authorities/names> .
] .

would enforce the constraint that all IRI values of org:memberOf must start with "http://id.loc.gov/authorities/names". This would basically be a macro for a SPARQL STRSTARTS operation and is easy to implement. (A side question: would sh:valueScheme imply that all values must be IRIs). I would vote for adding this in any case.

The more difficult question is what to do with dynamic look up of resources. Phil Archer seems to suggest that the system should also go to the URL and make a live lookup to see if the site returns 200. While this is certainly doable, I am concerned about performance, and in many deployment scenarios people may actually prefer to store the reference data in a controlled named graph.

The sh:valueScheme information could be used as a pre-processor to download the required triples. We could decide to leave this aspect outside of the spec. If these were downloaded into the main graph then it would have the advantage that the system could equally validate the sh:valueClass. However, it is not always possible or efficient to modify the main query graph. Another option would be for a pre-processor to download the missing triples into a given named graph, separate from the main data graph. The system could then use something like GRAPH <...scheme...> { ... } to verify that the triple exists, which would cover the use case in which the data is already downloaded.

Requires further discussion, but I want to capture this as an ISSUE to indicate that we do take user feedback serious.
Related Actions Items:
No related actions
Related emails:
  1. Re: ISSUE-194: sh:stem implementation (from kcoyle@kcoyle.net on 2016-11-18)
  2. Re: ISSUE-194: sh:stem implementation (from holger@topquadrant.com on 2016-11-18)
  3. Re: ISSUE-194: sh:stem implementation (from kontokostas@informatik.uni-leipzig.de on 2016-11-18)
  4. Re: ISSUE-194: sh:stem implementation (from eric@w3.org on 2016-11-18)
  5. ISSUE-194: sh:stem implementation (from holger@topquadrant.com on 2016-11-18)
  6. Re: ISSUE-71 (from eric@w3.org on 2016-09-07)
  7. Re: ISSUE-71 (from holger@topquadrant.com on 2016-09-07)
  8. Re: ISSUE-71 (from kcoyle@kcoyle.net on 2016-09-06)
  9. Re: ISSUE-71 (was: ISSUE-176: Rules will not modify the data graph) (from eric@w3.org on 2016-09-06)
  10. ISSUE-71 (was: ISSUE-176: Rules will not modify the data graph) (from holger@topquadrant.com on 2016-09-06)
  11. Re: ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from holger@topquadrant.com on 2016-04-01)
  12. Re: ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from pfpschneider@gmail.com on 2016-03-31)
  13. Re: ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from kcoyle@kcoyle.net on 2016-03-31)
  14. Re: ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from kontokostas@informatik.uni-leipzig.de on 2016-03-31)
  15. Re: ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from eric@w3.org on 2016-03-30)
  16. Re: RDF Data Shapes WG Agenda for 17 March 2016 (from lehors@us.ibm.com on 2016-03-17)
  17. Re: RDF Data Shapes WG Agenda for 17 March 2016 (from pfpschneider@gmail.com on 2016-03-17)
  18. Re: ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from pfpschneider@gmail.com on 2016-03-10)
  19. Re: ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from eric@w3.org on 2016-03-10)
  20. Re: ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from pfpschneider@gmail.com on 2016-03-10)
  21. ACTION: ericP to send proposal for sh:Stem in response to ISSUE-80 (from eric@w3.org on 2016-03-09)
  22. shapes-ACTION-36: Send proposal for sh:stem in response to issue-80 (from sysbot+tracker@w3.org on 2016-03-03)
  23. Re: Properties v classes in validation (from holger@topquadrant.com on 2015-09-04)
  24. Re: sh:allowedValues and skos:Collection (from holger@topquadrant.com on 2015-08-19)
  25. Re: sh:allowedValues and skos:Collection (from holger@topquadrant.com on 2015-08-18)
  26. sh:allowedValues and skos:Collection (from miika.alonen@csc.fi on 2015-08-17)
  27. Re: shapes-ISSUE-80 (Scheme URIs): Constraint to limit IRIs against scheme/namespace, possibly with dereferencing [SHACL Spec] (from miika.alonen@csc.fi on 2015-08-17)
  28. Re: SKOS concept scheme URIs as values for constraints (from miika.alonen@csc.fi on 2015-08-14)
  29. Re: shapes-ISSUE-80 (Scheme URIs): Constraint to limit IRIs against scheme/namespace, possibly with dereferencing [SHACL Spec] (from miika.alonen@csc.fi on 2015-08-14)
  30. Re: shapes-ISSUE-80 (Scheme URIs): Constraint to limit IRIs against scheme/namespace, possibly with dereferencing [SHACL Spec] (from Jerven.Bolleman@isb-sib.ch on 2015-08-14)
  31. Re: SKOS concept scheme URIs as values for constraints (from holger@topquadrant.com on 2015-08-14)
  32. Re: SKOS concept scheme URIs as values for constraints (from holger@topquadrant.com on 2015-08-14)
  33. Re: SKOS concept scheme URIs as values for constraints (from kcoyle@kcoyle.net on 2015-08-13)
  34. shapes-ISSUE-80 (Scheme URIs): Constraint to limit IRIs against scheme/namespace, possibly with dereferencing [SHACL Spec] (from sysbot+tracker@w3.org on 2015-08-13)

Related notes:

RESOLUTION: Close ISSUE-80, adding sh:stem to the spec outlined in Eric's email https://lists.w3.org/Archives/Public/public-data-shapes-wg/2016Mar/0311.html
See https://www.w3.org/2016/04/07-shapes-minutes.html#resolution02

Arnaud Le Hors, 8 Apr 2016, 03:33:21

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