- From: Jeremy Wong üÜûòÕá <jeremy@miko.hk>
- Date: Tue, 7 Jun 2005 23:45:28 +0800
- To: "Chris Purcell" <cjp39@cam.ac.uk>
- Cc: <semantic-web@w3.org>
"Two RDF URI references are equal if and only if they compare as equal, character by character, as Unicode strings" [1] It is actually a Simple String Comparison [2]. Another point is that, the meaning of a fragment is scheme dependent. I don't know whether an empty fragid reference the entire document either. Regards, Jeremy Wong üÜûòÕá -- [1] http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-URI-reference [2] RFC3986, Section 6.2.1. Simple String Comparison ----- Original Message ----- From: "Chris Purcell" <cjp39@cam.ac.uk> To: "Jeremy Wong üÜûòÕá" <jeremy@miko.hk> Cc: <semantic-web@w3.org> Sent: Tuesday, June 07, 2005 8:05 PM Subject: Re: URI ends with # > Does an empty fragid reference the entire document? That would mean > <http://www.example.org/#> is the same URI as <http://www.example.org/>. > > Chris > >> 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 üÜûòÕá >> >>>> 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 > >
Received on Tuesday, 7 June 2005 15:47:58 UTC