frictionlessdata / tableschema-sql-py

Generate SQL tables, load and extract data, based on JSON Table Schema descriptors.
MIT License
61 stars 19 forks source link

Is there a package which only has an abstract model of JTS? #3

Closed pudo closed 8 years ago

pudo commented 9 years ago

Without any data parsing code etc, just a schema validator and object to reflect it.

rufuspollock commented 9 years ago

Not in python - but there should be one. I note there are JSON schemas for JSON Table Schema here:

https://github.com/dataprotocols/schemas

pwalsh commented 9 years ago

Hey @pudo

As @rgrp points out, there is this JSON Schema for JTS, it does not cover the whole spec - see my notes here. Using this is Python to do what you want is straightforward: use the Python JSON Schema lib with it.

This should definitely replace the validator I coded in JTSKit, so if you want to do a PR for this there please do. This ensures we all use the same validation code (Python and JS libs), and then we need to iterate on this schema to get it up-to-date with recent changes to the spec and some other points I raised in the issue linked to above.

Hope that helps.

pudo commented 9 years ago

I understand wrt. the JSON Schema part, I was just looking for something lightweight that implements utility classes like Schema and Field which also set sensible defaults etc. I guess that's JTSKit, see #4 for my confusion on that topic.

pwalsh commented 8 years ago

This is relevant for https://github.com/okfn/jsontableschema-py and probably more specifically for https://github.com/okfn/jsontableschema-py/issues/34

I'd say any remaining issues about that API should be raised as issues there.

Closing.