verify_chain
Check a published FORRT chain for completeness and consistency: confirm every required step has a resolving URI, cited DOIs resolve, and the CiTO relation matches the outcome verdict.
Instructions
Verify a published FORRT chain. Run this before announcing it anywhere.
Point it at a nanopubs/PUBLISHED.md ledger (or the directory holding one).
Read-only: it never edits, retracts or supersedes — a failing row is for a
human to act on. green is true only when nothing failed.
What it checks:
every required step (01-06) has a URI in the ledger;
every URI is really published — present in the constellation, or, for the upstream anchors the walk does not reach, served as RDF by the
w3id.org/np/resolver;the Outcome's repository resolves (a Zenodo version DOI is the expected value — it pins the archived state, where a GitHub URL would be a moving target);
every DOI the chain cites resolves;
the CiTO relation agrees with the Outcome's verdict — Validated implies confirms, PartiallySupported implies qualifies, Contradicted implies disputes. A mismatch means the Outcome and the Citation disagree about what the replication found, which is the failure most worth catching before anyone reads the chain.
A step reported as "not enumerated by the walk but its TriG resolves" is fine, not a warning: the constellation legitimately stops short of Quote, AIDA and Claim.
mode — auto (default), replication, reproduction or new_research.
It changes only what is REQUIRED. Research that starts from scratch has no
existing work to cite, so no CiTO step and no cited DOI are expected, and
auto infers that from the absence of a published step 06. Everything else
is checked identically in all three. Reproduction and replication verify the
same way; pass one explicitly only to make the wording match your study.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| repo_url | No | ||
| published_path | Yes |