Skip to content

Commit

Permalink
make sure aliases are also nodeshapes (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Sep 5, 2023
1 parent a900b8a commit ec7dfbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate_brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def define_classes(definitions, parent, pun_classes=False, graph=G):
for alias in aliases:
graph.add((classname, OWL.equivalentClass, alias))
graph.add((alias, A, OWL.Class))
graph.add((alias, A, SH.NodeShape))
graph.add((alias, OWL.equivalentClass, classname))
graph.add((alias, BRICK.aliasOf, classname))
if not has_label(alias, graph=graph):
Expand Down

0 comments on commit ec7dfbf

Please sign in to comment.