@@ -120,13 +120,12 @@ def _extract_graph_data(rdf_graph: Graph) -> tuple[nx.DiGraph, dict, dict]:
120120 for row in query_to_dicts (rdf_graph , q ):
121121 G .add_edge (row ["reqName" ], row ["elementName" ], rel = "satisfiedBy" )
122122
123- # --- Evidence nodes ---
123+ # --- Evidence nodes (linked via rtm:addresses) ---
124124 q = """
125125 SELECT ?ev ?type ?hash ?reqName WHERE {
126126 ?ev a ?type ;
127127 rtm:contentHash ?hash ;
128- prov:wasGeneratedBy ?act .
129- ?act prov:used ?req .
128+ rtm:addresses ?req .
130129 ?req sysml:declaredName ?reqName .
131130 FILTER(?type IN (rtm:ProofArtifact, rtm:SimulationResult))
132131 }
@@ -142,7 +141,7 @@ def _extract_graph_data(rdf_graph: Graph) -> tuple[nx.DiGraph, dict, dict]:
142141 G .add_node (node_id , label = label )
143142 node_colors [node_id ] = color
144143 node_types [node_id ] = "evidence"
145- G .add_edge (row ["reqName" ], node_id , rel = "evidence " )
144+ G .add_edge (row ["reqName" ], node_id , rel = "addresses " )
146145
147146 # --- Attestation nodes ---
148147 q = """
@@ -261,7 +260,7 @@ def _hierarchical_layout(
261260 ev_nodes = sorted ([n for n , t in node_types .items () if t == "evidence" ])
262261 ev_req_map : dict [str , str ] = {}
263262 for u , v , data in G .edges (data = True ):
264- if data .get ("rel" ) == "evidence " and v in ev_nodes :
263+ if data .get ("rel" ) == "addresses " and v in ev_nodes :
265264 ev_req_map [v ] = u
266265
267266 # Group evidence by requirement, then stack vertically near that requirement
@@ -300,7 +299,7 @@ def build_rtm_figure(
300299 edge_styles = {
301300 "derivedFrom" : {"style" : "solid" , "color" : "#888888" , "width" : 1.5 },
302301 "satisfiedBy" : {"style" : "solid" , "color" : "#555555" , "width" : 1.5 },
303- "evidence " : {"style" : "dashed" , "color" : "#999999" , "width" : 1.0 },
302+ "addresses " : {"style" : "dashed" , "color" : "#999999" , "width" : 1.0 },
304303 "attests" : {"style" : "solid" , "color" : COLORS ["attestation" ], "width" : 2.0 },
305304 }
306305
0 commit comments