bsh:DeprecationShape leaf node


URI

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

Label

DeprecationShape

Description

A SHACL rule which will mitigate the deprecation - The version in which the entity was deprecated - A message describing how to mitigate or address the deprecation

Superclasses (1)

Targets (1)

Property Constraints (3)

Focus nodes of this shape (bsh:DeprecationShape) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
brick:deprecatedInVersion 1 * xsd:string
brick:deprecationMitigationMessage 1 * xsd:string
brick:deprecationMitigationRule 0 * sh:NodeShape

Implementation

@prefix brick: <https://brickschema.org/schema/Brick#> .
@prefix bsh: <https://brickschema.org/schema/BrickShape#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

bsh:DeprecationShape a owl:Class,
        sh:NodeShape,
        brick:EntityPropertyValue ;
    rdfs:subClassOf bsh:ValueShape ;
    sh:property [ a sh:PropertyShape ;
            skos:definition "The version in which the entity was deprecated" ;
            sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path brick:deprecatedInVersion ],
        [ a sh:PropertyShape ;
            skos:definition "A SHACL rule which will mitigate the deprecation" ;
            sh:class sh:NodeShape ;
            sh:path brick:deprecationMitigationRule ],
        [ a sh:PropertyShape ;
            skos:definition "A message describing how to mitigate or address the deprecation" ;
            sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path brick:deprecationMitigationMessage ] .