diff --git a/axone/README.md b/axone/README.md new file mode 100644 index 000000000..f04c67b14 --- /dev/null +++ b/axone/README.md @@ -0,0 +1,37 @@ +# /axone/ + +This [W3ID](https://w3id.org) provides a persistent URI namespace for the [Axone protocol](https://axone.xyz). + +## Redirects + +The following URI redirects are in place: + +- `https://w3id.org/axone/ontology/` ➜ `https://ontology.axone.xyz/` + +## Links + +- [Axone Website](https://axone.xyz/) +- [GitHub](https://github.com/axone-protocol) +- [X](https://twitter.com/axonexyz) +- [Discord](https://discord.gg/axone) + +## Contact + +**Arnaud Mimart** + +> [Axone Association](https://axone.xyz/) +> :email: +> :octocat: [amimart](https://github.com/amimart) + +**Christophe Camel** + +> [Axone Association](https://axone.xyz/) +> :email: +> :octocat: [ccamel](https://github.com/ccamel) + +**Axone Association** + +> :email: +> +> rue Saint-Honoré 10, c/o Coworking Neuchâtel Sàrl +> 2000 Neuchâtel, Switzerland diff --git a/axone/ontology/.htaccess b/axone/ontology/.htaccess new file mode 100644 index 000000000..3076631c9 --- /dev/null +++ b/axone/ontology/.htaccess @@ -0,0 +1,74 @@ +Options +FollowSymLinks +Options -MultiViews + +AddType application/rdf+xml .rdf +AddType application/rdf+xml .owl +AddType text/turtle .ttl +AddType application/n-triples .nt +AddType application/ld+json .json + +RewriteEngine on + +# by extension +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*\.html$ https://docs.axone.xyz/technical-documentation/ontology/the-power-of-ontologies [R=303,NC,QSD,L] +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*\.html$ https://docs.axone.xyz/ontology/schemas/$2-$3-$4 [R=303,NC,QSD,L] +RewriteRule ^v([0-9]+|next)/([\w-]+)(?:/[\w-]*)*$ https://docs.axone.xyz/technical-documentation/ontology/the-power-of-ontologies [R=302,NC,L] + +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*\.ttl$ https://ontology.axone.xyz/v$1/thesaurus/$2.ttl [R=302,NC,L] +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*\.ttl$ https://ontology.axone.xyz/v$1/schema/$3/$2-$3-$4.ttl [R=302,NC,L] + +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*\.jsonld$ https://ontology.axone.xyz/v$1/thesaurus/$2.jsonld [R=302,NC,L] +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*\.jsonld$ https://ontology.axone.xyz/v$1/schema/$3/$2-$3-$4.jsonld [R=302,NC,L] + +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*\.rdf.xml$ https://ontology.axone.xyz/v$1/thesaurus/$2.rdf.xml [R=302,NC,L] +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*\.rdf.xml$ https://ontology.axone.xyz/v$1/schema/$3/$2-$3-$4.rdf.xml [R=302,NC,L] + +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*\.nt$ https://ontology.axone.xyz/v$1/thesaurus/$2.nt [R=302,NC,L] +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*\.nt$ https://ontology.axone.xyz/v$1/schema/$3/$2-$3-$4.nt [R=302,NC,L] + +# by accept-type + +# - Turtle +RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.* +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*$ https://ontology.axone.xyz/v$1/thesaurus/$2.ttl [R=302,NC,L] + +RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.* +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*$ https://ontology.axone.xyz/v$1/schema/$3/$2-$3-$4.ttl [R=302,NC,L] + +# - JSON-LD +RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.* +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*$ https://ontology.axone.xyz/v$1/thesaurus/$2.jsonld [R=302,NC,L] + +RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.* +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*$ https://ontology.axone.xyz/v$1/schema/$3/$2-$3-$4.jsonld [R=302,NC,L] + +# - N-TRIPLES +RewriteCond %{HTTP_ACCEPT} ^.*application/n-triples.* +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*$ https://ontology.axone.xyz/v$1/thesaurus/$2.nt [R=302,NC,L] + +RewriteCond %{HTTP_ACCEPT} ^.*application/n-triples.* +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*$ https://ontology.axone.xyz/v$1/schema/$3/$2-$3-$4.nt [R=302,NC,L] + +# - HTML +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 ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*$ https://docs.axone.xyz/technical-documentation/ontology/the-power-of-ontologies [R=303,NC,QSD,L] + +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 ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*$ https://docs.axone.xyz/technical-documentation/ontology/the-power-of-ontologies [R=303,NC,QSD,L] + +# - RDF/XML +RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR] +RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR] +RewriteCond %{HTTP_ACCEPT} ^.*text/xml.* +RewriteRule ^v([0-9]+|next)/thesaurus/([\w-]+)(?:/[\w-]*)*$ https://ontology.axone.xyz/v$1/thesaurus/$2.rdf.xml [R=302,NC,L] + +RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR] +RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR] +RewriteCond %{HTTP_ACCEPT} ^.*text/xml.* +RewriteRule ^v([0-9]+|next)/schema/(\w+)/([\w-]+)/([\w-]+)(?:/[\w-]*)*$ https://ontology.axone.xyz/v$1/schema/$3/$2-$3-$4.rdf.xml [R=302,NC,L]