W3C home > Mailing lists > Public > public-rdf-wg@w3.org > March 2011

Re: bang ! in turtle

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Tue, 01 Mar 2011 17:16:26 +0000
Message-ID: <4D6D29EA.4010908@epimorphics.com>
To: nathan@webr3.org
CC: RDF WG <public-rdf-wg@w3.org>


On 01/03/11 16:41, Nathan wrote:
> actually ^ may be better.. such that
>
> :a :b :c .
>
> could be written as:
>
> :c ^:b :a .
>
> meaning
>
> :c [ owl:inverseOf :b ] :a .

meaning there is a there is bnode in the predicate position.

>
> meaning:
>
> :a :b :c .
>

SPARQL has:

:c ^:b :a .

meaning

:a :b :c

reverses subject and object. The matching process really does swap 
subject and object.

http://www.w3.org/TR/sparql11-query/#propertypaths

	Andy

(without opinion on whether to add it to Turtle)

> cheers
>
> Nathan wrote:
>> Hi All,
>>
>> Is there any chance we can include ! in turtle to prefix predicates
>> and inverse the directionality, such that
>>
>> :a :b :c .
>>
>> could be written as
>>
>> :c !:b :a .
>>
>> (as opposed to :c is :b of :a)
>>
>> Cheers,
>>
>> Nathan
>>
>
>
Received on Tuesday, 1 March 2011 17:17:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:03 UTC