W3C home > Mailing lists > Public > public-data-shapes-wg@w3.org > March 2015

Re: shapes-ISSUE-30 (shape-and-data-graphs): Are shapes and data in the same graph? [SHACL Spec]

From: Peter F. Patel-Schneider <pfpschneider@gmail.com>
Date: Sat, 28 Mar 2015 15:17:39 -0700
Message-ID: <55172883.50604@gmail.com>
To: Richard Cyganiak <richard@cyganiak.de>
CC: "public-data-shapes-wg@w3.org" <public-data-shapes-wg@w3.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/28/2015 02:59 PM, Richard Cyganiak wrote:
> Peter,
> 
>> On 28 Mar 2015, at 20:31, Peter F. Patel-Schneider
>> <pfpschneider@gmail.com> wrote:
>> 
> I am uncertain as to what access to the shape graph when validating the
> data graph is supposed to mean.
> 
> On one hand, it seems to me that if the shape graph is inaccessible then 
> there is no way that the shapes can be acccessed and so no way to
> validate the shapes, so it appears to me that all proposals need this.
> On the other hand, I am unaware that any proposal needs the shape graph
> to be part of the data graph.
> 
>> The treatment of sh:allowedValues in the SHACL draft [1][2] requires
>> that shapes and data be in the same graph, as it relies on querying the
>> sh:member triples.
> 
>> An alternative would be to pass the allowed values in as pre-bound
>> variables, as done for other constructs. But there is the complication
>> that it’s more than one.

I think that a treatment that put the allowed values in the SPARQL query
would be better.

>> Another alternative would be to do something with RDF datasets.

Which would also require a connection between the data graph and the shape
graph, I think.
> 
>> Richard
> 
> 
>> [1]
>> https://w3c.github.io/data-shapes/shacl/#AbstractAllowedValuesPropertyConst
raint
>>
>> 
[2]
https://w3c.github.io/data-shapes/shacl/#sparql-AbstractAllowedValuesPropertyC
onstraint
> 
> 
> 
> 
> peter
> 
> 
> On 03/28/2015 01:21 PM, RDF Data Shapes Working Group Issue Tracker
> wrote:
>>>> shapes-ISSUE-30 (shape-and-data-graphs): Are shapes and data in the
>>>> same graph? [SHACL Spec]
>>>> 
>>>> http://www.w3.org/2014/data-shapes/track/issues/30
>>>> 
>>>> Raised by: Richard Cyganiak On product: SHACL Spec
>>>> 
>>>> Some proposals assume that the data to be validated, and the RDF
>>>> graph encoding the shapes, are in separate graphs. Others assume
>>>> they are in the same graph, and rely on being able to access
>>>> triples from the shape graph when validating the data graph.
>>>> 
>>>> 
>>>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJVFyiDAAoJECjN6+QThfjzRTgH/R5TbUszVYtZmRl0r4FZpYB0
cIVZo2Oph1Gjh0XlOMoSrWJSsGmPfMn7Hh4x6flT2+7TQsBGXz1oVueGm0LiSuD9
VHoNVCNeYoMeO58ox6fMfpn2j7v+xc4T3wkihWUS7GoPLqrlU/Qyg6o4KFAschUk
wAJYSOK09T5wPnmapVQ7YHbjO3GXA4tMcGTEtx2Xr0JuKpxhgTd5xVw/95a1OB5Y
gCLO4qLvLQK28DwW8ii8e/Qye2IDlRY8kZ40jcWVdNkxEJPGMRhrcK6TcH/w5q5N
m14RQ+klYPZMOxFnJ3c1Hsy387azySHYarXILfzAoXATbHpo1X5DpXBIy3DSXi4=
=gZya
-----END PGP SIGNATURE-----
Received on Saturday, 28 March 2015 22:18:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:30:18 UTC