File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ def test_properClassPropertyStructuring(self):
568568 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
569569 PREFIX owl: <http://www.w3.org/2002/07/owl#>
570570
571- SELECT ?term ?target WHERE {
571+ SELECT ?term ?predicate ? target WHERE {
572572 # Define the combinations of type and predicate to look for
573573 VALUES (?type ?predicate) {
574574 (rdfs:Class rdfs:subPropertyOf)
@@ -577,14 +577,21 @@ def test_properClassPropertyStructuring(self):
577577 (rdfs:Property owl:equivalentClass)
578578 }
579579
580- # Apply the pattern once using the values above
581- ?term a ?type .
582- ?term ?predicate ?target .
583-
580+ {
581+ # ?term must be of the right type for the predicate
582+ ?term a ?type .
583+ ?term ?predicate ?target .
584+ }
585+ UNION
586+ {
587+ # ?target must be of the right type for the predicate
588+ ?target a ?type .
589+ ?term ?predicate ?target .
590+ }
584591 } ORDER BY ?term
585592 """ ,
586593 error_message = "A type cannot be a Class (Property) and also be a subPropertyOf (subClassOf) or something!" ,
587- row_pattern = "'%(term)s' is a Class/Property and also a subPropertyOf/subClassOf %(target)s" )
594+ row_pattern = "'%(term)s' is %(predicate)s of %(target)s" )
588595
589596
590597# TODO: Unwritten tests (from basics; easier here?)
You can’t perform that action at this time.
0 commit comments