Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 549 Bytes

multiple_logical_definitions.md

File metadata and controls

18 lines (14 loc) · 549 Bytes

Multiple Logical Definitions

Problem: A class has more than one logical definitions. This should be avoided, as logical definitions can interact adversely.

Solution: Combine the equivalent class statements.

PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT DISTINCT ?entity ?property ?value WHERE {
 VALUES ?property { owl:equivalentClass }
 ?entity ?property [ owl:intersectionOf ?value ] .
 ?entity ?property [ owl:intersectionOf ?value2 ] .
 FILTER (?value != ?value2)
 FILTER (!isBlank(?entity))
}
ORDER BY ?entity