W3C home > Mailing lists > Public > public-sparql-dev@w3.org > January to March 2015

Re: Subject lists in SPARQL

From: Steve Harris <steve@totl.net>
Date: Thu, 26 Mar 2015 10:40:37 +0000
Cc: "public-sparql-dev@w3.org" <public-sparql-dev@w3.org>
Message-Id: <DA83152D-AA55-43C8-85D5-91C8C20D5F08@totl.net>
To: Andy Seaborne <andy@apache.org>
> On 26 Mar 2015, at 10:38, Andy Seaborne <andy@apache.org> wrote:
> 
> On 26/03/15 10:25, Steve Harris wrote:
>> 
>>> On 26 Mar 2015, at 10:10, Andy Seaborne <andy@apache.org> wrote:
>>> 
>>> On 24/03/15 16:48, Fabiano Luz wrote:
>>>>> Hello Folks,
>>>> On the predicate lists we have omitted the subject, for example:
>>>> 
>>>>      ?x  foaf:name  ?name ;
>>>>            foaf:mbox  ?mbox .
>>>> 
>>>> 
>>>> I wonder if there is some kind of "subject lists" where we omitted the
>>>> predicate, for example:
>>>> 
>>>>      foaf:Bob  foaf:phone  ?phone1; foaf:John  ?phone2 .
>>>> 
>>>> 
>>>> PS: I do not want to repeat the predicate.
>>>> 
>>>> best regards
>>>> 
>>>> --
>>>> Fabiano Ferreira LuzĀ®
>>>> MsC in Computer Science
>>> 
>>> Fabiano,
>>> 
>>> There isn't any specific syntax to abbreviate in that way (in Turtle or SPARQL), only "same subject, same predicate", not "different subject, same predicate".
>>> 
>>> What's you use case for this?
>> 
>> I was wondering about this, what happens if you write:
>> 
>> :foo ^rdf:value :a , :b , :c .
> 
> :foo ^rdf:value :a .
> :foo ^rdf:value :b .
> :foo ^rdf:value :c .
> 
> That might help or it might not (in SPARQL patterns, not Turtle, not in construct templates, not in update templates).

Right, but the question was about SPARQL.

> Is then ":a" a "subject"?
> Yes - in a forward arc sense.
> No - in the written form sense as described.

Right, it depends whether the goal was compactness, or legibility.

- Steve
Received on Thursday, 26 March 2015 10:48:59 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 26 March 2015 10:49:00 UTC