I have to translate in ALCQO the following sentence:
A square is a polygon with exactly four edges and exactly four vertices which are line segments.
I have tried the following approach using ALCQO:
Square ≡ Polygon ⊓ (≥4hasPart.Edges) ⊓ (≤4hasPart.Edges) ⊓ (≥4hasVertices.LineSegments) ⊓
(≤4hasVertices.LineSegments)
I am not sure about the following two cases:
- Using
≥and≤in the same sentence I am actually achieving to translate the phrase "exactly one". hasVertices.LineSegmentsI am actually achieving to translate the phrase "vertices which are line segments".
Yes, using
≥and≤in the same sentence translates toexactly. I have written about this on my blog here.If you have
≥4hasVerticesor≥4hasVertices.Topit means the filler ofhasVerticescan be any concept from your domain. When you have≥4hasVertices.LineSegmentthe filler ofhasVerticescan only beLineSegments.