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

hasGeometry for PlaceOrGeographicName? #375

Closed MichaelMarkert closed 4 months ago

MichaelMarkert commented 4 months ago

Hi there,

I try to request the hasGeometry=>asWKT element via the Data extension API, but http://lobid.org/gnd/reconcile/properties?type=PlaceOrGeographicName does not mention hasGeometry while it is in the data, see e.g. http://lobid.org/gnd/4028557-1.json. Am I missing something?

fsteeg commented 4 months ago

Currently data extension is only supported for top-level fields, which can contain strings or objects with an id field, but not for other objects or nested fields.

(If you're working with OpenRefine, fetching the full JSON from a URL based on the reconciled ID and using parseJson to get the asWKT field might be a workaround.)

MichaelMarkert commented 4 months ago

Thanks and good to know! This is what I do (in a Python script) but I thought it might be more effective via data extension.