Skip to content

Commit

Permalink
Add OWL.maxQualifiedCardinality and OWL.qualifiedCardinality for rest…
Browse files Browse the repository at this point in the history
…riction, so it doesn't break
  • Loading branch information
white-gecko committed Feb 5, 2024
1 parent 50448a7 commit 02a5033
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shaclgen/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ def extract_restrictions(self):
rest_type.append(p)
rest_val.append(o)
for s, p, o in self.G.triples((rest, OWL.minQualifiedCardinality, None)):
# TODO add onClass or onDataRange
rest_type.append(p)
rest_val.append(o)
for s, p, o in self.G.triples((rest, OWL.maxQualifiedCardinality, None)):
# TODO add onClass or onDataRange
rest_type.append(p)
rest_val.append(o)
for s, p, o in self.G.triples((rest, OWL.qualifiedCardinality, None)):
# TODO add onClass or onDataRange
rest_type.append(p)
rest_val.append(o)
self.REST[rest]["type"] = rest_type[0]
Expand Down

0 comments on commit 02a5033

Please sign in to comment.