-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dedicated concordance field #480
base: master
Are you sure you want to change the base?
Conversation
a bit more info on the code in this PR, the new field is called I think this would be preferable to something like how we do The |
Yeah, this makes a lot of sense, and I really like the idea of querying for concordances on the place endpoint. What do you think would be a good query format for that? My memory is a bit hazy, but I think we should be able to query on those |
Yeah exactly, so it's set to It's currently set to So yeah, basically if you write a
Good question, so you could just Otherwise we could be more explicit and say something like TBH I haven't given that enough thought, neither of those sounds very nice. [edit] due to using an |
I agree that reusing the A I guess all this would complicate the |
👍 we should not use A feature like this would be very interesting, especially with the OSM data 👍 |
ping! @pelias/contributors this PR is a discussion with code attached 🚀
this year has seen some work around recording and exposing 'concordances' (the WOF term for foreign key references).
these concordances are valuable to organisations who also use the foreign ID system and would like an easy way of joining Pelias GIDs with other datasets.
the existing implementation works great, looking at Germany in WOF you can see it returns a treasure trove of useful concordances in the
addendum
.one problem we've identified with using the addendum is that it's (by definition) only semi-structured and comes without many guarantees of correctness or availability.
what would be better is if concordances were more structured and formalised within Pelias so that they could be considered a public API which integrators could rely upon for a 'crosswalk' between datasets.
this PR would potentially open the door for that, it could be combined with a PR to
pelias/model
to perform the validation.the validation rules would need a little thought, but things like casing, delimiters, abbreviations, collisions, etc would need to be considered.
there is also a secondary concern (beyond simply displaying the information), which is that users may also wish to search on these values, this is certainly never going to be possible with the addendum.
introducing a new parameter would need a bit more discussion but what comes to mind is the
/v1/place
endpoint could supportconcordance
lookup, either via the existing?ids=
param or a new one.thoughts?