W3C home > Mailing lists > Public > public-rdf-comments@w3.org > May 2013

Re: TriG being disjoint from Turtle

From: Henry Story <henry.story@bblfish.net>
Date: Sat, 18 May 2013 18:18:22 +0200
Cc: Jan Wielemaker <J.Wielemaker@vu.nl>, Andy Seaborne <andy.seaborne@epimorphics.com>, public-rdf-comments@w3.org
Message-Id: <D10CC1CB-047B-40C8-8251-6D9D23EA05C9@bblfish.net>
To: Sandro Hawke <sandro@w3.org>

On 17 May 2013, at 13:38, Sandro Hawke <sandro@w3.org> wrote:

> On 05/17/2013 06:00 AM, Jan Wielemaker wrote:
>> On 05/17/2013 11:49 AM, Andy Seaborne wrote:
>> [this fragment is from Charles Greer, not answered by Andy]
>>> 1.  Could the spec be modified to allow TriG to be a superset of
>>> turtle?  Specifically, could the production rules be modified to allow
>>> a set of triples outside of any '{'  '}' to be the same as triples in a
>>> default anonymous graph?  It seems that even now, the rules allow
>>> multiple anonymous graph productions, whose union would be the unnamed
>>> graph.  It would be convenient if we could dispense with these anonymous
>>> curly braces altogether if possible.
>> Having implemented TriG yesterday on top of the Turtle parser, I must say that I was happily surprised that TriG does not allow for triples
>> outside {}.  This means you can detect whether a document is a Turtle
>> or TriG document at the first triple.

I completely agree. If we can have Trig be an extension of Turtle, then we
are just one step from N3. Having this would be very useful to be
able to quote graphs and do simple things that Atom allows one to do such
as having a graph expressing the content of other resources.


So instead of having to write something like

<> rdf:member [ owl:sameAs <member> ;
       :title "An Order for a sanwich" ;
       :updated "2013-05-13..."^^xsd:dateTime;
       :content """
                @base ...
                @prefix ...

                <> :title "An Order for a Sandwich";
                       :primaryTopic <#x>
               <#x> a TunaSandwich
     ] .

One could write:

<> rdf:member [ owl:sameAs <member> ;
        :title "An Order for a sandwich" ;
        :updated "2013-05-13..."^^xsd:dateTime;
        :content {
          <member> :title "An Order for a Sandwich";
                   :primaryTopic [ a TunaSandwich ] ....

      ] .

One needs this if one is going to be able to for example GRDDL something
as simple as an Atom Syntax document that contains RDF.


Social Web Architect
Received on Saturday, 18 May 2013 16:18:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:56 UTC