https://brickschema.org/schema/BrickShape#PointsHaveQuantityKinds
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| brick:hasQuantity | sh:message Brick Points should have associated quantity kinds |
1 | * | qudt:QuantityKind |
@prefix brick: <https://brickschema.org/schema/Brick#> .
@prefix bsh: <https://brickschema.org/schema/BrickShape#> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
bsh:PointsHaveQuantityKinds a sh:NodeShape ;
sh:property [ sh:class qudt:QuantityKind ;
sh:message "Brick Points should have associated quantity kinds" ;
sh:minCount 1 ;
sh:path brick:hasQuantity ] ;
sh:target [ a sh:SPARQLTarget ;
sh:prefixes <https://brickschema.org/schema/1.4/Brick> ;
sh:select """
SELECT ?this
WHERE {
?this rdfs:subClassOf+ brick:Sensor .
FILTER NOT EXISTS { ?class owl:deprecated true }
}
""" ],
[ a sh:SPARQLTarget ;
sh:prefixes <https://brickschema.org/schema/1.4/Brick> ;
sh:select """
SELECT ?this
WHERE {
?this rdfs:subClassOf+ brick:Setpoint .
FILTER NOT EXISTS { ?class owl:deprecated true }
}
""" ] .