# walk-plan-dependencies.rq # ----------------------------------------------------------------------------- # Walk a plan's full dependency graph — every step, in the deterministic # order Atlas built them, together with the artifact each one operates on. # # Parameters: # $plan — the plan's IRI (e.g. ) PREFIX atlas: SELECT ?step ?order ?artifact ?artifactName ?dependsOn WHERE { $plan atlas:hasStep ?step . ?step atlas:stepOrder ?order ; atlas:involvesArtifact ?artifact . ?artifact atlas:artifactName ?artifactName . OPTIONAL { ?step atlas:dependsOnStep ?dependsOn . } } ORDER BY ?order