Skip to content

Commit

Permalink
Merge pull request #4129 from axone-protocol/feat/axone
Browse files Browse the repository at this point in the history
Add entry for Axone protocol
  • Loading branch information
dgarijo authored May 21, 2024
2 parents f8661c4 + c5b78f5 commit 505d5b3
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
37 changes: 37 additions & 0 deletions axone/README.md
Original file line number Diff line number Diff line change
@@ -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: <a.mimart@axone.xyz>
> :octocat: [amimart](https://github.com/amimart)
**Christophe Camel**

> [Axone Association](https://axone.xyz/)
> :email: <c.camel@axone.xyz>
> :octocat: [ccamel](https://github.com/ccamel)
**Axone Association**

> :email: <opensource@axone.xyz>
>
> rue Saint-Honoré 10, c/o Coworking Neuchâtel Sàrl
> 2000 Neuchâtel, Switzerland
74 changes: 74 additions & 0 deletions axone/ontology/.htaccess
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 505d5b3

Please sign in to comment.