Skip to content

Commit 59d0a52

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

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

mwo/.htaccess

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,31 @@
77
Options +FollowSymLinks
88
Options -MultiViews
99

10-
1110
# Directive to ensure *.rdf files served as appropriate content type
1211
AddType application/rdf+xml .owl
1312

1413
RewriteEngine on
1514

16-
# mwo v2.0.0 (latest version)
17-
18-
# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
19-
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
20-
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
21-
RewriteRule ^$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/mwo.owl [R=303,L]
2215

16+
# Rewrite rule to serve HTML ontology docs
2317
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
2418
RewriteCond %{HTTP_ACCEPT} text/html [OR]
2519
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
2620
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
27-
RewriteRule ^((.+)|/?)$ https://nfdi-matwerk.pages.rwth-aachen.de/ta-oms/mwo/docs/index.html#$2 [R=303,NE,L]
28-
29-
# mwo v1.0.1
21+
RewriteRule ^(MWO_[0-9]+)$ https://ise-fizkarlsruhe.github.io/mwo/#http://purls.helmholtz-metadaten.de/mwo/$1 [R=303,NE,L]
3022

31-
#Rewrite rules for mwo vocabulary
23+
# Rewrite rule for /mwo to serve HTML content
3224
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
3325
RewriteCond %{HTTP_ACCEPT} text/html [OR]
3426
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
3527
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
36-
RewriteRule ^1.0.1$ https://nfdi-matwerk.pages.rwth-aachen.de/ta-oms/mwo/releases/v1.0.1/docs/ [R=303,L]
28+
RewriteRule ^/?$ https://ise-fizkarlsruhe.github.io/mwo/ [R=303,NE,L]
3729

30+
31+
# Rewrite rule to serve RDF/XML content
3832
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
3933
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
40-
RewriteRule ^1.0.1$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/releases/v1.0.1/mwo.owl [R=303,L]
34+
RewriteRule ^$ https://ise-fizkarlsruhe.github.io/mwo/ontology.owl [R=303,NE,L]
4135

4236
# Default response
43-
# Rewrite rule to serve the RDF/XML content from the mwo IRI by default
44-
RewriteRule ^$ https://git.rwth-aachen.de/nfdi-matwerk/ta-oms/mwo/-/raw/main/mwo.owl [R=303,L]
45-
46-
47-
37+
RewriteRule ^$ https://ise-fizkarlsruhe.github.io/mwo/ontology.owl [R=303,NE,L]

0 commit comments

Comments
 (0)