-
Notifications
You must be signed in to change notification settings - Fork 9
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
Create a json schema for the model #76
Comments
Great to see those first steps on this! This looks really promising.
What are your general plans on proceeding with this? I would really like to see a conversion (Excel -> (Geo)JSON) and validation tool which we could test against real data, what you think? |
Let me try to puzzle through the topics. YAML versus json schemaI completely see your argument and would say that this be cool to have. Even more so as I expect constant confusion about json files that are schemas and json files that contain data. However, as for the technical implementation, I think that there are a few things to consider. As those points belong directly into the discussion #24 I will those points over there. Collections of locationsI must admit that I am not sure that I understand the challenge here. In my naive view I would say that each excel file would already be a collection of rows and hence locations. What am I missing ? As this sounds like an extension of the model and a "new" feature should we spin up an issue for this ? GeometriesAgain, I must admit that I am not sure that I understand the challenge here. We currently have the possibility to add longitude and latitude. And we can specify if we have point geometries or not. Could you provide an example of what you would find better and what you would like to have. Data conversionAs you might see I have started to validate excels and json data within #79. Once this validations work, I think that a converter would be quite easily feasible. Most crucial would be most likely converters between xlsx, csv, kml and json. However, I suppose that work on this can only really start once we have a machine readable reference (i.e. if #79 is accepted). |
please see my comment in #24
My comment is about at what level we target the specification. Does it specify single entries and validation is done in a loop with no notion of a collection or does it somehow include that notion (e.g. multiple entries that share common information such as "project number").
In Excel, you can only reliably collect point locations. More complex geometries produce a mess, in my POV, however, the specification does not seem to target only point locations (at least, that is not what I experience in practice). How will this be part of the specification, how to convert reliably and how to validate those geometries are all open question which need to be taken care of eventually. |
We now have the specifications for the template fixed within the technical notes. To make progress on this we could use these notes and translate them into a json schema. The advantages of json schema to the markdown format:
Alternatives
I currently do not see any good alternatives. Possible options would be:
xlsx
markdown
not machine readable and hence not able to serve as technical basis for validations.
uml
direct technical implementations
Keeping them compatible requires a common reference / language. This should be digestable across technical implementations. Hence, jsonschema.
I would propose this as first step to see where we can go with this. Comments @Jo-Schie , @Maja4Dev or @goergen95 before I start simple first attempts in this direction ?
Originally posted by @fretchen in #24 (comment)
The text was updated successfully, but these errors were encountered: