ceurws / ToolsEswc

Tools and extensions for the SemPub2015 co-located with the Extended Semantic Web Conference 2015
GNU General Public License v3.0
0 stars 0 forks source link

use butterbur13 to store data #21

Open S6savahd opened 7 years ago

S6savahd commented 7 years ago

we need to figure of the Apache configuration and store data to provide LOD for CEUR-WS, the data that we can not publish over its own server.

S6savahd commented 7 years ago

for each valume we need to provide a page on server we should make this process automated using a makefile create write directories on the server, having the same directory structure as CEUR

clange commented 7 years ago

To make sure the RDF is served with the right MIME type, we need a .htaccess file similar to the following. The following is actually more complex, as it provides content negotiation between HTML and RDF/XML, which is the case at http://ceur-ws.org. For the LOD that we publish we just need the RDF/XML, so can simplify.

# 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

# Rewrite rule to serve HTML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+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 ^$ index.html

# Rewrite rule to serve RDF/XML content if requested
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
# We are not doing a 303 redirect, as a proceedings volume is an information resource already.
RewriteRule ^$ index.rdf

# Choose the default response
RewriteRule ^$ index.html

This code is inspired by https://www.w3.org/TR/swbp-vocab-pub/#recipe6 (or other recipes in this specification)