W3C home > Mailing lists > Public > www-rdf-interest@w3.org > February 2000

Re: SV: A certain difficulty - lack of action!

From: Sergey Melnik <melnik@db.stanford.edu>
Date: Mon, 28 Feb 2000 14:21:59 -0800
Message-ID: <38BAF507.68B3FD62@db.stanford.edu>
To: Gabe Beged-Dov <begeddov@jfinity.com>
CC: Jeff Sussna <jeff.sussna@quokka.com>, www-rdf-interest@w3.org
Gabe Beged-Dov wrote:
> ...
> <rdf>
>   <predQname subject="[URI]" object="[URI]"/>
>   <predQname subject="[URI]">[PCDATA]</predQname>
> </rdf>

A potential disadvantage of this approach (as Sean mentioned) is that
one has to use XML namespaces to encode predQname. Furthermore, the
statements have to be grouped within an <rdf> tag. Finally, there is no
way to enforce an a priori correct XML document using a DTD since the
content model of the <rdf> tag is ANY.

In contrast,

<rdf:statement subject="[URI]" ... />

can be used standalone and has a cleaner DTD declaration. As to
verbosity, one could use XML entities for shortcuts:

<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
...
<statement subject="http://www.w3.org/Home/Lassila"
predicate="&rdf;type" object="&my;WebPage"/>

Sergey
Received on Monday, 28 February 2000 17:18:51 GMT

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