Re: Subject lists in SPARQL

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).

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

 Andy

>
> - Steve
>

Received on Thursday, 26 March 2015 10:38:33 UTC