Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into v1.4.1-release
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Aug 22, 2024
2 parents 6efe073 + 859a744 commit e0fefff
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
run: |
make
cat Brick.ttl
- name: zip imports and extensions
run: |
zip -r imports.zip imports
zip -r extensions.zip extensions
- name: upload ttls
id: upload-ttls
if: ${{ matrix.python-version == env.RELEASE_PYTHON_VERSION }}
Expand All @@ -51,6 +55,11 @@ jobs:
name: Brick-ontology
path: |
Brick.ttl
Brick+imports.ttl
Brick+extensions.ttl
Brick-only.ttl
imports.zip
extensions.zip
- name: comment artifact
# if the trigger is on a pull request
if: ${{ github.event_name == 'pull_request' && matrix.python-version == env.RELEASE_PYTHON_VERSION }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
title: Nightly Build ${{ steps.date.outputs.date }}
files: |
Brick.ttl
Brick+imports.ttl
Brick+extensions.ttl
Brick-only.ttl
imports.zip
extensions.zip
10 changes: 10 additions & 0 deletions generate_brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,11 @@ def handle_concept_labels():
fp.write(graph.serialize(format="turtle").rstrip())
fp.write("\n")

# serialize Brick-only to output
with open("Brick-only.ttl", "w", encoding="utf-8") as fp:
fp.write(G.serialize(format="turtle").rstrip())
fp.write("\n")

# add rec stuff
env.import_graph(G, "https://w3id.org/rec")

Expand Down Expand Up @@ -1133,6 +1138,11 @@ def handle_concept_labels():
print(report)
sys.exit(1)

# serialize Brick+imports to output
with open("Brick+imports.ttl", "w", encoding="utf-8") as fp:
fp.write(G.serialize(format="turtle").rstrip())
fp.write("\n")

# validate Brick
# valid, _, report = pyshacl.validate(data_graph=G, advanced=True, allow_warnings=True)
# if not valid:
Expand Down

0 comments on commit e0fefff

Please sign in to comment.