Skip to content

Commit

Permalink
add "@context" for context.json file
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Huber <maximilian.huber@tngtech.com>
  • Loading branch information
maxhbr committed Nov 7, 2023
1 parent b981d0f commit 9aafd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec_parser/owl_to_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9aafd43

Please sign in to comment.