opendatacache icon indicating copy to clipboard operation
opendatacache copied to clipboard

Create data.json for each cached portal

Open jqnatividad opened this issue 10 years ago • 3 comments

see https://project-open-data.cio.gov/catalog/

One way this could be done is by fetching the existing data.json on the Socrata portal (e.g. https://nycopendata.socrata.com/data.json) and then transforming the URLs to their opendatacache equiv thru some regex, and then mounting the data.json on opendata.cache, e.g. http://www.opendatacache.com/data.cityofnewyork.us/data.json

jqnatividad avatar Jul 14 '15 15:07 jqnatividad

I'm not clear what you're suggesting. If it's caching the existing Socrata data.json file at the suggested URL, that's just a matter of slightly updating the proxy setup in nginx.

If it's a transformation of Socrata's data.json, I'm curious what that transformation is, and what the value add is.

talos avatar Jul 24 '15 18:07 talos

It's the latter - a transform of the data.json with the opendatacache url instead of the socrata url.

In this way, if I want to harvest the data and use data.json, its pretty straightforward and it doubles as the lightweight "API"/manifest of the opendatacached site.

jqnatividad avatar Aug 12 '15 15:08 jqnatividad

OK -- I get it. You're talking about an opendatacache data.json for each mirrored portal, with links to opendatacache URLs for each entry instead of the original socrata url?

talos avatar Aug 13 '15 10:08 talos