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

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 UTC