Skip to content

Commit

Permalink
sensotwin Change ontology fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
upaehler authored Nov 11, 2024
1 parent 39e6189 commit 4d4003d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sensotwin/applicationontology/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ RewriteEngine On
## ONT_BASE points to the address that delivers your ontology documentation and files, if you
## deploy in the materialdigital github community only 'ontology_publication_template' needs to be changed to your repo
##
SetEnvIf Request_URI ^/sensotwin/applicationontology(.*)$ ONT_BASE=https://mygit.th-deg.de/tcf-public/sensotwin_ontology ONT_VERSION=v1.0.1 ONT_ANCHOR=$1
SetEnvIf Request_URI ^/sensotwin/applicationontology(\d+\.\d+\.\d+)/(.*)$ ONT_VERSION=v$1 ONT_ANCHOR=$2
SetEnvIf Request_URI ^/(.*)$ ONT_BASE=https://mygit.th-deg.de/tcf-public/sensotwin_ontology ONT_VERSION=v1.0.1 ONT_ANCHOR=$1
SetEnvIf Request_URI ^/(\d+\.\d+\.\d+)/(.*)$ ONT_VERSION=v$1 ONT_ANCHOR=$2

# Rewrite rule to serve HTML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
Expand Down Expand Up @@ -55,7 +55,10 @@ RewriteRule ^(.*)$ %{ENV:ONT_BASE}/%{ENV:ONT_VERSION}/ontology.ttl [R=303,L]
RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^.*$ %{ENV:ONT_BASE}/%{ENV:ONT_VERSION}/406.html [R=406,L]


# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^(.*)$ %{ENV:ONT_BASE}/%{ENV:ONT_VERSION}/base_ontology.rdf [R=303,L]


0 comments on commit 4d4003d

Please sign in to comment.