Skip to content

Instantly share code, notes, and snippets.

View FabienGandon's full-sized avatar

Fabien Gandon FabienGandon

View GitHub Profile
@FabienGandon
FabienGandon / .htaccess for RDF voc
Created September 25, 2008 10:34
content negotiation in .htaccess to serve an RDF voc as HTML or rdf+xml depending on the client request
# Turn off MultiViews
Options -MultiViews
# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
# Rewrite engine setup
RewriteEngine On
RewriteBase /irc/2008/09/25
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:irc="http://irc-edelweiss.inria.fr/2008/09/irc"
xml:base="http://irc-edelweiss.inria.fr/2008/09/irc">