- From: Peter F. Patel-Schneider <pfpschneider@gmail.com>
- Date: Mon, 23 Feb 2015 17:02:02 -0800
- To: Iovka Boneva <iovka.boneva@univ-lille1.fr>, RDF Data Shapes Working Group <public-data-shapes-wg@w3.org>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Just a preliminary response to get at a particular part of one example. On 02/23/2015 07:25 AM, Iovka Boneva wrote: > > Le sam. 21 févr. 2015 23:27:52 CET, Peter F. Patel-Schneider a écrit : >> [...] > >> There are ever trickier situations involving recursive shapes. For >> example, consider the two mutually recursive shapes <S> { ( ex:p @<S> | >> ex:p @<T> ) } <T> { ( ex:p @<T> | ex:p @<S> ) } (something is in <S> if >> it has an ex:p fillers and either all its ex:p fillers are in <S> or >> its ex:p fillers are in <T> but not both, and similarly for <T>). It is >> unclear as to which nodes should have shape <S> or <T> in the graph >> ex:a ex:p ex:b . ex:b ex:p ex:a . >> > > With our semantics and considering /closed/ shapes, the shape > > <S> { ( ex:p @<S> | ex:p @<T> ) } > > intuitively says that a <S> typed node should have exactly one outgoing > ex:p, that leads either to <S> or to <T> node. This however does not > forbid the target node to have both <S> and <T>; we exclude any form of > negative constraints. > > There are 9 valid typings, associating with ex:a and ex:b, in this order, > the sets of shapes: {<S>} {<S>} {<S>} {<T>} {<S>} {<S>,<T>} {<T>} {<S>} > {<T>} {<T>} etc. actually all combinations in the Cartesian product { > {<S>}, {<T>}, {<S>,<T>} } X { {<S>}, {<T>}, {<S>,<T>} } The unique > maximal typing is <S>,<T> for both ex:a and ex:b. Huh? If ex:b is of type {<S>,<T>} then <ex:a> should not be <S> or in <T> because both arms of the exclusive or disjunct are true. The literature that I have read on shape expressions is very clear that exclusive or is the meaning of the | construct - see http://www.w3.org/Submission/2014/SUBM-shex-primer-20140602/ for example. Are you saying instead that the meanings of the fundamental constructs in shape expressions vary between different accounts? peter -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU682KAAoJECjN6+QThfjzvRkH/0nw76dyycXxKpwZv48MuXXq C0/f0ThL8eJ4tza4XQ1bxIWmtUFXKS4Z13LuXhU7c+8QhRrcKP57/pjPoVnETIeC L3+hZjs4RmAswhiblXPx638M3CasqNBO6815gBgA9VPydkVuV1rSB2rLAw5khWHf BpUrXzxNL/RrCjS1FF+or96C2JQkpaqs9Ra5hZbA1qMnaLwDQWwLAZe8b07Bxr4n A7IXniktB4s/WH5Zi66837YLsZ8JZfH3a4U0gXrJBIJK9iiLTZ+gM7Fc1dK1mGiG yPJX4uN8RyCkgKxSXE/YYNN+6W+oC4dzoscK8Nvap62pKzDeelTevztjRAqoTgo= =VQc3 -----END PGP SIGNATURE-----
Received on Tuesday, 24 February 2015 01:02:32 UTC