Live data from Hacker News

Frictionless Data: Lightweight standards and tooling for data sharing

frictionlessdata.io

11–20 of 24 posts

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#11
post #2

CSV as serialization format? Ouch. Could we do better? My experience with CSV has been nothing but pain in the past. Ambiguous formats, quoting issues, incompatible libraries between languages and popular GUI tools like Excel or data vis apps. I wonder if there's anything better.

I hate csv so much. Simply opening a csv in Excel and saving it breaks the format so much that most parsers cannot understand it anymore. Plus there is no way to know which encoding the csv came in - Notepad++ might say one thing and PowerShell will say another. Have fun figuring out why cyrrilic characters or umlauts cause issues in your scripts...

>why cyrrilic characters or umlauts cause issues in your scripts...

Any text format can be broken by broken character encoding. I saw plenty of XML being used without any charset declarations. And JSON is in same position as CSV.

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#12
The frictionlessdata landing page has very generalized verbiage so here's my technical summary of it...

The main idea for "container" or "package" hinges on a file called "datapackage.json"[1].

An analogy would be the "sfv" files like "checksums.sfv" for verifying the integrity of files. Since so many people use "sfv" as a defacto standard, many programs exist to scan it and verify the associated files. Another analogy would be DTD for XML files.

Similarly, if everybody could converge on the file "datapackage.json" as a metadata & schema description standard, a useful ecosystem of utilities and libraries for processing data would take advantage of it.

One example library would be: https://github.com/frictionlessdata/datapackage-py

(In the Python source code for "package.py"[2], Ctrl+F search for "datapackage.json" to see how it looks for that particular file.)

With a data wrangling API like that, one could then do joins on csv files directly[3] and write the results to another csv file with the associated "datapackage.json".

Instead of passing "dumb" csv or raw json files around, add a little "intelligence" to the dataset by way of "datapackage.json" so tools can parse the schema and process csv/json at a higher abstraction level. That leads to more "effortless" and "frictionless" data interoperability.

What I can't tell so far is if "datapackage.json" already has momentum of adoption across many communities such as Julia, Tensorflow, Hadoop, etc. and we need to get on the bandwagon -- or -- adoption is still in its infancy and there are other competing data "container/package" specifications to look at.

[1] http://frictionlessdata.io/guides/data-package/

[2] https://github.com/frictionlessdata/datapackage-py/blob/mast...

[3] http://frictionlessdata.io/guides/joining-tabular-data-in-py...

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#13
post #7
post #2

CSV as serialization format? Ouch. Could we do better? My experience with CSV has been nothing but pain in the past. Ambiguous formats, quoting issues, incompatible libraries between languages and popular GUI tools like Excel or data vis apps. I wonder if there's anything better.

Hi, (I work on the Frictionless Data specifications and tooling at Open Knowledge International.) CSV has many, many warts. However, it is the best thing we have right now for serialising data in a way that is easily read by humans (and consumer-grade software) and machines. Libraries like our Tabulator [1] which is used under-the-hood help provide an API to deal with many of the gotcha's when dealing with the format…

Thanks, will have a look at tabulator. I appreciate a list of validators you published on FD site, can help at least a bit when working with non-techies to vet their data before submission.

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#14
post #12

The frictionlessdata landing page has very generalized verbiage so here's my technical summary of it... The main idea for "container" or "package" hinges on a file called "datapackage.json" [1]. An analogy would be the "sfv" files like "checksums.sfv" for verifying the integrity of files. Since so many people use "sfv" as a defacto standard, many programs exist to scan it and verify the associated files. Another anal…

Hi,

(I work on the Frictionless Data specifications and tooling at Open Knowledge International.)

Thanks. We are working on the website at present [1], and we are trying to manage a balance of targeting technical and non-technical users, which is hard to get right.

About momentum - I can address that. We have seen significant momentum in the last 2 years, around open data / government transparency / civic tech ( our natural environment - see https://okfn.org for details ), around scientific / academic research via our work enabled by a grant from Sloan [2]( see http://frictionlessdata.io/case-studies/ for a small selection, more reports coming ), and in general around data wrangling and data science efforts (including integration of Table Schema [3] with Pandas [4]).

In terms of big data / machine learning - we have not actively worked in that space to present.

In terms of Julia, and other languages, we have a Julia library in development via our Tool Fund [5], and this will add to implementations [6] in PHP, Java, R, Clojure which are already underway via the Tool Fund, and accompany the Python, Javascript and Ruby implementations that we maintain directly at Open Knowledge International.

[1]: https://github.com/frictionlessdata/frictionlessdata.io/issu... [2]: https://sloan.org [3]: http://specs.frictionlessdata.io/table-schema/ [4]: https://pandas-docs.github.io/pandas-docs-travis/generated/p... [5]: http://toolfund.frictionlessdata.io [6]: https://github.com/frictionlessdata

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#15
post #14
post #12

The frictionlessdata landing page has very generalized verbiage so here's my technical summary of it... The main idea for "container" or "package" hinges on a file called "datapackage.json" [1]. An analogy would be the "sfv" files like "checksums.sfv" for verifying the integrity of files. Since so many people use "sfv" as a defacto standard, many programs exist to scan it and verify the associated files. Another anal…

Hi, (I work on the Frictionless Data specifications and tooling at Open Knowledge International.) Thanks. We are working on the website at present [1], and we are trying to manage a balance of targeting technical and non-technical users, which is hard to get right. About momentum - I can address that. We have seen significant momentum in the last 2 years, around open data / government transparency / civic tech ( our…

Do you support yaml for people who dislike json?

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#16
post #14

Earlier quoted context omitted.

Hi, (I work on the Frictionless Data specifications and tooling at Open Knowledge International.) Thanks. We are working on the website at present [1], and we are trying to manage a balance of targeting technical and non-technical users, which is hard to get right. About momentum - I can address that. We have seen significant momentum in the last 2 years, around open data / government transparency / civic tech ( our…

Do you support yaml for people who dislike json?

Hi. One could read the YAML first with the library of choice, and then load into Data Package or Table Schema libraries.

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#18
post #10

Earlier quoted context omitted.

I hate csv so much. Simply opening a csv in Excel and saving it breaks the format so much that most parsers cannot understand it anymore. Plus there is no way to know which encoding the csv came in - Notepad++ might say one thing and PowerShell will say another. Have fun figuring out why cyrrilic characters or umlauts cause issues in your scripts...

Problem is not CSV, it's Excel. It's hard to blame format, when application is insane enough to use locale settings to determine file parsing

[deleted]

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#19
post #2

CSV as serialization format? Ouch. Could we do better? My experience with CSV has been nothing but pain in the past. Ambiguous formats, quoting issues, incompatible libraries between languages and popular GUI tools like Excel or data vis apps. I wonder if there's anything better.

Avro?

Re: Frictionless Data: Lightweight standards and tooling for data sharing

#20
This is an overly complicated data container format for not much advantage. To be honest, everything you can do with this can be done at the same level or better with SQLite, an actual database system. Having to implement 4 different parers and validation functions spanning a mix of csv, xml and json just to access what is essentially a csv file is not feasible.
Post reply on HN