forked from perma-id/w3id.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created fso folder and added 2 files
- Loading branch information
1 parent
2e38b20
commit 7df1254
Showing
2 changed files
with
78 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,65 @@ | ||
RewriteEngine on | ||
|
||
# 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 rules for latest version | ||
# 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://w3c-lbd-cg.github.io/fso [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://w3c-lbd-cg.github.io/fso.ttl [R=303,L] | ||
|
||
# If suffix ttl, redirect to turtle version | ||
RewriteRule ^fso.ttl$ https://w3c-lbd-cg.github.io/fso.ttl [R=303,L] | ||
|
||
# If suffix html, redirect to html version | ||
RewriteRule ^fso.html$ https://w3c-lbd-cg.github.io/fso [R=303,L] | ||
|
||
|
||
### Rewrite rules for other serialisation (if they get converted) | ||
## Rewrite rule to serve JSON-LD content from the vocabulary URI if requested | ||
#RewriteCond %{HTTP_ACCEPT} application/ld\+json | ||
#RewriteRule ^$ https://w3c-lbd-cg.github.io/fso.jsonld [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://w3c-lbd-cg.github.io/fso.rdf [R=303,L] | ||
|
||
## Rewrite rule to serve N-Triples content from the vocabulary URI if requested | ||
#RewriteCond %{HTTP_ACCEPT} application/n-triples | ||
#RewriteRule ^$ https://w3c-lbd-cg.github.io/fso.nt [R=303,L] | ||
|
||
|
||
## If suffix rdf, redirect to rdf version | ||
#RewriteRule ^fso.rdf$ https://w3c-lbd-cg.github.io/fso.rdf [R=303,L] | ||
|
||
## If suffix jsonld, redirect to jsonld version | ||
#RewriteRule ^fso.jsonld$ https://w3c-lbd-cg.github.io/fso.jsonld [R=303,L] | ||
|
||
## If suffix nt, redirect to nt version | ||
#RewriteRule ^fso.nt$ https://w3c-lbd-cg.github.io/fso.nt [R=303,L] | ||
|
||
|
||
### Rewrite rules for any other version | ||
|
||
|
||
### Default response | ||
RewriteRule ^$ https://w3c-lbd-cg.github.io/fso [R=303,L] |
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,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]> |