W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2012

RE: Turtle shortcuts within property-Paths

From: Polleres, Axel <axel.polleres@siemens.com>
Date: Mon, 11 Jun 2012 14:48:16 +0200
To: "andy.seaborne@epimorphics.com" <andy.seaborne@epimorphics.com>, "public-rdf-dawg@w3.org" <public-rdf-dawg@w3.org>
Message-ID: <9DA51FFE5E84464082D7A089342DEEE8013A3AFE75C1@ATVIES9917WMSX.ww300.siemens.net>
Ah, ok, so

SELECT ?X WHERE {
   [ :p|:q:|r ?X ]
}

should work, right?

Great... I added this as a positive syntax test (seems we don't have PPs in combination with shortcuts covered there yet) under:

 http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/syntax-propertyPaths-01.rq

and added it to the respective manifest.

Axel




> -----Original Message-----
> From: Andy Seaborne [mailto:andy.seaborne@epimorphics.com]
> Sent: Monday, 11 June 2012 2:13 PM
> To: public-rdf-dawg@w3.org
> Subject: Re: Turtle shortcuts within property-Paths
>
>
>
> On 11/06/12 12:49, Polleres, Axel wrote:
> > Looking at the grammar, it seems we disallow property paths within
> > triples using Turtle style abbreviations for Property lists:
> >
> http://www.w3.org/2009/sparql/docs/query-1.1/rq25.xml#rPropertyListNot
> > Empty [77] PropertyListNotEmpty ::= Verb ObjectList ( ';' ( Verb
> > ObjectList )? )* While this is not a limitation in terms of
> > expressivity, I felt tempted to write something like [
> :p|:q:|r ?X ]
> > instead of the longer version ... Is it an option to generalize
> > grammar rule [77] to [77] PropertyListNotEmpty ::= VerbPath
> ObjectList
> > ( ';' ( Verb ObjectList )? )* or would that cause parser problems?
> > Thanks & best regards,
> > Axel
>
> [77] is used in CONSTRUCT, INSERT and DELETE templates
>
> [83] is used by query patterns and SPARQL Update WHERE clauses.
>
>       Andy
>
>
Received on Monday, 11 June 2012 12:49:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:48 GMT