Open htpvu opened 7 years ago
At Amherst, we list them in an RDF vocabulary: https://acdc.amherst.edu/ns/registry
JHU package ingest extension GitHub repository. TODO: publish to Maven Central, publish service URIs somewhere resolvable under dataconservancy.org, demo.
@birkland in case this is useful, here is the repo we use to define this (and other) RDF vocabs: https://gitlab.amherst.edu/acdc/acrepo-ontology
The vocabs are maintained in TTL format, and a python script is used to generate the alternate formats (ld+json, rdf+xml, html).
Then, on the nginx server, this is the configuration:
map $http_accept $rdf_suffix {
default ".ttl";
"text/turtle" ".ttl";
"application/ld+json" ".jsonld";
"application/json" ".jsonld";
"application/rdf+xml" ".rdf";
"~text/html" ".html";
}
server {
...
# Local vocabularies are defined here
location /ns {
add_header Vary Accept;
try_files $uri $uri$rdf_suffix $uri.ttl $uri/index.html =404;
alias /path/to/directory;
}
}
Fantastic, that is very helpful @acoburn , thank you very much!
SSWAP did some good work in this space, although using too much of it would certainly be overkill.
This issue would cover the creation of a GitHub page or better fitting alternative which lists extensions that have been implemented and available, as well as those that are going to be available soon.