-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Said Fathalla
authored and
Said Fathalla
committed
Dec 16, 2024
1 parent
4bc6399
commit e0f21d4
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Contact person name: Tony Amende | ||
# Contact person email: [email protected] | ||
# Artifacts: pcf | ||
# Artifacts Names: Product Carbon Footprint Model | ||
# Resource location: https://healthtrack-x.github.io/pcf-model/ontology.owl | ||
|
||
Options +FollowSymLinks | ||
|
||
# Turn off MultiViews | ||
Options -MultiViews | ||
|
||
# Directive to ensure *.rdf files served as appropriate content type | ||
AddType application/rdf+xml .owl | ||
AddType application/rdf+xml .rdf | ||
AddType text/turtle .ttl | ||
AddType application/n-triples .nt | ||
AddType application/ld+json .jsonld | ||
|
||
RewriteEngine on | ||
|
||
# HTML | ||
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml) | ||
RewriteCond %{HTTP_ACCEPT} text/html [OR] | ||
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR] | ||
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.* | ||
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ [R=303,L] | ||
|
||
# Rewrite rule to serve RDF/XML content | ||
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR] | ||
RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR] | ||
RewriteCond %{HTTP_ACCEPT} ^.*text/xml.* | ||
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.owl [R=303,L] | ||
|
||
# Rewrite rule to serve TTL content | ||
RewriteCond %{HTTP_ACCEPT} text/turtle [OR] | ||
RewriteCond %{HTTP_ACCEPT} text/\* [OR] | ||
RewriteCond %{HTTP_ACCEPT} \*/turtle | ||
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.ttl [R=303,L] | ||
|
||
# JSON-LD | ||
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.* | ||
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.jsonld [R=303,L] | ||
|
||
# N-TRIPLES | ||
RewriteCond %{HTTP_ACCEPT} ^.*application/n-triples.* | ||
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.nt [R=303,L] | ||
|
||
# Default response | ||
# Rewrite rule to serve the RDF/XML content from the diso IRI by default | ||
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.owl [R=303,L] | ||
|