W3C home > Mailing lists > Public > semantic-web@w3.org > June 2005

Re: URI ends with #

From: Chris Purcell <cjp39@cam.ac.uk>
Date: Tue, 7 Jun 2005 13:05:30 +0100
Message-Id: <918755e4fb68d5e3f1fbdf48964ac28d@cam.ac.uk>
Cc: semantic-web@w3.org
To: Jeremy Wong üÜûòÕá <jeremy@miko.hk>

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 12:05:43 GMT

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