gbv / wikidata-jskos

Access Wikidata in JSKOS format
https://coli-conc.gbv.de/services/wikidata/
MIT License
6 stars 3 forks source link

mappings: search for notation #11

Closed nichtich closed 5 years ago

nichtich commented 6 years ago

With toScheme (could be a BARTOC ID) and toNotation.

nichtich commented 5 years ago

Despite to and toScheme being documented the implementation is lacking, e.g. try

https://coli-conc.gbv.de/services/wikidata/mappings/?to=11&toScheme=http:%2F%2Furi.gbv.de%2Fterminology%2Fbk%2F

but

https://coli-conc.gbv.de/services/wikidata/mappings/?from=http:%2F%2Fwww.wikidata.org%2Fentity%2FQ34178

It looks like toScheme is ignored or the scheme URI is not known:

https://coli-conc.gbv.de/services/wikidata/mappings/?from=http:%2F%2Fwww.wikidata.org%2Fentity%2FQ34178&toScheme=http:%2F%2Furi.gbv.de%2Fterminology%2Fbk%2F

the service expects BARTOC URIs:

https://coli-conc.gbv.de/services/wikidata/mappings/?from=http:%2F%2Fwww.wikidata.org%2Fentity%2FQ34178&toScheme=http://bartoc.org/en/node/18785

but:

https://coli-conc.gbv.de/services/wikidata/mappings/?to=11&toScheme=http://bartoc.org/en/node/18785

nichtich commented 5 years ago

Search by full URI works:

with JSKOS-Tools we can build URI from notation and scheme, so this is solveable.