Skip to content

fairscape-artifacts

Turns a finished RO-Crate into pages people can read: an HTML datasheet, an interactive evidence graph, a preview of every entity, and an AI-Ready review. It runs offline on a crate folder. You don’t need a server.

It is the view step of FAIRSCAPE. Run it once your crate is built with fairscape_models or fairscape_conversion.

Install

Terminal window
pip install git+https://github.com/fairscape/fairscape_artifacts

Example

Terminal window
fairscape-artifacts all path/to/crate
path/to/crate/
ro-crate-datasheet.html the datasheet
ro-crate-preview.html every entity in the crate, grouped by kind
ro-crate-evidence-graph.html interactive provenance graph
ro-crate-evidence-graph.json the same graph as data

Each HTML file is self-contained, so you can email it, put it in a Zenodo deposit or serve it from GitHub Pages.

Commands

CommandWhat it does
allBuilds the evidence graph, the review and the datasheet in one pass.
datasheetBuilds the datasheet and preview pages.
evidence-graphBuilds the graph page and its JSON.
reviewRuns the AI-Ready grader and writes the review page.
add-ioWrites EVI:inputs / EVI:outputs onto the crate root. This is the only command that changes the crate.
interpretHas an LLM read the crate’s provenance and code, then writes an annotated summary. all never runs it.

Outputs are written next to the crate unless you pass -d DIR.

Details

  • AI-Ready review. Scores come from the AIreadiness-grader. Install it with pip install "fairscape-artifacts[review]". Without it, every other command still works and the datasheet leaves the review section out.
  • LLM interpretation. Install pip install "fairscape-artifacts[interpret]" and run fairscape-artifacts interpret CRATE --model anthropic:claude-haiku-4-5-20251001 --api-key $ANTHROPIC_API_KEY.
  • Releases and linked crates. A release crate gets one card per sub-crate. A crate linked to an upstream crate gets one evidence graph that spans both. Use --reference OTHER_CRATE to look up ids in a related crate that this one doesn’t point to.

How the graph is built, what the datasheet contains and how PROV-only crates are handled: docs/DETAILS.md.

Source: github.com/fairscape/fairscape_artifacts