bsh:AddDefaultEVSEChargerDirection leaf node


URI

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

Label

AddDefaultEVSEChargerDirection

Targets (1)

Implementation

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

bsh:AddDefaultEVSEChargerDirection a sh:NodeShape ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
        CONSTRUCT {
            $this brick:electricVehicleChargerDirectionality [ brick:value "unidirectional"^^xsd:string ]
        } WHERE {
            $this rdf:type brick:Electric_Vehicle_Charging_Station .
            FILTER NOT EXISTS {
                $this brick:electricVehicleChargerDirectionality ?direction .
            }
            FILTER NOT EXISTS {
                $this brick:hasPart ?port .
                ?port a brick:Electric_Vehicle_Charging_Port .
                ?port brick:electricVehicleChargerDirectionality ?other_direction .
            }
        }
        """ ;
            sh:prefixes <https://brickschema.org/schema/1.4/Brick> ] ;
    sh:targetClass brick:Electric_Vehicle_Charging_Station .