# evidence-trail-export.rq # ----------------------------------------------------------------------------- # Export every evidence statement attached to a plan — the exact query # `atlas evidence --format jsonld` runs under the hood. Output is paired # claims and their supporting document sections, with provenance. # # Parameters: # $plan — the plan's IRI (e.g. ) PREFIX atlas: PREFIX rdfs: CONSTRUCT { ?claim ?p ?o ; atlas:supportedByStatement ?section . ?section atlas:sourceURL ?url ; atlas:contentHash ?hash ; atlas:fetchedAt ?ts ; rdfs:label ?label . } WHERE { # every claim in the plan's transitive closure $plan (atlas:hasStep|atlas:involvesArtifact|^atlas:generatedFrom)+ ?claim . ?claim ?p ?o ; atlas:supportedByStatement ?section . ?section atlas:sourceURL ?url ; atlas:contentHash ?hash ; atlas:fetchedAt ?ts ; rdfs:label ?label . }