W3C home > Mailing lists > Public > public-rdf-shapes@w3.org > February 2014

Re: One start per document or several

From: Jose Emilio Labra Gayo <jelabra@gmail.com>
Date: Wed, 5 Feb 2014 23:27:24 +0100
Message-ID: <CAJadXXLv1bep18pr432qOy9qyj4M+tmUpizGRv54gwjzrAxJ9A@mail.gmail.com>
To: "Eric Prud'hommeaux" <eric@w3.org>
Cc: public-rdf-shapes@w3.org
Yes, I also think it makes more sense to have 0 or 1 start.

I had asked it because in the Javascript implementation, the system does
not complain if there are more than one start, although I think it
validates against the latest start.

For example, the followng validates:
http://www.w3.org/2013/ShEx/FancyShExDemo?schema=PREFIX%20%3A%20%3Chttp%3A%2F%2Fex.example%2F%23%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0Astart%20%3D%20%3Ca%3E%0Astart%20%3D%20%3Cb%3E%0A%0A%3Ca%3E%20%7B%20%3Aa%20xsd%3Astring%20%7D%0A%3Cb%3E%20%7B%20%3Ab%20xsd%3Astring%20%7D&data=PREFIX%20%3A%20%3Chttp%3A%2F%2Fex.example%2F%23%3E%0A%0A%3Ax%20%3Ab%20%22b%22%20.%0A

but if I change the order, it complains...

Best regards, Jose Labra


On Wed, Feb 5, 2014 at 4:29 PM, Eric Prud'hommeaux <eric@w3.org> wrote:

> * Jose Emilio Labra Gayo <jelabra@gmail.com> [2014-02-05 13:44+0100]
> > Looking at the BNF grammar of Shex available here:
> > http://www.w3.org/2013/ShEx/ShEx.bnf
> >
> > It seems that a document can have several "start"s...in that case, what
> > should be the semantics?
>
> It was my intention that there be 0 or 1 starts, but I didn't write that
> into the grammar as it doubles a bunch of it. Maybe it's better to make
> that explicit.
>
> Permitting multiple starts could be useful, I guess, but you could meet
> all those use cases using polypmorphism <
> http://localhost/2013/ShEx/Primer#inherit>
>
>
> > --
> > Best regards, Labra
>
> --
> -ericP
>
> office: +1.617.599.3509
> mobile: +33.6.80.80.35.59
>
> (eric@w3.org)
> Feel free to forward this message to any list for any purpose other than
> email address distribution.
>
> There are subtle nuances encoded in font variation and clever layout
> which can only be seen by printing this message on high-clay paper.
>



-- 
Saludos, Labra
Received on Wednesday, 5 February 2014 22:28:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 22:28:12 UTC