Skip to content

Commit

Permalink
Update ttl_to_context.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimonclark authored Mar 28, 2024
1 parent e4d383a commit f77573d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx/ttl_to_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def generate_jsonld_context(ttl_file, predicate_uri, label_uri='http://www.w3.or
predicate_uri = 'http://www.w3.org/2004/02/skos/core#prefLabel'
context = generate_jsonld_context(file_uri, predicate_uri)

context_file_path = os.path.join(os.path.dirname(file_path), 'context.json')
context_file_path = os.path.join(parent_dir, 'sphinx/_build/html/context.json')


# Save to JSON file
with open(context_file_path, 'w') as f:
Expand Down

0 comments on commit f77573d

Please sign in to comment.