gbv / jskos-proxy

HTTP proxy to serve JSKOS objects
https://uri.gbv.de/terminology/
MIT License
3 stars 2 forks source link

Show distributions to download vocabularies #35

Closed nichtich closed 1 month ago

nichtich commented 1 month ago

A common request is where to download a vocabulary. This information is included in field distribution for some vocabularies for instance http://uri.gbv.de/terminology/bk/ so it should also be shown.

stefandesu commented 1 month ago

How should the distributions be displayed? For BK, there are eight different items in the distributions fields: http://localhost:3555/terminology/bk/?format=jskos They are not really labeled well and sometimes differ only by the download URL. Any ideas?

nichtich commented 1 month ago

Items could be shown like this:

if created is missing use fallback label "download". The format names should be hardcoded. Full list is available via

curl -s https://format.gbv.de/formats.ndjson | jq -c '{key:("http://format.gbv.de/"+.id),value:.title}' | jq -Ss 'from_entries'

but DANTE only supports a hand full of these formats.

stefandesu commented 1 month ago

Can you check https://coli-conc.gbv.de/terminology/ for the current implementation @nichtich?

nichtich commented 1 month ago

Works as expected. Only the label "Distributionen"/"Distributions" should be changed to "Download".