W3C home > Mailing lists > Public > www-rdf-interest@w3.org > June 2002

Re: Toss NTriples -- RDF Reification is all we need (was Re: N3 and N-Triples (was: RDF in HTML: Approaches)

From: Thomas B. Passin <tpassin@comcast.net>
Date: Tue, 04 Jun 2002 08:14:10 -0400
To: RDF Interest <www-rdf-interest@w3.org>
Message-id: <001601c20bc1$558c7fe0$f6193044@tbp>

[Michael Kifer]
>
> Patrick Stickler <patrick.stickler@nokia.com> wrote:

> > We can just use a subset of RDF instead of NTriples:
> >
> > <rdf:RDF ...>
> >    <rdf:Statement>
> >       <rdf:subject rdf:resource="http://foo.com/bar"/>
> >       <rdf:predicate rdf:resource="voc://abc.org/blarrg"/>
> >       <rdf:object rdf:resource="#node12345"/>
> >    </rdf:Statement>
> >    <rdf:Statement>
> >       <rdf:subject rdf:resource="#node12345"/>
> >       <rdf:predicate rdf:resource="voc://abc.org/booga"/>
> >       <rdf:object>Gumby</rdf:object>
> >    </rdf:Statement>
> >    ...
> > </rdf:RDF>
> >
> > I hereby propose we toss NTriples altogether and just use RDF/XML
> > as above for all test cases output.
> >
> > RDF/XML provides all the mechanisms needed to explicitly express
> > the precise triples existing in any RDF graph, as RDF/XML.
> >
> > (not really joking about this, actually ;-)
>
> Neither am I. A fine interchange format. The triples languages are for
> humans; their xml serializations -- for machines.
>

I use a simple indented format - a little SAX handler converts it to XML.
Very easy to write by hand:

rdf:RDF::
   rdf:Statement::
      rdf:subject::
        @rdf:resource::http://foo.com/bar
      rdf:predicate::
        @rdf:resource::voc://abc.org/blarrg
      rdf:object::
        @rdf:resource::#node12345
   rdf:Statement::
      rdf:subject
        @rdf:resource::#node12345
      rdf:predicate
        @rdf:resource::voc://abc.org/booga
      rdf:object::Gumby

The "@" indicates an attribute, and using the "::" lets me include prefixed
names (which are simply echoed through to the output, the SAX handler
doesn't know anything about them).

Cheers,

Tom P
Received on Tuesday, 4 June 2002 08:15:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:54 GMT