W3C home > Mailing lists > Public > public-swd-wg@w3.org > December 2006

FOAF namespace configuration

From: Dan Brickley <danbri@danbri.org>
Date: Tue, 12 Dec 2006 14:02:55 -0300
Message-ID: <457EE0BF.4030909@danbri.org>
To: SWD Working Group <public-swd-wg@w3.org>

Re


	<seanb <irc://irc.w3.org:6665/seanb,isnick>> 	ACTION: DanBri to send a 
report on the configuration he used to the list


...the config below is what we currently have live for 
http://xmlns.com/foaf/0.1/

I looked at the W3C recipies note at the time, but for some reason that 
currently escapes me, couldn't make verbatim use of it.

We use a "Slash" namespace, with a single HTML document, per 
http://www.w3.org/TR/swbp-vocab-pub/#recipe4

 From looking again, I guess the main difference is that the HTML 
content is served directly from ns URI, and not 303'd. Maybe we should 
be migrating the FOAF spec URL system closer to that direction...

Dan

.htaccess (truncated) copied below:

Redirect 303 /foaf/0.1/topic_interest http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/homepage http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/firstName http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/aimChatID http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/geekcode http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/page http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/publications http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/made http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/givenname http://xmlns.com/foaf/0.1/
Redirect 303 /foaf/0.1/msnChatID http://xmlns.com/foaf/0.1/
# ...and more of the same

RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^foaf/0.1/ /foaf/0.1/index.rdf [R=303]

# for testing
RewriteCond %{HTTP_ACCEPT} x-application/owldl\+xml
RewriteRule ^foaf/0.1/ /foaf/0.1/index.owldl [R=303]
Received on Tuesday, 12 December 2006 17:49:20 GMT

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