From 2f69078d805ab09714d704211b0e42fefb9155a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Lefran=C3=A7ois?= Date: Thu, 4 Jun 2020 19:12:48 +0200 Subject: [PATCH] closes #3 --- examples/heatingsystem.ttl | 2 +- ontology/saref4ener.ttl | 23 +++++------------------ 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/examples/heatingsystem.ttl b/examples/heatingsystem.ttl index 4b53c36..d382dae 100644 --- a/examples/heatingsystem.ttl +++ b/examples/heatingsystem.ttl @@ -199,7 +199,7 @@ s4ener:Slot-3-HS0001 s4ener:StartTimeDurationDescription_1 rdf:type s4ener:StartTimeDurationDescription ; rdfs:label "Start time duration description 1"^^xsd:string ; - s4ener:xsdDuration "PT0H5M"^^xsd:duration ; + s4ener:xsdDuration "PT0H5M" ; . s4ener:StartTime_1 rdf:type s4ener:StartTime ; diff --git a/ontology/saref4ener.ttl b/ontology/saref4ener.ttl index ba3498f..5fe4096 100644 --- a/ontology/saref4ener.ttl +++ b/ontology/saref4ener.ttl @@ -1524,28 +1524,15 @@ s4ener:vendorName rdfs:label "vendor name"@en ; rdfs:range xsd:string ; . -xsd:duration a rdfs:Datatype . s4ener:xsdDuration rdf:type owl:DatatypeProperty ; rdfs:comment """This property is added to the time:DurationDescription class to allow to express time duration also as xsd:duration. This is necessary because in the EEBus/E@h model time is always expressed as xsd:duration. We use this property to express the following time information in the EEBus/E@h model: + - the startTime of the power sequence (in the PowerSequence class). SHALL be present - the endTime of the power sequence (in the PowerSequence class). If the value is available, it SHALL be denoted here. Otherwise the element SHALL be omitted. - the startTime of measurement as absolute or relative value (in the Measurement class). -- the endTime of measurement as absolute or relative value (in the Measurement class)."""@en ; +- the endTime of measurement as absolute or relative value (in the Measurement class). + +The duration is expected to be described as in xsd:duration"""@en ; rdfs:label "duration in xsd "@en ; - rdfs:range xsd:duration ; -. -[ - rdf:type owl:Class ; - owl:unionOf ( - xsd:int - xsd:double - ) ; -]. -[ - rdf:type owl:Class ; - owl:unionOf ( - xsd:int - xsd:double - ) ; -]. +. \ No newline at end of file -- GitLab