caltechlibrary / dataset

dataset is a command line tool, Go package, shared library and Python package for working with JSON objects as collections
https://caltechlibrary.github.io/dataset
Other
23 stars 4 forks source link

dsweb could turn a dataset collection into a website sitable for processing with Pandoc #131

Open rsdoiel opened 10 months ago

rsdoiel commented 10 months ago

Peter Sefton has done very interesting works with data crates where a bag can function as a static site. It would be interesting in taking what he has learned and applying it to dataset collections.

The root collection could hold a landing page as well as documentation drawn from collections.json and codemeta.json and a set of default Pandoc templates. Ideally you could take the collection, customize the Pandoc scripts and have it refresh the HTML presentation accordingly. The presumes access to the JSON objects in the collection, so should this be restricted to collections using Pairtree and SQLite3 storage?

If HTML is rendered then pagefind could provide search for the collection.

The dsweb command should allow for a prefix path so a dataset collection could be deployed in an existing website and still be useful.

rsdoiel commented 1 month ago

The Newt work is informative here. I can use YAML model attributes to render web forms and web display. I could also generated TypeScript/JavaScript code for interacting with static content or providing a Deno based web service.