Re: support XML Literals in RDF

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Subject: Re: support XML Literals in RDF
Date: Thu, 7 Aug 2003 17:34:07 +0100

> On Thu, 07 Aug 2003 11:28:37 -0400 (EDT)
> "Peter F. Patel-Schneider" <pfps@research.bell-labs.com> wrote:
> 
> > From: Dave Beckett <dave.beckett@bristol.ac.uk>
> > Subject: Re: support XML Literals in RDF
> > Date: Thu, 7 Aug 2003 12:59:40 +0100
> 
> > Not even all XML Literals that result from RDF/XML parsing will be valid
> > (exc-C14N checked).  For example (modulo issues with using rdf: in places
> > where it really can't be used)
> > 
> > <rdf:RDF>
> >   <rdf:Description>
> >     <http://ex.a/a#a rdf:datatype="rdf:XMLLiteral"><b/></http://ex.a/a#a>
> >   </rdf:Description>
> > </rdf:RDF>
> 
> That's nowhere near legal XML or RDF/XML and I can't see what you are
> getting at.  Please try the RDF validator to correct it and make your
> point.

OK, let's try 

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:foo="http://a.ex/a#">
  <rdf:Description>
    <foo:a rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">&lt;b/&gt;</foo:a>
  </rdf:Description>
</rdf:RDF>

which should  result in the triple
 
 _:a <http://ex.a/a#a> "<b/>"^^http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral .

which has an XML Literal in non-canonical form.

Peter F. Patel-Schneider
Bell Labs Research
Lucent Technologies

Received on Thursday, 7 August 2003 14:45:19 UTC