hbz / lobid-gnd

UI and API to the Integrated Authority File (Gemeinsame Normdatei, GND)
http://lobid.org/gnd
Eclipse Public License 2.0
24 stars 5 forks source link

Support OpenRefine Suggest API #206

Closed acka47 closed 4 years ago

acka47 commented 5 years ago

See https://github.com/OpenRefine/OpenRefine/wiki/Suggest-API

I noticed that we do not provide this while looking at the overview of OpenRefine API endpoints at the "Reconciliation service test bench" provided by @wetneb: https://reconciliation-api.github.io/testbench/

fsteeg commented 4 years ago

Deployed to test, see:

Suggestions:

https://test.lobid.org/gnd/reconcile/suggest/entity?prefix=hbz https://test.lobid.org/gnd/reconcile/suggest/type?prefix=werk https://test.lobid.org/gnd/reconcile/suggest/property?prefix=beruf

Flyouts:

https://test.lobid.org/gnd/reconcile/flyout/entity?id=2047974-8 https://test.lobid.org/gnd/reconcile/flyout/type?id=Work https://test.lobid.org/gnd/reconcile/flyout/property?id=professionOrOccupation

Post about the improvements and updated general documentation:

https://github.com/lobid/lobid.github.com/pull/49

acka47 commented 4 years ago

Everything looks good. I reviewed the JSON and tested it in OpenRefine. I am not quite sure whether it responds quick enough (the API documentation mentions 200ms). When I do a lookup for the first time, it seems to take too long. it is very quick when repeated, though.