Skip to content

Commit

Permalink
Corrected parsing cardinality restrictions (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis authored Jan 3, 2022
1 parent c374e7d commit 0413909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ontopy/manchester.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def fneg(x):
elif rtype in ("some", "only"):
return fneg(f(_eval(r)))
elif rtype in ("min", "max", "exactly"):
cardinality = r.pop()
cardinality = r.pop(0)
return fneg(f(cardinality, _eval(r)))
else:
raise ManchesterError(f"invalid restriction type: {rtype}")
Expand Down

0 comments on commit 0413909

Please sign in to comment.