brick:Water_Level_Sensor


URI

https://brickschema.org/schema/Brick#Water_Level_Sensor

Label

Water Level Sensor

Description

Measures the height/level of water in some container

Targets (1)

Property Constraints (1)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
brick:lastKnownValue last known value
The last known value of the Point entity
0 1 rec:LengthObservation
sh:IRI

Implementation

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

brick:Water_Level_Sensor a owl:Class,
        sh:NodeShape ;
    rdfs:label "Water Level Sensor"@en ;
    rdfs:subClassOf brick:Sensor ;
    skos:definition "Measures the height/level of water in some container"@en ;
    sh:property [ a sh:PropertyShape ;
            sh:class rec:LengthObservation ;
            sh:maxCount 1 ;
            sh:name "last known value" ;
            sh:nodeKind sh:IRI ;
            sh:path brick:lastKnownValue ] ;
    sh:rule [ a sh:TripleRule ;
            sh:object tag:Level ;
            sh:predicate brick:hasTag ;
            sh:subject sh:this ],
        [ a sh:TripleRule ;
            sh:object tag:Point ;
            sh:predicate brick:hasTag ;
            sh:subject sh:this ],
        [ a sh:TripleRule ;
            sh:object tag:Sensor ;
            sh:predicate brick:hasTag ;
            sh:subject sh:this ],
        [ a sh:TripleRule ;
            sh:object tag:Water ;
            sh:predicate brick:hasTag ;
            sh:subject sh:this ] ;
    brick:hasAssociatedTag tag:Level,
        tag:Point,
        tag:Sensor,
        tag:Water ;
    brick:hasQuantity brick:Level ;
    brick:hasSubstance brick:Water .