Skip to content

Commit

Permalink
added subject_prefix and object_prefix keys conditionally to metakg c…
Browse files Browse the repository at this point in the history
…onsolidated
  • Loading branch information
NikkiBytes committed Oct 31, 2024
1 parent 98695d4 commit 838b61d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/smartapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def edge_consolidation_build(cls):
"subject": edge["_source"]["subject"],
"object": edge["_source"]["object"],
"predicate": edge["_source"]["predicate"],
"api": [edge_api]
"api": [edge_api],
**{k: edge["_source"][k] for k in ["subject_prefix", "object_prefix"] if k in edge["_source"]}
}

processed_edges += 1
Expand Down

0 comments on commit 838b61d

Please sign in to comment.