Upstream quirks
This page lists where the lobid-gnd API behaves differently from what its
documentation suggests. The references are the
API page, the
usage policy, and live behavior of the
service at https://lobid.org/gnd. Where a quirk affects
bibliofabric.lobidgnd, the behavior of the client is noted.
Search
- There are no cursors. Search pages with
fromandsize, and the response carries noLinkheader. Iteration walks offset pages ofsizerecords. frompast roughly 10000 answers HTTP 500 (the Elasticsearch result window); atfrom=10000upstream ignores the offset and returns the first page again. The dialect therefore caps the offset at 9999 and raisesConfigurationErrorpast it. For complete result sets, usedownload_jsonl()or a narrower query.size=0is not honored: the answer carries a default page of records.count()sendssize=1and readstotalItems.- A bogus
filtervalue does not raise an error; the answer is a normal envelope withtotalItems: 0. Same for a fielded query against an unknown field (bogusfield:valueanswers 0 results). TheGndFiltermodel exists so typos onentity_typefail on the client side, but any other free-form filter value stays unvalidated. - The reconciliation manifest publishes eight entity types;
GND_ENTITY_TYPESaddsPerson, which the API documentation uses as a filter value. The index also answers broader and more specific ones, for examplefilter=type:Person(which matchesDifferentiatedPersonrecords and answers 4 hits forpreferredName:Twain) andMusicalCorporateBody. sizeaccepts at least 500; the client capspage_sizeat 1000.- Each
memberrecord embeds its own@contextkey. The models absorb it throughextra="allow".
Record lookup
- A missing id answers HTTP 500 with a Spring template error body
(
"Exception evaluating SpringEL expression ...") instead of 404, both forGETandHEAD. The client therefore cannot offerexists(), and a genuinely broken id raisesAPIErrorwith status 500 rather thanNotFoundError. - The direct route answers the record as the JSON-LD body. The same
record is reachable as
.rdf,.ttl, and.nt; the client wraps only the JSON representation. - Field shapes vary between records. Most linked nodes arrive as
{"id": ..., "label": ...}objects, but some records serve plain strings or bare URIs for the same field;IdLabelandSameAsEntrycoerce those.deprecatedUrican be a single URI or a list of them (for records merged into a successor); the model normalizes it to a list.
Bulk JSONL
format=jsonlignoressizeand streams every matching record, one JSON-LD object per line, asapplication/x-jsonlines. A bulk request for a broad query is a full result-set dump; scope the query (q=type:Countryyields about 300 records,q=*yields millions).
Reconciliation service
- The service speaks the Reconciliation Specification 0.1 and 0.2. The
client uses the 0.2 form: one
queriesform parameter whose value is a JSON object keyed by query id. - Candidate ids come back as bare GND numbers (
"118540238"), while records and suggestions identify records asd-nb.infoURIs.
General
- The usage policy asks for at most 6000 simple lookups per minute and 30
complex searches per minute, a descriptive and stable
User-Agent, and client-side caching of at least 12 hours, because the data updates once per day. The client paces at 2 requests per second by default; passmailto=so theUser-Agentcarries a contact address.