fcrepo4-labs / fcrepo-api-x

Fedora API Extension Framework
Apache License 2.0
10 stars 11 forks source link

Create a listing for existing and upcoming extensions #111

Open htpvu opened 7 years ago

htpvu commented 7 years ago

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.

acoburn commented 7 years ago

At Amherst, we list them in an RDF vocabulary: https://acdc.amherst.edu/ns/registry

birkland commented 7 years ago

JHU package ingest extension GitHub repository. TODO: publish to Maven Central, publish service URIs somewhere resolvable under dataconservancy.org, demo.

acoburn commented 7 years ago

@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;
    }
}
birkland commented 7 years ago

Fantastic, that is very helpful @acoburn , thank you very much!

ajs6f commented 7 years ago

SSWAP did some good work in this space, although using too much of it would certainly be overkill.