From 838b61dab5d60a36426d59fe169fec44eedb9446 Mon Sep 17 00:00:00 2001 From: Nichollette Date: Thu, 31 Oct 2024 14:30:55 -0400 Subject: [PATCH] added subject_prefix and object_prefix keys conditionally to metakg consolidated --- src/controller/smartapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controller/smartapi.py b/src/controller/smartapi.py index 68829c8..c5e1bf0 100644 --- a/src/controller/smartapi.py +++ b/src/controller/smartapi.py @@ -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