https://github.com/nickstenning/dspljson
A work-in-progress JSON dialect for the Dataset Publishing Language (DSPL)
https://github.com/nickstenning/dspljson
Last synced: over 1 year ago
JSON representation
A work-in-progress JSON dialect for the Dataset Publishing Language (DSPL)
- Host: GitHub
- URL: https://github.com/nickstenning/dspljson
- Owner: nickstenning
- Created: 2012-05-15T10:45:19.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-15T12:13:19.000Z (about 14 years ago)
- Last Synced: 2025-02-09T21:12:04.290Z (over 1 year ago)
- Language: CoffeeScript
- Size: 97.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dspljson
========
This is an experimental repository for a JSON dialect of the [Dataset Publishing Language (DSPL)](https://developers.google.com/public-data/). JSON has numerous advantages over XML for client-side parsing, while DSPL is an extensible and robust dataset description format.
At the moment, this repository contains one script: `xml2json`, which reads DSPL XML on `STDIN` and emits JSON on `STDOUT`.
An example translation from the DSPL file `sample.xml` can be found in `sample.json`.
Please note
-----------
This is currently a quick half-hour-hack. `xml2json` does not come close to implementing all of the DSPL specification ([see here for the schema](https://developers.google.com/public-data/docs/schema/dspl9) if you want to help improve `dspljson`).
While this is partially deliberate (I think adding I18N support to the schema adds unnecessary complexity and can be avoided) it's mostly not. If you believe there are important pieces of functionality missing, please fork this repository and issue a pull request.