W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > December 2001

SYNTAX: serialization text - with naughty bit

From: Jeremy Carroll <jjc@hplb.hpl.hp.com>
Date: Wed, 5 Dec 2001 12:49:22 -0000
To: <w3c-rdfcore-wg@w3.org>
Message-ID: <JAEBJCLMIFLKLOJGMELDCEJOCCAA.jjc@hplb.hpl.hp.com>

Attn all naughty bit suggests some part of URI space to be used for bNodes
when serializing.
Search for "NAUGHTY"

Hi Dave,

here is some serialization text possibly for sect 6 in your draft:

There are two different approaches to serializing RDF.
The basic approach uses the basic RDF syntax from RDF Model &
In this:
All blank nodes are assigned arbitrary URIs.
Each resource is listed in turn as the subject of a top-level
<code>rdf:description</code> element, using an <code>rdf:about</code>
For each triple, with this resource as subject, an appropriate property
element production is
used, with either string content (possibly empty) or an
<code>rdf:resource</code> attribute specifying the
object of the triple.
The basic serialization is recommended for applications in which the output
to be used only in further RDF processing.
Where the intent is for the output RDF/XML file to be read by people, the
basic serialization proves unsatisfactory.
<p>The basic serialization does not conform to more restricted sub-dialects
of RDF, such as RSS [RSS] or CC/PP [CC/PP]. Hence, it is not appropriate for
such applications, for which
dialect specific serializers are needed.
If more human readable output is required the following factors should be
<li>There are many choices, with many RDF/XML documents corresponding to
RDF graphs. Individual triples can be represented in numerous ways. High
quality RDF
serialization requires that these choices are considered by the serializing
Some are more appropriate than others in an application
dependent fashion.
<li>The triples in the graph need to be considered in an appropriate order.
There are many choices of order, some being more appropriate than others in
an application
dependent fashion.
<!-- NAUGHTY bit -->
Serializations tend to be more readable if they do not attach URI labels to
blank nodes.
However, it is necessary, for some graphs, to do so, in order to refer to a
blank node in
two parts of the RDF/XML document produced. This is typically necessary when
a blank
node is the object of two triples.
In such cases, RDF processors may use URIs beginning with
<!-- end NAUGHTY bit -->
It is not possible to use the RDF/XML serialization for serializing an RDF
graph in
which any triple has a property label which cannot be expressed as a qname.
<p>An approach to serializing RDF/XML using the full grammar in a top-down
recursive descent fashion is discussed in [UNPARSING].

Additional references:
[CC/PP]Composite Capability/Preference Profiles (CC/PP): Structure and
W3C Working Draft 15 March 2001,  World Wide Web Consoritum
[RSS] 	RDF Site Summary (RSS) 1.0, Gabe Beged-Dov, Dan Brickley, Rael
Dornfest, Ian Davis, Leigh Dodds, Jonathan Eisenzopf, David Galbraith, R.V.
Guha, Ken MacLeod, Eric Miller, Aaron Swartz, Eric van der Vlist,  2000,
[UNPARSING] Unparsing RDF/XML, Jeremy J. Carroll, HP Labs Technical Report
(note URL for tech-report doesn't work yet - could omit last part)

Received on Wednesday, 5 December 2001 07:52:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:24:07 UTC