Skip to content

Commit

Permalink
Add JSONLD Frame
Browse files Browse the repository at this point in the history
  • Loading branch information
beachtom committed Jun 6, 2024
1 parent 0195b23 commit 64b3dab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .acimov/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,21 @@ def convert_context_to_jsonld():
with open('public/aec3po.jsonld', 'w') as json_file:
json.dump(configuration, json_file, indent=2)

def convert_frame_to_jsonld():
with open('public/aec3po_frame.yaml', 'r') as file:
configuration = yaml.safe_load(file)
with open('public/aec3po_from.jsonld', 'w') as json_file:
json.dump(configuration, json_file, indent=2)

if __name__ == "__main__":
shutil.copyfile('src/aec3po.yaml', 'public/aec3po.yaml')
shutil.copyfile('src/aec3po_frame.yaml', 'public/aec3po_frame.yaml')
if len(sys.argv) == 1:
for root, dirs, files in os.walk("src"):
for name in files:
process(os.path.join(root, name))
convert_context_to_jsonld()
convert_frame_to_jsonld()
for input_file_path in sys.argv[1:]:
process(input_file_path)

7 changes: 7 additions & 0 deletions src/aec3po_frame.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@base": https://regulations.accordproject.eu/
"@context":
- https://w3id.org/lbd/aec3po/aec3po.jsonld
- terms: https://identifier.buildingsmart.org/uri/accord/ACCORD-1.0/
functions: https://functions.accordproject.eu/
"@type": Document

0 comments on commit 64b3dab

Please sign in to comment.