Skip to content

Commit

Permalink
Merge pull request perma-id#1953 from m-markovic/master
Browse files Browse the repository at this point in the history
Adding redirects to Rains ontology
  • Loading branch information
dgarijo authored Dec 16, 2020
2 parents 7674bc4 + ed4dd65 commit 485ca61
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
45 changes: 45 additions & 0 deletions rains/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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

RewriteEngine on

# Rewrite rule for latest version.
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://rains-uoa.github.io/RAInS-Ontology/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://rains-uoa.github.io/RAInS-Ontology/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://rains-uoa.github.io/RAInS-Ontology/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://rains-uoa.github.io/RAInS-Ontology/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://rains-uoa.github.io/RAInS-Ontology/ontology.ttl [R=303,L]

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


# /rains
This [W3ID](https://w3id.org) provides a persistent URI namespace for the RAInS Ontology.

This [W3ID](https://w3id.org) provides a persistent URI namespace for the System Accountability Ontology.

Redirects:

https://rains-uoa.github.io/RAInS-Ontology/index-en.html

https://rains-uoa.github.io/RAInS-Ontology/ontology.json

https://rains-uoa.github.io/RAInS-Ontology/ontology.xml

https://rains-uoa.github.io/RAInS-Ontology/ontology.ttl

## Uses
The ontology is aimed at providing a vocabulary for planning and collection of accountability related information of AI systems.

## Contact
This space is administered by:

**Milan Markovic** ,
GIthub ID: m-markovic,
https://www.abdn.ac.uk/ncs/profiles/milan.markovic/,
University of Aberdeen, UK

0 comments on commit 485ca61

Please sign in to comment.