W3C home > Mailing lists > Public > public-wai-ert@w3.org > March 2007

Re-using http://www.w3.org/2006/http# & http://www.w3.org/2006/uri#

From: Alan Dean <alan.dean@gmail.com>
Date: Mon, 19 Mar 2007 14:22:53 +0000
Message-ID: <6fb173f50703190722j5d8bebeo76e1e443bcc4dd8e@mail.gmail.com>
To: public-wai-ert@w3.org




Hi,

I am considering re-using the HTTP namespace for a non-EARL purpose in
RDF - as a means of representing authorization permissions on URIs /
paths.

Here is a simple example:

<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:rights="http://example.org/rights#"
    xmlns:uri="http://www.w3.org/2006/uri#"  >

    <foaf:Agent rdf:about="http://example.com/who/user1">
       <uri:uri>http://example.com/default.html</rights:path>
       <rights:Deny
rdf:resource="http://www.w3.org/2006/http#DeleteRequest" />
       <rights:Grant rdf:resource="http://www.w3.org/2006/http#GetRequest" />
       <rights:Grant rdf:resource="http://www.w3.org/2006/http#HeadRequest" />
       <rights:Grant
rdf:resource="http://www.w3.org/2006/http#OptionsRequest" />
       <rights:Deny rdf:resource="http://www.w3.org/2006/http#PostRequest" />
       <rights:Deny rdf:resource="http://www.w3.org/2006/http#PutRequest" />
       <rights:Grant rdf:resource="http://www.w3.org/2006/http#TraceRequest" />
    </foaf:Agent>
    <foaf:Agent rdf:about="http://example.com/who/user2">
       <rights:path>*</rights:path>
       <rights:Deny
rdf:resource="http://www.w3.org/2006/http#DeleteRequest" />
       <rights:Deny rdf:resource="http://www.w3.org/2006/http#GetRequest" />
       <rights:Deny rdf:resource="http://www.w3.org/2006/http#HeadRequest" />
       <rights:Deny
rdf:resource="http://www.w3.org/2006/http#OptionsRequest" />
       <rights:Deny rdf:resource="http://www.w3.org/2006/http#PostRequest" />
       <rights:Deny rdf:resource="http://www.w3.org/2006/http#PutRequest" />
       <rights:Deny rdf:resource="http://www.w3.org/2006/http#TraceRequest" />
    </foaf:Agent>
</rdf:RDF>

I guess my first question is: "is it ok to use the http namespace in
this manner?"

My next question is: "I can use the uri:uri property to represent an
absolute URI - what should I use to represent a relative URI or a
wildcard?"

Regards,
Alan Dean
http://thoughtpad.net/who/alan-dean/

.
Received on Monday, 19 March 2007 18:42:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:28 GMT