Hi Paul,
07/24/2011 11:55 PM Paul Libbrecht:
We made them work:
http://jira.activemath.org/browse/CCIN-8
but maybe it needs to be woken back up?
I'm afraid some other priorities might byte right now.
please find attached an .htaccess file that did the trick on our server
(including RDF).
Cheers,
Christoph
--
Christoph Lange, Jacobs University Bremen
http://kwarc.info/clange, Skype duke4701
Workshop: Ontologies come of Age in the Semantic Web (OCAS)
Ontology User Experience Challenge (1st prize US$ 2000)
October 23 or 24 at the Intl. Semantic Web Conference, Bonn, Germany
Submission deadline August 15, http://ocas.mywikipaper.org
# Sources:
# http://www4.wiwiss.fu-berlin.de/bizer/pub/LinkedDataTutorial/
# http://www.w3.org/TR/swbp-vocab-pub/#recipe3
# 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
AddType text/rdf+n3;charset=utf-8 .n3
AddType application/x-turtle .ttl
AddType application/openmath-cd+xml .ocd
# Rewrite engine setup
RewriteEngine On
RewriteBase /openmath
# Rewrite rule to serve HTML content from the vocabulary URI if requested:
# * neither RDF not OpenMath CD requested
RewriteCond %{HTTP_ACCEPT}
!application/(rdf|openmath-cd)\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^(.+)(?<!\.rdf)(?<!\.xhtml)(?<!\.ocd)$ $1.xhtml [R=303,L]
# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^(.+)(?<!\.rdf)(?<!\.xhtml)(?<!\.ocd)$ $1.rdf [R=303,L]
# Rewrite rule to serve OpenMath CD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/openmath-cd\+xml
RewriteRule ^(.+)(?<!\.rdf)(?<!\.xhtml)(?<!\.ocd)$ $1.ocd [R=303,L]
# Choose the default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^(.+)(?<!\.rdf)(?<!\.xhtml)(?<!\.ocd)$ $1.rdf [R=303,L]
# Rewrite rule to serve HTML content from the vocabulary URI by default
(disabled)
# (To enable this option, uncomment the rewrite rule below, and comment
# out the rewrite rule directly above)
# RewriteRule ^(.+)(?<!\.rdf)(?<!\.xhtml)(?<!\.ocd)$ $1.xhtml [R=303,L]
_______________________________________________
Om mailing list
[email protected]
http://openmath.org/mailman/listinfo/om