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"/>

Received on Monday, 28 February 2000 17:18:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:22 UTC