bsh:MeterRelationshipRule leaf node


URI

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

Label

MeterRelationshipRule

Targets (1)

Property Constraints (2)

Focus nodes of this shape (brick:Meter) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
brick:isMeteredBy Indicates the meter measuring the consumption/production of some substance by the subject entity
sh:message Relationship between meters is hasSubMeter/isSubMeterOf, not meters/isMeteredBy
0 *
brick:meters Indicates the entity whose consumption/production of some substance is measured by this meter.
sh:message Relationship between meters is hasSubMeter/isSubMeterOf, not meters/isMeteredBy
0 *

Implementation

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

bsh:MeterRelationshipRule a sh:NodeShape ;
    sh:property [ sh:message "Relationship between meters is hasSubMeter/isSubMeterOf, not meters/isMeteredBy" ;
            sh:path brick:meters ;
            sh:qualifiedMaxCount 0 ;
            sh:qualifiedValueShape [ sh:class brick:Meter ] ],
        [ sh:message "Relationship between meters is hasSubMeter/isSubMeterOf, not meters/isMeteredBy" ;
            sh:path brick:isMeteredBy ;
            sh:qualifiedMaxCount 0 ;
            sh:qualifiedValueShape [ sh:class brick:Meter ] ] ;
    sh:targetClass brick:Meter .