GithubHelp home page GithubHelp logo

CSV previews about jkan HOT 7 OPEN

timwis avatar timwis commented on May 26, 2024
CSV previews

from jkan.

Comments (7)

timwis avatar timwis commented on May 26, 2024

See first comment in #15

from jkan.

eeeschwartz avatar eeeschwartz commented on May 26, 2024

@timwis perhaps the frontmatter could include an iframe preview url with sensible defaults to geojson.io (#15) or a recline service. But it could also allow a maintainer to point at the previewer of their choice.

To test out possibilities, I created a rough recline example that takes a dataset param like geojson does.

The idea that a maintainer could plug in their own previewer service could help JKAN to be extended nicely.

(And big high fives or this project. It's fantastic.)

from jkan.

timwis avatar timwis commented on May 26, 2024

Thanks @eeeschwartz! And that's an interesting idea. It may not be necessary to do it on a per-dataset level; rather, we could make the "csv previewer" and "geojson previewer" configurable at the site level. The key, I imagine, is to make it easier to plug in your own.

from jkan.

eeeschwartz avatar eeeschwartz commented on May 26, 2024

@timwis it's a good question. Not sure if people would always want different viewers or just in certain cases where the dataset is too big (maps) or hosted differently (google docs versus CKAN or whatever).

I was picturing that people would use the standard viewer 99% of the time until that especially squirrelly dataset comes along. Next step they create and inject the perfect viewer and they're giving toasts at the international IT awards 🏆

But it's mostly speculation on my end. I'll get closer to my various use cases and see where that leads. Cheers

from jkan.

keeganmcbride avatar keeganmcbride commented on May 26, 2024

Hey @timwis have you had any other thoughts on how to approach this? We will start implementing the CSV previews this week on our end.

from jkan.

timwis avatar timwis commented on May 26, 2024

@keeganmcbride I have had some preliminary thoughts about this but not quite settled on a concrete idea. I was thinking it may be worth it to build a service similar to geojson.io but for CSV files which provides an embeddable table. The primary reason for the service would be to add CORS headers. Alternatively, if the JKAN site hosts the CSV files on the same origin or on one that already has CORS headers, we could fetch the data directly. I reckon something like papa parse's streaming method would be good for pulling in large files without crashing the browser tab. What were you thinking about?

from jkan.

keeganmcbride avatar keeganmcbride commented on May 26, 2024

@timwis We decided to just go with a super simple solution (could definitely be improved) that basically just uses OKFN's datapipes for the preview functionality. See, for example, here: https://opendata.riik.ee/andmehulgad/avaliku-korra-vastased-ja-avalikus-kohas-toime-pandud-syyteod/ shout out to the San Diego OGD portal for inspiration for some of the UI

from jkan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.