Skip to content

Commit d9d1c65

Browse files
authored
Adding equivalence sanity tests. (#4627)
1 parent cdf72da commit d9d1c65

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

software/tests/test_graphs.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,17 @@ def test_EnumerationWithoutEnums(self):
539539
""",
540540
error_message="Enumeration Type without Enumeration value")
541541

542+
def test_owlEquivalences(self):
543+
self.assertNoMatch("""
544+
PREFIX owl: <http://www.w3.org/2002/07/owl#>
545+
SELECT ?term ?equivType WHERE {
546+
?term owl:equivalentClass ?equivType .
547+
FILTER EXISTS { ?term owl:equivalentProperty ?equivType . }
548+
}
549+
ORDER BY ?term
550+
""",
551+
error_message="Equivalence cannot hold for both Class and Property!",
552+
row_pattern="Term '%(term)s' is both equivalent Class and Property of %(equivType)s")
542553

543554

544555
# TODO: Unwritten tests (from basics; easier here?)

0 commit comments

Comments
 (0)