Skip to content

Commit

Permalink
Merge branch 'perma-id:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ahemaid authored Dec 5, 2023
2 parents b290531 + ca0a62f commit f778d33
Show file tree
Hide file tree
Showing 440 changed files with 8,721 additions and 887 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
*.sw[nop]
*~
.DS_Store
.vscode
3 changes: 2 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
Options +FollowSymLinks
RewriteEngine on

# redirect here vs in a UN directory due to case insensitive file systems issue
# special directory redirects due to case insensitive file systems issues
RewriteRule ^AIRO(.*)$ /airo$1
RewriteRule ^UN(.*)$ /un$1
22 changes: 19 additions & 3 deletions 303/.htaccess
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# Rewrite engine setup
RewriteEngine On
DirectorySlash Off
RewriteOptions AllowNoSlash

RewriteCond %{HTTP:Accept} text/html [NC]
RewriteRule ^$ https://github.com/athalhammer/303voc/ [R=303,L]
# All machine-readable versions should be referred to by a generic document
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP:Accept} text/turtle [NC,OR]
RewriteCond %{HTTP:Accept} application/ld\+json [NC]
RewriteRule . https://w3id.org/303/doc [R=303,L]

RewriteRule ^$ https://athalhammer.github.io/303voc/303.ttl [R=303,L]
# Default to the HTML representation.
# As it is very different from the machine readable representations --> direct 303, no link via generic document
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . https://github.com/athalhammer/303voc/ [R=303,L]

# Turtle version of generic doc
RewriteCond %{HTTP:Accept} text/turtle [NC]
RewriteRule ^doc$ https://athalhammer.github.io/303voc/303.ttl [R=302,L]

# JSON-LD version of generic doc
RewriteCond %{HTTP:Accept} application/ld\+json [NC]
RewriteRule ^doc$ https://athalhammer.github.io/303voc/303.jsonld [R=302,L]
15 changes: 15 additions & 0 deletions 5s-crate/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
AddType application/ld+json .jsonld

RewriteEngine on

# Documentation/paper
RewriteRule ^$ https://trefx.uk/5s-crate/ [R=303,L]


# Crate profile (versioned)
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.*
# JSON-LD manifest
RewriteRule ^(\d+\.\d+)$ https://trefx.uk/5s-crate/$1/ro-crate-metadata.jsonld [R=302,L]
# HTML as default
RewriteRule ^(\d+\.\d+)$ https://trefx.uk/5s-crate/$1/ [R=302,L]

14 changes: 14 additions & 0 deletions 5s-crate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Five Saes RO-Crate profile

