- From: Jeremy Wong 黃泓量 <jeremy@miko.hk>
- Date: Tue, 7 Jun 2005 19:34:19 +0800
- To: "Arjohn Kampman" <arjohn.kampman@aduna.biz>
- Cc: <semantic-web@w3.org>
Thanks Arjohn, I am actually writing a serializer that put me into the question. I am sure that I should throw an exception for this case and those cases mentioned in the Serialising section. Regards, Jeremy Wong 黃泓量 ----- Original Message ----- From: "Arjohn Kampman" <arjohn.kampman@aduna.biz> To: "Jeremy Wong 黃泓量" <jeremy@miko.hk> Cc: <semantic-web@w3.org> Sent: Tuesday, June 07, 2005 7:25 PM Subject: Re: URI ends with # > Jeremy Wong 黃泓量 wrote: >> Consider the rdf:Property http://example.org/# >> in Notation 3, I can write a triple as >> <http://example.org/A> <http://example.org/#> <http://example.org/B> . >> in RDF/XML, how can I write the triple? Let me try... >> <Description xmlns:ex="http://example.org/#" >> rdf:about="http://example.org/A"> >> <ex: rdf:resource="http://example.org/B" /> >> </Description> >> However, "ex:" does not match the definition of Qualified Names [1] and >> the character "#" is not an NCNameChar [2]. I don't have any idea to >> express the predicate which its URI ends with #. Any suggestion? > > This triple cannot be serialized in RDF/XML. See [1] for a short > discussion on the serialization of RDF in XML. The only way to serialize > such a triple is to use one of the other formats (N3, Turtle, ...). > > Arjohn > > [1] http://www.w3.org/TR/rdf-syntax-grammar/#section-Serialising > > -- > arjohn.kampman@aduna.biz > Aduna BV - http://aduna.biz/ > Prinses Julianaplein 14-b, 3817 CS Amersfoort, The Netherlands > tel. +31-(0)33-4659987 >
Received on Tuesday, 7 June 2005 11:34:43 UTC