From 3adb9d7b55f6d01e21bc8bb2ece12bb9e5472cc5 Mon Sep 17 00:00:00 2001 From: Simon Clark <52653938+jsimonclark@users.noreply.github.com> Date: Sun, 23 Jun 2024 19:37:26 +0200 Subject: [PATCH] Update ttl_to_context.py --- docs/scripts/ttl_to_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scripts/ttl_to_context.py b/docs/scripts/ttl_to_context.py index 9b6929b..f0e8b19 100644 --- a/docs/scripts/ttl_to_context.py +++ b/docs/scripts/ttl_to_context.py @@ -84,7 +84,7 @@ def generate_jsonld_context(ttl_file, predicate_uri, label_uri='http://www.w3.or # Example usage filename = 'battery-inferred.ttl' -parent_dir = os.path.dirname(os.path.abspath(__file__)) +parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) file_path = os.path.join(parent_dir, '..', filename) # Convert the file path to a file URI