Currently managed by the [TRE-FX](https://trefx.uk/) project.

Primary contacts:
- Stian Soiland-Reyes @stain
- Tom Giles @thomgiles

Permalinks (examples):
* https://w3id.org/5s-crate
* https://w3id.org/5s-crate/0.4



30 changes: 0 additions & 30 deletions AIRO/.htaccess

This file was deleted.

13 changes: 0 additions & 13 deletions AIRO/README.md

This file was deleted.

49 changes: 49 additions & 0 deletions APD/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 .nt
AddType application/n-quads .nq
AddType application/ld+json .json
AddType application/ld+json .jsonld

RewriteEngine on

# Rewrite rule to serve 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 ^$ https://traitecoevo.github.io/APD/index.html [R=303,L]

# Rewrite rule to serve JSON-LD
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.json [R=303,L]

# Rewrite rule to serve RDF/XML
# RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
# RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
# RewriteRule ^$ https://traitecoevo.github.io/APD/APD.xml [R=303,L]

# Rewrite rule to serve N-Triples
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.nt [R=303,L]

# Rewrite rule to serve N-Quads
RewriteCond %{HTTP_ACCEPT} application/n-quads
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.nq [R=303,L]

# Rewrite rule to serve TTL
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.ttl [R=303,L]

# Default response
# ---------------------------
# default response is the documentation page
RewriteRule ^$ https://traitecoevo.github.io/APD/ [R=303,L]
21 changes: 21 additions & 0 deletions APD/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
This W3ID provides a persistent URI namespace for the AusTraits Plant Dictionary (APD).
# AusTraits Plant Dictionary (APD)
The AusTraits Plant Dictionary (APD) is a vocabulary that formally defines the more than 500 plant trait concepts used by [AusTraits](https://austraits.org), a database of Australian plant traits. Over time it is expected to expand to include additional trait concepts. Each trait definition has been reviewed by multiple people and includes references and links to identical/similar traits in other trait databases whenever possible. The APD includes machine-readable formats and endpoints, allowing the traits to be readily re-used by other databases.

## Vocabularies

* https://w3id.org/APD/traits
* https://w3id.org/APD/glossary
* https://w3id.org/APD/ontology/


## Homepage

* https://w3id.org/APD/
* http://austraits.org
* https://github.com/traitecoevo/APD/

## Contact

Space administered by Daniel Falster (http://github.com/dfalster) via <[email protected]>

44 changes: 44 additions & 0 deletions APD/glossary/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 .nt
AddType application/n-quads .nq
AddType application/ld+json .json
AddType application/ld+json .jsonld

RewriteEngine on

# Rewrite rule to serve 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 ^(.+)$ https://traitecoevo.github.io/APD/#$1 [R=303,L,NE]

# Rewrite rule to serve JSON-LD
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.json [R=303,L]

# Rewrite rule to serve N-Triples
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.nt [R=303,L]

# Rewrite rule to serve N-Quads
RewriteCond %{HTTP_ACCEPT} application/n-quads
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.nq [R=303,L]

# Rewrite rule to serve TTL
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.ttl [R=303,L]

# Default response
# ---------------------------
# default response is the documentation page
RewriteRule ^$ https://traitecoevo.github.io/APD/ [R=303,L]
78 changes: 78 additions & 0 deletions APD/release/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# 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 .nt
AddType application/n-quads .nq
AddType application/ld+json .json
AddType application/ld+json .jsonld

RewriteEngine on

############################## Rules for Previous Versions ##############################

# Rewrite rule to serve 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/.*
RewriteCond %{REQUEST_URI} /release/(\d+)\.(\d+)\.(\d+)
RewriteRule ^ https://traitecoevo.github.io/APD/release/%1.%2.%3/index.html [R=303,L]

# Rewrite rule to serve JSON-LD
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteCond %{REQUEST_URI} /release/(\d+)\.(\d+)\.(\d+)
RewriteRule ^ https://traitecoevo.github.io/APD/release/%1.%2.%3/APD.json [R=303,L]

# Rewrite rule to serve N-Triples content
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteCond %{REQUEST_URI} /release/(\d+)\.(\d+)\.(\d+)
RewriteRule ^ https://traitecoevo.github.io/APD/release/%1.%2.%3/APD.nt [R=303,L]

# Rewrite rule to serve N-Quads
RewriteCond %{HTTP_ACCEPT} application/n-quads
RewriteCond %{REQUEST_URI} /release/(\d+)\.(\d+)\.(\d+)
RewriteRule ^ https://traitecoevo.github.io/APD/release/%1.%2.%3/APD.nq [R=303,L]

# Rewrite rule to serve TTL content
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteCond %{REQUEST_URI} /release/(\d+)\.(\d+)\.(\d+)
RewriteRule ^ https://traitecoevo.github.io/APD/release/%1.%2.%3/APD.ttl [R=303,L]

############################## Rules for Latest Versions ##############################

# Rewrite rule to serve 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 ^$ https://traitecoevo.github.io/APD/index.html [R=303,L]

# Rewrite rule to serve JSON-LD
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.json [R=303,L]

# Rewrite rule to serve N-Triples content
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.nt [R=303,L]

# Rewrite rule to serve N-Quads content
RewriteCond %{HTTP_ACCEPT} application/n-quads
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.nq [R=303,L]

# Rewrite rule to serve TTL content
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.ttl [R=303,L]

# Default responses
# ---------------------------
# default response is back to the root(s)
ErrorDocument 404 https://w3id.org/APD/
46 changes: 46 additions & 0 deletions APD/traits/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 .nt
AddType application/n-quads .nq
AddType application/ld+json .json
AddType application/ld+json .jsonld

RewriteEngine on

# Rewrite rule to serve 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 ^(.+)$ https://traitecoevo.github.io/APD/#$1 [R=303,L,NE]

# Omitting the [NE] in above will result in the # being converted to its hexcode equivalent, %23, which will then result in a 404 Not Found error condition.

# Rewrite rule to serve JSON-LD
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.json [R=303,L]

# Rewrite rule to serve N-Triples
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.nt [R=303,L]

# Rewrite rule to serve N-Quads
RewriteCond %{HTTP_ACCEPT} application/n-quads
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.nq [R=303,L]

# Rewrite rule to serve TTL
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://traitecoevo.github.io/APD/APD.ttl [R=303,L]

# Default response
# ---------------------------
# default response is the documentation page
RewriteRule ^$ https://traitecoevo.github.io/APD/ [R=303,L]
2 changes: 1 addition & 1 deletion BIGOWL4DQ/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^(.+) https://proyectoaether.github.io/BIGOWL/index.html#$1 [R=303,NE]
RewriteRule ^(.+) https://proyectoaether.github.io/BIGOWL4DQ/index.html#$1 [R=303,NE]

RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^(.+) https://raw.githubusercontent.com/ProyectoAether/BIGOWL4DQ/main/bigowl4dq.owl [R=302,NE,L]
Expand Down
Loading

0 comments on commit f778d33

Please sign in to comment.