Skip to content

Commit f55c4fa

Browse files
Deploy to GitHub pages
0 parents  commit f55c4fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+240899
-0
lines changed

mo/.htaccess

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Turn off MultiViews
2+
Options -MultiViews
3+
4+
# Directive to ensure *.rdf files served as appropriate content type,
5+
# if not present in main apache config
6+
AddType application/rdf+xml .rdf
7+
AddType application/rdf+xml .owl
8+
AddType text/turtle .ttl
9+
AddType application/n-triples .n3
10+
AddType application/ld+json .jsonld
11+
# Rewrite engine setup
12+
RewriteEngine On
13+
#Change the path to the folder here
14+
RewriteBase /mo
15+
16+
# Rewrite rule to serve HTML content from the vocabulary URI if requested
17+
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
18+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
19+
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
20+
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
21+
RewriteRule ^$ index-de.html [R=303,L]
22+
23+
# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
24+
RewriteCond %{HTTP_ACCEPT} application/ld\+json
25+
RewriteRule ^$ ontology.jsonld [R=303,L]
26+
27+
# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
28+
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
29+
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
30+
RewriteRule ^$ ontology.rdf [R=303,L]
31+
32+
# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
33+
RewriteCond %{HTTP_ACCEPT} application/n-triples
34+
RewriteRule ^$ ontology.nt [R=303,L]
35+
36+
# Rewrite rule to serve TTL content from the vocabulary URI if requested
37+
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
38+
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
39+
RewriteCond %{HTTP_ACCEPT} \*/turtle
40+
RewriteRule ^$ ontology.ttl [R=303,L]
41+
42+
RewriteCond %{HTTP_ACCEPT} .+
43+
RewriteRule ^$ 406.html [R=406,L]
44+
# Default response
45+
# ---------------------------
46+
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
47+
RewriteRule ^$ ontology.rdf [R=303,L]

mo/406.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2+
<html><head>
3+
<title>406 Not Acceptable</title>
4+
</head>
5+
<body>
6+
<h1>Not Acceptable</h1>
7+
<p>An appropriate representation of the requested resource could not be found on this server.</p>
8+
Available variants:<ul><li><a href="index-de.html">html</a></li><li><a href="ontology.jsonld">JSON-LD</a></li><li><a href="ontology.rdf">RDF/XML</a></li><li><a href="ontology.nt">N-Triples</a></li><li><a href="ontology.ttl">TTL</a></li></ul>
9+
10+
</body></html>

mo/index-de.html

Lines changed: 7724 additions & 0 deletions
Large diffs are not rendered by default.

mo/index-en.html

Lines changed: 7724 additions & 0 deletions
Large diffs are not rendered by default.

mo/index.html

Lines changed: 7724 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)