verify_chain
Check a published FORRT chain before announcing it: confirm required step URIs and cited DOIs resolve, and that the CiTO relation matches the Outcome verdict, flagging failures for review.
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. Only the ledger's own Outcome and CiTO are judged: the relation→target pairs come from the step-06 TriG, and the relation that counts is the one on the paper the Quote quotes. Other chains the walk reached (several chains often cite the same paper) are listed as
neighbours, never judged.
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 |