Skip to content

Commit

Permalink
rename variable nodeids to node_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
prohde committed Sep 20, 2023
1 parent ec58bca commit 4ec7340
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FedSDM/rdfmtmgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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,
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit 4ec7340

Please sign in to comment.