This W3ID provides a persistent URI namespace for the AusTraits Plant Dictionary (APD).
The AusTraits Plant Dictionary (APD) is a vocabulary that formally defines more than 500 plant trait concepts. It was developed in conjunction with AusTraits, a database of Australian plant traits.
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.
Suggestions for changes are welcome and can be posted at https://github.com/traitecoevo/APD/issues/.
- https://w3id.org/APD/
- https://w3id.org/APD/traits/
- https://w3id.org/APD/glossary/
- https://w3id.org/APD/releases/
- the
.htaccess
code is written to process calls to variants of the machine-readable representations before any queries tohtml
, i.e.,*.ttl
,*.nq
,*.nt
, and*.json
, before*.html
. This reduces the number ofRewriteCond
statements needed in thehtml
section. - tested with https://htaccess.madewithlove.com (using
https://w3id.org/
as the base URL;https://w3id.org/APD/
won't work, as code is written as though you're already in that subfolder) - the following flags are used
[R=303]
— A redirect. When a server responds with a303
status code, it provides aLocation
pointing to a different URI. The client, upon receiving a303
response, automatically makes aGET
request to the URI specified in theLocation
header.[L]
— If the previous conditions pass, this rule is executed, and no more evaluation is done.[NE]
— (noescape) Prevents conversion of special characters to their hexcode equivalent; needed for links including a#
.
- the following matches are used
RewriteRule ^traits/trait_(.+)$ https://...
- the(.+)
captures the 1 or more characters aftertrait_
in the URLRewriteRule ^ https://...
- captures any URL that hasn't been matched by the previous rules. Same behaviour asRewriteRule ^(.*)$ https://...
. Note behaves differently toRewriteRule ^$ https://...
which would only match the root URL.
Site can be queried with call like the following
curl -L -H "Accept: text/html" https://w3id.org/APD/ -o APD.html
curl -L -H "Accept: text/turtle" https://w3id.org/APD/ -o APD.ttl
curl -L -H "Accept: application/n-triples" https://w3id.org/APD/ -o APD.nt
curl -L -H "Accept: application/n-quads" https://w3id.org/APD/ -o APD.nq
curl -L -H "Accept: application/ld+json" https://w3id.org/APD/ -o APD.json
curl -L -H "Accept: ???" https://w3id.org/APD/ -o APD.html
curl https://w3id.org/APD/ -o APD.html
curl -L -H "Accept: text/html" https://w3id.org/APD/traits/ -o APD.html
curl -L -H "Accept: text/turtle" https://w3id.org/APD/traits/ -o APD.ttl
curl -L -H "Accept: application/n-triples" https://w3id.org/APD/traits/ -o APD.nt
curl -L -H "Accept: application/n-quads" https://w3id.org/APD/traits/ -o APD.nq
curl -L -H "Accept: application/ld+json" https://w3id.org/APD/traits/ -o APD.json
curl -L -H "Accept: ???" https://w3id.org/APD/traits/ -o APD.html
curl https://w3id.org/APD/traits -o APD.html
curl -L -H "Accept: text/html" https://w3id.org/APD/traits/trait_0012512 -o APD.html
curl -L -H "Accept: text/turtle" https://w3id.org/APD/traits/trait_0012512 -o APD.ttl
curl -L -H "Accept: application/n-triples" https://w3id.org/APD/traits/trait_0012512 -o APD.nt
curl -L -H "Accept: application/n-quads" https://w3id.org/APD/traits/trait_0012512 -o APD.nq
curl -L -H "Accept: application/ld+json" https://w3id.org/APD/traits/trait_0012512 -o APD.json
curl -L -H "Accept: ???" https://w3id.org/APD/traits/trait_0012512 -o APD.html
curl https://w3id.org/APD/traits/trait_0012512 -o APD.html
curl -L -H "Accept: text/turtle" https://w3id.org/APD/release/1.0.0/ -o APD_1.0.0.ttl
curl -L -H "Accept: text/html" https://w3id.org/APD/release/1.0.0/ -o APD_1.0.0.html
curl -L -H "Accept: application/n-triples" https://w3id.org/APD/release/1.0.0/ -o APD_1.0.0.nt
curl -L -H "Accept: application/n-quads" https://w3id.org/APD/release/1.0.0/ -o APD_1.0.0.nq
curl -L -H "Accept: application/ld+json" https://w3id.org/APD/release/1.0.0/ -o APD_1.0.0.json
curl https://w3id.org/APD/release/1.0.0/ -o APD_1.0.0.html
Space administered by Daniel Falster (http://github.com/dfalster) via [email protected]