News for hackers. Stuff that matters.
Re:New Jersey Open Data Initiative by baldfat on Tuesday January 10, 2017 @11:25PM (#13371739)
It's all about the format:

My city's school district makes images of the spreadsheets and then publishes them in a pdf. USELESS

Re:New Jersey Open Data Initiative by rcthompson on Wednesday January 11, 2017 @12:46AM (#13372048)
Happily, this bill actually does care about the format of the data:

"The policy and procedures shall include ... technical requirements with the goal of making electronic data sets available to the greatest number of users and for the greatest number of applications, including, whenever practicable, the use of machine readable, non-proprietary technical standards for web publishing"

"The Treasurer shall consider various means by which to develop a set of universal data formatting standards to effectuate the purposes of this act, including working with other State departments and agencies, and contracting, if deemed necessary, with nonprofit organizations, commercial vendors or third party groups for this purpose. If such standards are developed and adopted by the Treasurer, they shall be the format that each State department and agency will use to provide existing and future electronic data sets"

Re:New Jersey Open Data Initiative by shakna on Wednesday January 11, 2017 @03:46AM (#13372624)
> the use of machine readable, non-proprietary technical standards for web publishing

Wouldn't that cover PDF, even though it might be deeply inappropriate for it's content? PDF has several ISO standards, and is most definently machine readable.

PDF should also meet the goal as well:

> available to the greatest number of users and for the greatest number of applications

Huge number of PDF clients, such as PDF.js that powers Firefox's reader.

> If such standards are developed and adopted by the Treasurer, they shall be the format that each State department and agency will use to provide existing and future electronic data sets

Knowing how much government uses PDF... It is probably incoming.

But it makes little/no sense for spreadsheet data. Great for graphs and prose, however.

Re:New Jersey Open Data Initiative by baldfat on Wednesday January 11, 2017 @10:32AM (#13374597)
PDF is really a container and can have just about anything inside of it.

https://www.w3.org/2013/04/odw/odw13_submission_52.pdf

PDF with csv attachments is a good compromise but I rarely see that. Usually it is PDF or Excel and the PDF is a nightmare to munge.

Re:New Jersey Open Data Initiative by otoburb on Tuesday January 10, 2017 @11:30PM (#13371757)
While deplorable from an accessibility standpoint, at least the data is available and out in the open to the public. One small step in the right direction.

EDIT: Tabula[1] is an open source tool to extract tables from PDFs into CSV/Excel format in case one really needs to process data trapped in PDF documents.

[1] http://tabula.technology

Re:New Jersey Open Data Initiative by rcthompson on Wednesday January 11, 2017 @12:47AM (#13372051)
Does Tabula do OCR? That's what would be required for tables embedded as images.
Re:New Jersey Open Data Initiative by josephfrazier on Wednesday January 11, 2017 @01:20AM (#13372147)
Unfortunately, it doesn't. From https://github.com/tabulapdf/tabula:

> Caveat: Tabula only works on text-based PDFs, not scanned documents. If you can click-and-drag to select text in your table in a PDF viewer (even if the output is disorganized trash), then your PDF is text-based and Tabula should work.

Re:New Jersey Open Data Initiative by markovbling on Wednesday January 11, 2017 @03:31AM (#13372577)
Tabula is great!
Re:New Jersey Open Data Initiative by closed on Tuesday January 10, 2017 @11:30PM (#13371755)
In their defense, that's still better than most academic publications!
Re:New Jersey Open Data Initiative by koolba on Wednesday January 11, 2017 @10:53AM (#13374777)
> My city's school district makes images of the spreadsheets and then publishes them in a pdf. USELESS

You should be able to sue them for misuse of public funds. Dedicating tax money to convert a useful format (CSV, spreadsheet, etc) into a useless or at least less useful one (ex: PDF) is a clear violation.

Re:New Jersey Open Data Initiative by baldfat on Wednesday January 11, 2017 @11:36AM (#13375130)
It isn't a violation if there isn't any policy or law against it.
Re:New Jersey Open Data Initiative by rhcom2 on Wednesday January 11, 2017 @11:32AM (#13375094)
Had the same problem with NJ. I FOIA'd Chris Christie's schedules and got some of the original PDF reports (which was fine, they were readable with some Python library) and some SCANS of the original PDF reports, even with OCR they were useless.