Re: RDF Graph questions

On 2002-05-30 13:29, "ext Graham Klyne" <Graham.Klyne@MIMEsweeper.com>
wrote:

> At 12:10 PM 5/30/02 +0300, Patrick Stickler wrote:
>>> I am also tending to a view that a '#'-separator should be preferred, and
>>> possibly even inserted automatically when forming a URIref from
>>> URI-without-trailing-separator + fragment (Jonathan Borden's
>>> suggestion?).
>> 
>> Unfortunately, this does not work unless URIrefs are disallowed as
>> namespace identifiers, as otherwise you encroach upon the fragment
>> syntax specified for a given MIME type.
> 
> Ooer, I hadn't thought of that.
> 
>> How do you apply the above operation to the following namespace/name
>> pairing?
>> 
>>    <boo xmlns="foo://abc.com/bar#bas"/>
>> 
>> The URI foo://abc.com/bar#bas#boo is invalid.
> 
> I don't have an obvious answer.  I could concoct something, but it starts
> to look messy.
> 
> Adding characters now looks less attractive, but the possible reasons for
> preferring '#' at the end of a namespace stand, I think.

Sure. As a best practice, we should certainly recommend that
namespace URIs used with predicates end in some non-name
punctuation, so that later we can more consistently guess the
"correct" qname partitioning when re-serializing to XML.

It's just not likely that we could ever come up with a truly
generic and workable algorithm for introducing such punctuation
at the partition between namespace and name automatically.

I.e, let's document the issue, and tell folks (as Brian
proposed) use '/' or "#" at the end of the namespace, but be
clear that insofar as the RDF graph is concerned, namespaces
and qnames simply don't exist and have no representation,
significance or meaning. It's strictly an XML thing.

Cheers,

Patrick

> #g
> 
> 
> -------------------
> Graham Klyne
> <GK@NineByNine.org>
> 
> 

--
               
Patrick Stickler              Phone: +358 50 483 9453
Senior Research Scientist     Fax:   +358 7180 35409
Nokia Research Center         Email: patrick.stickler@nokia.com

Received on Thursday, 30 May 2002 06:50:06 UTC