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

Re: About Refactoring RDF/XML Syntax Rivision 1.43

From: Graham Klyne <Graham.Klyne@Baltimore.com>
Date: Fri, 07 Sep 2001 12:28:22 +0100
Message-Id: <5.1.0.14.2.20010907122525.03643ec0@joy.songbird.com>
To: Satoshi Nakamura <snakamura@infoteria.co.jp>
Cc: Jeremy Carroll <jjc@hplb.hpl.hp.com>, w3c-rdfcore-wg@w3.org
I think I agree with all you say.  What I'm asking for is an option for an 
application to interpret an entire XML document as RDF if it can determine 
from context that is its purpose.

That is how I interpret the current RDF M&S text.

#g
--

At 07:43 PM 9/6/01 -0400, Satoshi Nakamura wrote:
>At 06 Sep 2001 17:25:37 +0100 Graham Klyne wrote:
> > I therefore suggest the above syntax is appropriate, and the current RDF
> > specification is about right on this
> > point.
> > 
> (http://lists.w3.org/Archives/Public/www-archive/2001Jun/att-0021/00-part#54)
>
>I think it is nearly impossible to determine which element is the
>boundaries for 'generic' RDF/XML parsers without rdf:RDF. We can even
>write RDF/XML without rdf-ns declaration.
>
>For example:
>
><x:foo xmlns:x="..." xmlns:y="...">
>   <y:bar>baz<y:bar>
></x:foo>
>
>This XML is legal RDF/XML document. But there is no hint to determine
>whether it is RDF/XML (generate 1 triple) or some other kind of XML
>document (generate no triple). I think that only the parser can do is to
>treat whole document as RDF/XML.
>
>In addition, parsers based on event-based XML API cannot start processing
>before they find rdf:RDF element which may not be present. If there is
>rdf:RDF element, a parser should treat only its contents as RDF/XML, and
>if not, parser should treat whole document as RDF/XML. So a parser need to
>create a tree model (such as DOM) or something to hold contents which may
>be RDF/XML and may not be. I think it is useless to hold 1MB XML contents
>to get few embeded RDF/XML contents.
>
>Thanks.
>
>---
>Satoshi Nakamura <snakamura@infoteria.co.jp>
>Infoteria Corporation
>
>
>This footnote confirms that this email message has been swept by
>MIMEsweeper for the presence of computer viruses.

------------------------------------------------------------
Graham Klyne                    Baltimore Technologies
Strategic Research              Content Security Group
<Graham.Klyne@Baltimore.com>    <http://www.mimesweeper.com>
                                 <http://www.baltimore.com>
------------------------------------------------------------
Received on Friday, 7 September 2001 12:57:13 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:39:41 EDT