55# Resource location: https://gitlab.hzdr.de/hmc/hmc-public/hob/hdo/-/raw/main/hdo.owl
66
77Options +FollowSymLinks
8- AddType application/rdf+xml .rdf .owl
8+ AddType application/rdf+xml .rdf .owl
99
1010RewriteEngine on
11-
12-
11+
12+ #latest release
13+
1314#Rewrite rules for hdo vocabulary (term dereferencing to docs)
1415RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
1516RewriteCond %{HTTP_ACCEPT} text/html [OR]
@@ -20,7 +21,6 @@ RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
2021RewriteRule ^(HDO_[0-9]+)$ https://materials-data-science-and-informatics.github.io/Helmholtz-Digitisation-Ontology-Documentation/index.html#https://purls.helmholtz-metadaten.de/hob/$1 [R=303,NE,L ]
2122
2223
23-
2424# Redirect for hdo terms (e.g. hob/HDO_00004001)
2525RewriteCond %{HTTP_ACCEPT} application/rdf\+xml [OR]
2626RewriteCond %{HTTP_ACCEPT} application/owl\+xml
@@ -29,8 +29,20 @@ RewriteRule ^$ https://codebase.helmholtz.cloud/hmc/hmc-public/hob [R=303,L]
2929
3030# Redirect for hob/hdo
3131RewriteRule ^hdo$ https://gitlab.hzdr.de/hmc/hmc-public/hob/hdo/-/raw/main/hdo.owl [R=303,L ]
32- RewriteRule ^hdo.owl$ https://gitlab.hzdr.de/hmc/hmc-public/hob/hdo/-/raw/main/hdo.owl [R=303,L ]
32+ RewriteRule ^hdo/hdo-full.owl$ https://gitlab.hzdr.de/hmc/hmc-public/hob/hdo/-/raw/main/hdo-full.owl [R=303,L ]
33+ RewriteRule ^hdo/hdo-base.owl$ https://gitlab.hzdr.de/hmc/hmc-public/hob/hdo/-/raw/main/hdo-base.owl [R=303,L ]
34+ RewriteRule ^hdo/hdo.owl$ https://gitlab.hzdr.de/hmc/hmc-public/hob/hdo/-/raw/main/hdo.owl [R=303,L ]
35+
3336
3437# redirects hdo imports
3538RewriteRule ^hdo/imports/(.*)$ https://gitlab.hzdr.de/hmc/hmc-public/hob/hdo/-/raw/main/src/ontology/imports/$1 [R=301 ,NC,L]
3639
40+ #--------------------------------------------------------------
41+
42+ #former releases
43+
44+ # rel 2024-08-14
45+ #RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.*
46+ RewriteRule ^hdo/releases/2024-08-14/hdo.owl$ https://codebase.helmholtz.cloud/hmc/hmc-public/hob/hdo/-/raw/main/releases/2024-08-14/hdo.owl [R=303 ,L]
47+ RewriteRule ^hdo/releases/2024-08-14/hdo-base.owl$ https://codebase.helmholtz.cloud/hmc/hmc-public/hob/hdo/-/raw/main/releases/2024-08-14/hdo-base.owl [R=303 ,L]
48+ RewriteRule ^hdo/releases/2024-08-14/hdo-full.owl$ https://codebase.helmholtz.cloud/hmc/hmc-public/hob/hdo/-/raw/main/releases/2024-08-14/hdo-full.owl [R=303 ,L]
0 commit comments