Skip to content

Commit

Permalink
Merge pull request perma-id#1538 from alikucukavci/master
Browse files Browse the repository at this point in the history
created fso folder and added 2 files
  • Loading branch information
dgarijo authored Nov 6, 2019
2 parents 6304172 + 0926a37 commit 1f959af
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
47 changes: 47 additions & 0 deletions fso/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Turn off MultiViews
Options -MultiViews

# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/ld+json .json
# Rewrite engine setup
RewriteEngine On
#Change the path to the folder here
RewriteBase /docs

# Rewrite rule to serve HTML content from the vocabulary URI if requested
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://alikucukavci.github.io/FSO/index-en.html [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://alikucukavci.github.io/FSO/ontology.json [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://alikucukavci.github.io/FSO/ontology.xml [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://alikucukavci.github.io/FSO/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://alikucukavci.github.io/FSO/ontology.ttl [R=303,L]

RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^$ 406.html [R=406,L]
# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^$ https://alikucukavci.github.io/FSO/ontology.xml [R=303,L]
13 changes: 13 additions & 0 deletions fso/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## The Building Topology Ontology (BOT)

Ontology

* Doc https://w3c-lbd-cg.github.io/fso/
* Turtle https://w3c-lbd-cg.github.io/fso/fso.ttl


Contacts

* Mads Holten Rasmussen <[email protected]>
* Ali Kücükavci <[email protected]>
* Ville Kukkonen <[email protected]>

0 comments on commit 1f959af

Please sign in to comment.