Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use butterbur13 to store data #21

Open
S6savahd opened this issue Nov 16, 2016 · 2 comments
Open

use butterbur13 to store data #21

S6savahd opened this issue Nov 16, 2016 · 2 comments
Assignees

Comments

@S6savahd
Copy link

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
Copy link
Author

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
Copy link

clange commented Nov 16, 2016

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)

@S6savahd S6savahd self-assigned this Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants