W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > January 2007

SPARQL prefixes and local parts

From: <mark.d.wood@kodak.com>
Date: Mon, 8 Jan 2007 09:03:18 -0500
To: public-rdf-dawg-comments@w3.org
Message-ID: <OF387FE513.6D0BE064-ON8525724B.00561958-8525725D.004D34EC@knotes.kodak.com>
The current SPARQL specification states the following for prefixed names:

The PREFIX keyword associates a prefix label with an IRI. A prefixed name 
is a prefix label and a local part, separated by a colon ":". It is mapped 
to an IRI by concatenating the local part to the IRI corresponding to the 
prefix. The prefix label may be the empty string.

The grammar for local parts does not allow slashes in the name.

I would like to suggest that local parts should in fact allow for slashes 
in the local part of the name.   This allows one to define prefixes that 
are basically the root of some structure. 

For example, one might wish to define a prefix

PREFIX ex1:  <http://www.example.org/schemas/Concept1>
PREFIX ex2:  <http://www.example.org/schemas/Concept1>

and therefore specify abbreviated IRIs such as:




Without this ability, one must either define a very flat namespace, or 
define separate prefixes for every concept.

-Mark Wood
Received on Monday, 8 January 2007 17:57:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:08 UTC