From 4ec73400cfb0e4f2f98805854a02dd6004c4197f Mon Sep 17 00:00:00 2001 From: Philipp Rohde Date: Wed, 20 Sep 2023 08:47:35 +0200 Subject: [PATCH] rename variable nodeids to node_ids --- FedSDM/rdfmtmgt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FedSDM/rdfmtmgt.py b/FedSDM/rdfmtmgt.py index 678dfd1..1fe1608 100755 --- a/FedSDM/rdfmtmgt.py +++ b/FedSDM/rdfmtmgt.py @@ -292,7 +292,7 @@ def get_rdfmt_details(fed: str, mt: str) -> dict: if len(res) > 0: nodes = {} edges = [] - nodeids = {} + node_ids = {} nodecards = {} nodeswithnocard = [] i = 0 @@ -320,7 +320,7 @@ def get_rdfmt_details(fed: str, mt: str) -> dict: 'weight': r['card'][:r['card'].find('^^')] if 'card' in r and '^' in r['card'] else 10, 'type': 'root' } - nodeids[mt + mdssource] = i + node_ids[mt + mdssource] = i i += 1 if nid+dssource not in nodes: @@ -342,7 +342,7 @@ def get_rdfmt_details(fed: str, mt: str) -> dict: 'weight': weight, 'type': 'square' } - nodeids[nid+dssource] = i + node_ids[nid+dssource] = i i += 1 edges.append({ 'source': mt+mdssource, @@ -374,7 +374,7 @@ def get_rdfmt_details(fed: str, mt: str) -> dict: 'type': 'circle', 'predicateid': nid + dssource } - nodeids[lnid + ldssource] = i + node_ids[lnid + ldssource] = i i += 1 if 'predcard' in r: lcard = r['predcard']