- From: Tim Berners-Lee <timbl@w3.org>
- Date: Sun, 29 Feb 2004 22:25:51 -0500
- To: Andrew Kuchling <akuchlin@mems-exchange.org>
- Cc: Public W3C <www-archive@w3.org>
Andrew,
In http://lists.w3.org/Archives/Public/www-archive/2002Sep/0119.html
(ages ago!)
From: Andrew Kuchling <akuchlin@mems-exchange.org>
Date: Wed, 11 Sep 2002 14:09:15 -0400 (EDT)
To: timbl@w3.org, connolly@w3.org, www-archive+n3bugs@w3.org
Message-Id: <E17pBv1-0000uh-00@ute.mems-exchange.org>
You wrote
"""If you have RDF embedded in some larger XML document, cwm's rdf
parser
raises an "Unknown RDF parser state 'Not RDF' in end tag" exception.
For example, this little file won't be processed.
<?xml version="1.0"?>
<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://mems-exchange.org/schema/file/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<title> This is non-RDF content </title>
<rdf:RDF>
<rdf:Description rdf:about="%s">
<dc:Creator>%s</dc:Creator>
<s:Run>45</s:Run>
</rdf:Description>
</rdf:RDF>
<element />
</metadata>
The patch is simple, just ignoring the NOT_RDF state in the end
tag handler; see below.
--amk
"""
I'm clearing up the bug archives, better laet than never. This one, in
the current cwm at least, does not give an error, but does ignore the
RDF. This is deliberate: it has no authority to parse the RDF data
embedded in the <metadata> tags. That depends on the semantics of the
<metadata> namespace.
Note that the GRDDL work provides a way to authorize an RDF engine to
extract RDF from XML documents, and if that seems to gain acceptance I
would be inclined to include it in cwm.
Tim
Received on Sunday, 29 February 2004 22:25:52 UTC