bsh:AggregationShape leaf node


URI

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

Label

AggregationShape

Description

Interval expressed in an ISO 8601 Duration string, e.g. RP1D - The aggregation function applied to data in the interval which produces the value

Superclasses (1)

Usage

Instances of bsh:AggregationShape can have the following properties:

PROPERTYTYPEDESCRIPTIONRANGE

Property Shapes

By the associated SHACL property shapes, instances of bsh:AggregationShape can have the following properties:

PROPERTY PROPERTY TYPE DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS GLOBAL RANGE
bsh:AggregationShape
brick:aggregationFunction owl:DatatypeProperty 1 *
sh:in max, min, count, mean, sum, median, mode
--
brick:aggregationInterval owl:DatatypeProperty 1 * xsd:string --

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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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:AggregationShape a owl:Class,
        sh:NodeShape,
        brick:EntityPropertyValue ;
    rdfs:subClassOf bsh:ValueShape ;
    sh:property [ a sh:PropertyShape ;
            skos:definition "The aggregation function applied to data in the interval which produces the value" ;
            sh:in ( "max" "min" "count" "mean" "sum" "median" "mode" ) ;
            sh:minCount 1 ;
            sh:path brick:aggregationFunction ],
        [ a sh:PropertyShape ;
            skos:definition "Interval expressed in an ISO 8601 Duration string, e.g. RP1D" ;
            sh:datatype xsd:string ;
            sh:minCount 1 ;
            sh:path brick:aggregationInterval ] .