Skip to content

Commit 4bc6399

Browse files
authored
add version IRIs for hdo
1 parent 328b9b5 commit 4bc6399

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

hob/.htaccess

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
# Resource location: https://gitlab.hzdr.de/hmc/hmc-public/hob/hdo/-/raw/main/hdo.owl
66

77
Options +FollowSymLinks
8-
AddType application/rdf+xml .rdf .owl
8+
AddType application/rdf+xml .rdf .owl
99

1010
RewriteEngine on
11-
12-
11+
12+
#latest release
13+
1314
#Rewrite rules for hdo vocabulary (term dereferencing to docs)
1415
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml|text/\*|\*/\*)
1516
RewriteCond %{HTTP_ACCEPT} text/html [OR]
@@ -20,7 +21,6 @@ RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
2021
RewriteRule ^(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)
2525
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml [OR]
2626
RewriteCond %{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
3131
RewriteRule ^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
3538
RewriteRule ^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

Comments
 (0)