W3C home > Mailing lists > Public > www-rdf-interest@w3.org > December 2004

Re: Properties with %20 and other names that aren't xml names

From: Jeen Broekstra <jeen@aduna.biz>
Date: Mon, 20 Dec 2004 10:12:45 +0100
Message-ID: <41C6978D.5020408@aduna.biz>
To: James Cerra <jfcst24_public@yahoo.com>
Cc: www-rdf-interest@w3.org

James Cerra wrote:
> Say I have the triple:
> 
> <> 
> <http://example.com/is%20defined%20by> 
> <http://example.com/definition%20of%20subject> .
> 
> How do I encode this as rdf/xml?  The following
> doesn't seem quite right:
> 
> <rdf:RDF
>  
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>   xmlns:ex="http://example.com/is%20defined%20"
> 
> <rdf:Description rdf:about="">
>   <ex:by
>    
> rdf:resource="http://example.com/definition%20of%20subject"
>   />
> </rdf:Description>
> </rdf:RDF>
> 
> I think this was asked before, but I can't find the
> appropriate information.

It doesn't seem quite right indeed, but this is more or less the best 
you can do. See http://www.w3.org/TR/rdf-syntax-grammar/ section 8, 
which recommends the same approach you have taken.

We apparently have to live with the fact that some RDF graphs can not 
be serialized in XML (or at least not in RDF/XML).

Jeen
-- 
Jeen Broekstra          Aduna BV
Knowledge Engineer      Julianaplein 14b, 3817 CS Amersfoort
http://aduna.biz        The Netherlands
tel. +31(0)33 46599877  fax. +31(0)33 46599877
Received on Monday, 20 December 2004 09:12:23 GMT

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