ai:EnergyConsumptionDescription leaf node


URI

https://spdx.org/rdf/3.0.1/terms/AI/EnergyConsumptionDescription

Label

EnergyConsumptionDescription

Description

The class that helps note down the quantity of energy consumption and the unit
used for measurement.

Property Shapes

By the associated SHACL property shapes, instances of ai:EnergyConsumptionDescription can have the following properties:

PROPERTY PROPERTY TYPE DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS GLOBAL RANGE
ai:EnergyConsumptionDescription
ai:energyQuantity owl:DatatypeProperty Represents the energy quantity. 1 1 xsd:decimal
sh:Literal
xsd:decimal
ai:energyUnit owl:ObjectProperty Specifies the unit in which energy is measured. 1 1 ai:EnergyUnitType
sh:IRI
sh:in ai:EnergyUnitType/kilowattHour, ai:EnergyUnitType/megajoule, ai:EnergyUnitType/other
ai:EnergyUnitType

Implementation

@prefix ai: <https://spdx.org/rdf/3.0.1/terms/AI/> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

ai:EnergyConsumptionDescription a owl:Class,
        sh:NodeShape ;
    rdfs:comment """The class that helps note down the quantity of energy consumption and the unit
used for measurement."""@en ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path ai:energyQuantity ],
        [ sh:class ai:EnergyUnitType ;
            sh:in ( <https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/kilowattHour> <https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/megajoule> <https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/other> ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path ai:energyUnit ] .