From 6fc5842798749bd8967573288af50f16f08baea3 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Sun, 2 Jan 2022 10:13:25 +0100 Subject: [PATCH] Corrected parsing cardinality restrictions --- ontopy/manchester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ontopy/manchester.py b/ontopy/manchester.py index 0c6fef579..5b2791dfb 100644 --- a/ontopy/manchester.py +++ b/ontopy/manchester.py @@ -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}")