brick:Loop


URI

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

Label

Loop

Description

A collection of connected equipment; part of a System

Targets (1)

Property Constraints (2)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
brick:hasPart The subject is composed in part of the entity given by the object 0 *
sh:or ( brick:Equipment | brick:Point | brick:Location )
rec:includes includes
1 * brick:Equipment
sh:IRI

Implementation

@prefix brick: <https://brickschema.org/schema/Brick#> .
@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 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:Loop a owl:Class,
        sh:NodeShape ;
    rdfs:label "Loop"@en ;
    rdfs:subClassOf brick:Collection,
        rec:Collection ;
    skos:definition "A collection of connected equipment; part of a System"@en ;
    sh:property [ sh:or ( [ sh:class brick:Equipment ] [ sh:class brick:Point ] [ sh:class brick:Location ] ) ;
            sh:path brick:hasPart ],
        [ a sh:PropertyShape ;
            sh:class brick:Equipment ;
            sh:minCount 1 ;
            sh:name "includes" ;
            sh:nodeKind sh:IRI ;
            sh:path rec:includes ] ;
    sh:rule [ a sh:TripleRule ;
            sh:object tag:Collection ;
            sh:predicate brick:hasTag ;
            sh:subject sh:this ],
        [ a sh:TripleRule ;
            sh:object tag:Loop ;
            sh:predicate brick:hasTag ;
            sh:subject sh:this ] ;
    brick:hasAssociatedTag tag:Collection,
        tag:Loop .