From 9aafd431486b33140f943db764dae8a5aab80374 Mon Sep 17 00:00:00 2001 From: Maximilian Huber Date: Tue, 7 Nov 2023 19:10:19 +0100 Subject: [PATCH] add "@context" for context.json file Signed-off-by: Maximilian Huber --- spec_parser/owl_to_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec_parser/owl_to_context.py b/spec_parser/owl_to_context.py index 1270ada..99ea7c9 100644 --- a/spec_parser/owl_to_context.py +++ b/spec_parser/owl_to_context.py @@ -85,7 +85,7 @@ def convert_spdx_owl_to_jsonld_context(spdx_owl: str, out_dir: str): fname = path.join(out_dir, "context.json") with open(fname, "w") as f: - json.dump(context_dict, f) + json.dump({ "@context": context_dict}, f) def get_name_from_node_id(node_id) -> str: