Skip to content

Commit e0f21d4

Browse files
Said FathallaSaid Fathalla
authored andcommitted
add pcf ontology namespace
1 parent 4bc6399 commit e0f21d4

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

pcf/.htaccess

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Contact person name: Tony Amende
2+
# Contact person email: tony.amende@gmail.com
3+
# Artifacts: pcf
4+
# Artifacts Names: Product Carbon Footprint Model
5+
# Resource location: https://healthtrack-x.github.io/pcf-model/ontology.owl
6+
7+
Options +FollowSymLinks
8+
9+
# Turn off MultiViews
10+
Options -MultiViews
11+
12+
# Directive to ensure *.rdf files served as appropriate content type
13+
AddType application/rdf+xml .owl
14+
AddType application/rdf+xml .rdf
15+
AddType text/turtle .ttl
16+
AddType application/n-triples .nt
17+
AddType application/ld+json .jsonld
18+
19+
RewriteEngine on
20+
21+
# HTML
22+
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
23+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
24+
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
25+
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
26+
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ [R=303,L]
27+
28+
# Rewrite rule to serve RDF/XML content
29+
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
30+
RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR]
31+
RewriteCond %{HTTP_ACCEPT} ^.*text/xml.*
32+
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.owl [R=303,L]
33+
34+
# Rewrite rule to serve TTL content
35+
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
36+
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
37+
RewriteCond %{HTTP_ACCEPT} \*/turtle
38+
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.ttl [R=303,L]
39+
40+
# JSON-LD
41+
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.*
42+
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.jsonld [R=303,L]
43+
44+
# N-TRIPLES
45+
RewriteCond %{HTTP_ACCEPT} ^.*application/n-triples.*
46+
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.nt [R=303,L]
47+
48+
# Default response
49+
# Rewrite rule to serve the RDF/XML content from the diso IRI by default
50+
RewriteRule ^$ https://healthtrack-x.github.io/pcf-model/ontology.owl [R=303,L]
51+

0 commit comments

Comments
 (0)