bsh:EquivalentPropertyRule leaf node


URI

https://brickschema.org/schema/BrickShape#EquivalentPropertyRule

Label

EquivalentPropertyRule

Targets (1)

  • owl:equivalentProperty sh:targetSubjectsOf

Implementation

@prefix bsh: <https://brickschema.org/schema/BrickShape#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

bsh:EquivalentPropertyRule a sh:NodeShape ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
CONSTRUCT {
    ?s ?t2 ?o .
} WHERE {
    ?s $this ?o .
    { $this owl:equivalentProperty ?t2 }
    UNION
    { ?t2 owl:equivalentProperty $this }
}""" ;
            sh:prefixes <https://brickschema.org/schema/1.4/Brick> ] ;
    sh:targetSubjectsOf owl:equivalentProperty .