Skip to content

Commit 0521d1f

Browse files
Said FathallaSaid Fathalla
authored andcommitted
change mwo versions docs and owl locations #94
1 parent 59d0a52 commit 0521d1f

1 file changed

Lines changed: 29 additions & 3 deletions

File tree

mwo/.htaccess

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Contact person email: s.fathalla@fz-juelich.de
33
# Artifact name: mwo
44
# Artefact Name: The NFDI MatWerk ontology
5-
# Resource location: https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/mwo.owl
5+
# Resource location: https://ise-fizkarlsruhe.github.io/mwo/ontology.owl
66

77
Options +FollowSymLinks
88
Options -MultiViews
@@ -12,7 +12,6 @@ AddType application/rdf+xml .owl
1212

1313
RewriteEngine on
1414

15-
1615
# Rewrite rule to serve HTML ontology docs
1716
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
1817
RewriteCond %{HTTP_ACCEPT} text/html [OR]
@@ -27,11 +26,38 @@ RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
2726
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
2827
RewriteRule ^/?$ https://ise-fizkarlsruhe.github.io/mwo/ [R=303,NE,L]
2928

30-
3129
# Rewrite rule to serve RDF/XML content
3230
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
3331
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
3432
RewriteRule ^$ https://ise-fizkarlsruhe.github.io/mwo/ontology.owl [R=303,NE,L]
3533

34+
#--------------------------------------------------------------------------------
35+
36+
# v3.0.0 owl
37+
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
38+
RewriteRule ^3.0.0$ https://ise-fizkarlsruhe.github.io/mwo/3.0.0/ontology.owl [R=303,L]
39+
40+
# Rewrite rule to serve HTML ontology docs
41+
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
42+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
43+
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
44+
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
45+
RewriteRule ^3.0.0$ https://ise-fizkarlsruhe.github.io/mwo/3.0.0/ [R=303,NE,L]
46+
47+
#------------------------------------------------------------------------------
48+
49+
## v3.0.1
50+
51+
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
52+
RewriteRule ^3.0.1$ https://ise-fizkarlsruhe.github.io/mwo/3.0.1/ontology.owl [R=303,L]
53+
54+
# Rewrite rule to serve HTML ontology docs
55+
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
56+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
57+
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
58+
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
59+
RewriteRule ^3.0.1$ https://ise-fizkarlsruhe.github.io/mwo/3.0.1/ [R=303,NE,L]
60+
61+
#------------------------------------------------------------------------------
3662
# Default response
3763
RewriteRule ^$ https://ise-fizkarlsruhe.github.io/mwo/ontology.owl [R=303,NE,L]

0 commit comments

Comments
 (0)