linked-places-format icon indicating copy to clipboard operation
linked-places-format copied to clipboard

Add JSON Schema

Open nichtich opened this issue 5 years ago • 3 comments

The structure of this format seems to be documented only through examples and the documentation (e.g. which fields are required, what they must contain...). An additional JSON Schema may help to validate records and guide data creation and curation.

nichtich avatar May 16 '19 07:05 nichtich

Hi @nichtich, I think all of this will come, with time :-) (@kgeographer will know more.) But for the mean time, there is this (interim?) schema that some have started to use for validation:

https://github.com/kgeographer/whgazetteer/blob/master/datasets/static/lpf-schema.json

rsimon avatar May 16 '19 09:05 rsimon

@nichtich Yes, the link is to the last schema I used internally for WHG. The LP model has changed slightly since, so I need to a) update for my internal use, and b) create a CLI python script so anyone can do it. It's a little tricky because so many elements are optional; I'm on the move and expect to have this done within a few weeks. The LP model has seen slight modifications in response to more examples of contributor data.

kgeographer avatar May 16 '19 21:05 kgeographer

Ah, I didn't spot this, and have drafted an as-yet somewhat unorthodox version here that includes various comments and proposals. At @kgeographer's invitation I'm going to add the proposals as Issues on this repo.

docuracy avatar Feb 24 '22 16:02 docuracy