# resolve-entity-across-sources.rq # ----------------------------------------------------------------------------- # One concept, four source names — returns every source document that # named the same canonical artifact, so a reviewer can see that Atlas's # graph has collapsed all four into one identity. # # Parameters: # $artifactName — atlas:artifactName on the canonical node # (e.g. "BAPI_PO_CREATE1") PREFIX atlas: PREFIX rdfs: SELECT ?canonical ?sourceURL ?topicType ?label ?fetchedAt WHERE { # the canonical artifact ?canonical atlas:artifactName $artifactName . # every document that references it ?doc a atlas:Document ; atlas:references ?canonical ; atlas:sourceURL ?sourceURL ; atlas:fetchedAt ?fetchedAt ; atlas:topicType ?topicType . # the label each source used (from the document section) ?doc atlas:hasSection ?section . ?section rdfs:label ?label . } ORDER BY DESC(?fetchedAt)