bsh:DeprecationRuleForInstances leaf node


URI

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

Label

DeprecationRuleForInstances

Targets (1)

Node Constraints

sh:severity sh:Warning

Implementation

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

bsh:DeprecationRuleForInstances a sh:NodeShape ;
    sh:severity sh:Warning ;
    sh:sparql [ a sh:SPARQLConstraint ;
            sh:message "{$this} has type {?class} which was deprecated in version {?depver}. For now, it has been updated to also be of type {?newClass}." ;
            sh:prefixes <https://brickschema.org/schema/1.4/Brick> ;
            sh:select """SELECT $this ?class ?newClass ?depver WHERE {
$this a ?class .
?class owl:deprecated true .
?class brick:deprecatedInVersion ?depver .
?class brick:isReplacedBy ?newClass .
}""" ] ;
    sh:targetClass brick:Entity .