W3C home > Mailing lists > Public > public-rif-wg@w3.org > February 2008

namespace prefix definitions in presentation syntax

From: Axel Polleres <axel.polleres@deri.org>
Date: Fri, 29 Feb 2008 18:53:56 +0000
Message-ID: <47C854C4.9090301@deri.org>
To: "Public-Rif-Wg (E-mail)" <public-rif-wg@w3.org>

Dear all,

I just tried to write down some RIF presentation syntax... (I know I 
shouldn't do this) ... and realized that we don't have any way to define 
namespace prefixes there although we use curies allover...

So I thought we shall reuse one of the established syntaxes here instead 
of reinventing the wheel.

3 alternatives come to my mind:


@prefix prefix: <IRI>.


PREFIX prefix: <IRI>


declare namespace prefix="IRI"

for the moment, I suggest to us the latter, because
we never use angle bracketted IRI's  in the document.

BTW: We might want to switch to angle brackets in the end, because
with curies alone, we cannot express all URIs (that is acxtually a 
severe problem in RDF/XML, btw, where properties can only be CURIEs)

  e.g. assume I have a datatype "http://mydatatype.com/"

I cannot write:


because we have only CURIEs in the datatype position (didn't see other 
examples so far) and the pain thing is that http://mydatatype.com/ 
cannot really be synbtactically be split into a QName.

obviously, we don't want to end up in


which BTW could then be written as:


which actually could be written as:




Dr. Axel Polleres
email: axel@polleres.net  url: http://www.polleres.net/

rdfs:Resource owl:differentFrom xsd:anyURI .
Received on Friday, 29 February 2008 18:54:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:07:42 UTC