gbv / jskos-proxy

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

jskos.uri not supported for uri.gbv.de/terminology as entrypoint #52

Open StiftungAusNachlass opened 20 hours ago

StiftungAusNachlass commented 20 hours ago

Report from customers: The vocabulary can be accessed and searched online without any problems at uri.gbv.de/terminology. However, the URIs specified in DANTE do not work or are not resolved. The URIs are in field jskos.uri

Examples are:

That means: https://uri.gbv.de/terminology/jfbo_person/ZachF needs to redirect to https://uri.gbv.de/terminology/jfbo_person/?uri=https%3A%2F%2Furi.gbv.de%2Fterminology%2Fjfbo_person%2FZachF or just show the content of https://uri.gbv.de/terminology/jfbo_person/?uri=https%3A%2F%2Furi.gbv.de%2Fterminology%2Fjfbo_person%2FZachF

stefandesu commented 19 hours ago

This seems to be an issue in DANTE particular to the http://uri.gbv.de/terminology/jfbo_person/ and http://uri.gbv.de/terminology/jfbo_org/ vocabularies:

https://api.dante.gbv.de/data?uri=http://uri.gbv.de/terminology/jfbo_person/ZachF

returns no results, while

https://api.dante.gbv.de/data?uri=https://uri.gbv.de/terminology/jfbo_person/ZachF

i.e. the URI starting with https, returns a result, but the uri in the result starts correctly with http (as with all other http://uri.gbv.de/terminology/ URIs). This seems to happen to all URIs from those two vocabularies, but not for other vocabularies.

StiftungAusNachlass commented 19 hours ago

Yes, Problem in DANTE-API. There was a "replace" for whatever reason (certainly a real reason), which replaced https with http, while the records in DANTE have "http". Now https://api.dante.gbv.de/data?uri=https://uri.gbv.de/terminology/jfbo_person/ZachF returns the record.

The Frontend still calls the URI with http --> https://api.dante.gbv.de/data?properties=%2Bcreated,issued,modified,editorialNote,scopeNote,note,definition,mappings,location,location,startPlace,endPlace,startDate,endDate&limit=500&uri=http:%2F%2Furi.gbv.de%2Fterminology%2Fjfbo_person%2FBlumenbachJ&language=en,de,fr,es,nl,it,fi,pl,ru,cs,jp

Does the front end perhaps also have a replace for "https"?