diff --git a/rains/.htaccess b/rains/.htaccess new file mode 100644 index 000000000..30efbe803 --- /dev/null +++ b/rains/.htaccess @@ -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] diff --git a/rains/readme.md b/rains/readme.md new file mode 100644 index 000000000..094b5a301 --- /dev/null +++ b/rains/readme.md @@ -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 +