https://brickschema.org/schema/BrickShape#RDFSRangeRule
@prefix bsh: <https://brickschema.org/schema/BrickShape#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
bsh:RDFSRangeRule a sh:NodeShape ;
sh:rule [ a sh:SPARQLRule ;
sh:construct """
CONSTRUCT {
?val a ?shape .
} WHERE {
$this rdfs:range ?shape .
?shape a sh:NodeShape .
?ent $this ?val .
FILTER NOT EXISTS { ?val a ?shape }
}""" ;
sh:prefixes <https://brickschema.org/schema/1.4/Brick> ] ;
sh:targetSubjectsOf rdfs:range .