From e834ff651564fb9a0368a9056d7f2d69ca0e0e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Garc=C3=ADa=20Castro?= Date: Fri, 24 May 2024 17:23:00 +0200 Subject: [PATCH] Updated to new time-related properties --- documentation/description.html | 2 +- examples/MeterMeasurement.ttl | 4 ++-- examples/WaterInfrastructure.ttl | 2 +- examples/WaterMeasurement.ttl | 4 ++-- examples/WaterMeter.ttl | 2 +- ontology/saref4watr.ttl | 8 -------- tests/tests.csv | 2 +- 7 files changed, 8 insertions(+), 16 deletions(-) diff --git a/documentation/description.html b/documentation/description.html index 5f0d71d..025039d 100644 --- a/documentation/description.html +++ b/documentation/description.html @@ -20,7 +20,7 @@

As it can be observed in Figure 3, the modelling of measurements in the SAREF4WATR ontology mostly relies on the measurement model proposed in SAREF.

-

SAREF allows to define the temporal extent of a measurement by defining the timestamp for it (using the saref:hasTimestamp property). However, the SAREF4WATR extension also required to be able to define the temporal interval to which a measurement applies, apart from the temporal instant defined by the timestamp. Therefore, the s4watr:hasPhenomenonTime property has been defined in this extension to define the time for which the measurement applies to a feature of interest. The range of this property time has been defined as a time:TemporalEntity, which allows defining temporal intervals or instants.

+

SAREF allows to define the temporal extent of a measurement by defining the timestamp for it (using the saref:hasResultTime property) and to define the temporal interval to which a measurement applies, apart from the temporal instant defined by the timestamp (using the saref:hasPhenomenonTime property).

Besides, the extension requires to be able to represent those devices that measure a certain feature of interest (and those features of interest that are measured by a device) independently of having measures from which this relationship could be inferred. Because of this, in this extension we have created four new properties to relate saref:Device and saref:FeatureOfInterest: s4watr:featureIsMeasuredByDevice, s4watr:featureIsControlledByDevice, s4watr:measuresFeature, and s4watr:controlsFeature.

diff --git a/examples/MeterMeasurement.ttl b/examples/MeterMeasurement.ttl index b5720c1..5871ab8 100644 --- a/examples/MeterMeasurement.ttl +++ b/examples/MeterMeasurement.ttl @@ -99,7 +99,7 @@ ex:WFMeasurement170206 rdf:type owl:NamedIndividual , saref:Measurement ; saref:isMeasuredIn om:litre ; saref:relatesToProperty s4watr:FlowVolume ; - saref:hasTimestamp "2020-02-06T15:07:12"^^xsd:dateTime ; + saref:hasResultTime "2020-02-06T15:07:12"^^xsd:dateTime ; saref:hasValue "127.0"^^xsd:float . @@ -108,5 +108,5 @@ ex:WFMeasurement643234 rdf:type owl:NamedIndividual , saref:Measurement ; saref:isMeasuredIn om:degreeCelsius ; saref:relatesToProperty s4watr:ExternalTemperature ; - s4watr:hasPhenomenonTime ex:PT838452 ; + saref:hasPhenomenonTime ex:PT838452 ; saref:hasValue "24.5"^^xsd:float . diff --git a/examples/WaterInfrastructure.ttl b/examples/WaterInfrastructure.ttl index 876b8d4..ed93dd6 100644 --- a/examples/WaterInfrastructure.ttl +++ b/examples/WaterInfrastructure.ttl @@ -94,7 +94,7 @@ ex:PMeasurement854306 rdf:type owl:NamedIndividual , saref:isMeasuredIn om:litrePerHour ; saref:isMeasurementOf ex:PumpRT73467 ; saref:relatesToProperty s4watr:FlowRate ; - saref:hasTimestamp "2020-02-06T13:48:22"^^xsd:dateTime ; + saref:hasResultTime "2020-02-06T13:48:22"^^xsd:dateTime ; saref:hasValue "8.3"^^xsd:float . diff --git a/examples/WaterMeasurement.ttl b/examples/WaterMeasurement.ttl index 2e5bf68..946b968 100644 --- a/examples/WaterMeasurement.ttl +++ b/examples/WaterMeasurement.ttl @@ -50,7 +50,7 @@ ex:DTSMeasurement106 rdf:type owl:NamedIndividual , saref:Measurement ; saref:isMeasuredIn om:microgramPerLitre ; saref:relatesToProperty s4watr:Cadmium ; - saref:hasTimestamp "2020-02-06T21:01:10"^^xsd:dateTime ; + saref:hasResultTime "2020-02-06T21:01:10"^^xsd:dateTime ; saref:hasValue "0.005"^^xsd:float . @@ -59,7 +59,7 @@ ex:DTSMeasurement107 rdf:type owl:NamedIndividual , saref:Measurement ; saref:isMeasuredIn om:colonyFormingUnitPerMillilitre ; saref:relatesToProperty s4watr:EscherichiaColi ; - saref:hasTimestamp "2020-02-06T21:01:30"^^xsd:dateTime ; + saref:hasResultTime "2020-02-06T21:01:30"^^xsd:dateTime ; saref:hasValue "0.42"^^xsd:float . diff --git a/examples/WaterMeter.ttl b/examples/WaterMeter.ttl index b24278f..7eab1c9 100644 --- a/examples/WaterMeter.ttl +++ b/examples/WaterMeter.ttl @@ -64,7 +64,7 @@ ex:WMMeasurement200206 rdf:type saref:Measurement ; saref:isMeasuredIn om:month ; saref:isMeasurementOf ex:Meter4837QW123 ; saref:relatesToProperty s4watr:BatteryRemainingTime ; - saref:hasTimestamp "2020-02-06T15:44:12"^^xsd:dateTime ; + saref:hasResultTime "2020-02-06T15:44:12"^^xsd:dateTime ; saref:hasValue "27.0"^^xsd:float . diff --git a/ontology/saref4watr.ttl b/ontology/saref4watr.ttl index 4423738..49d2388 100644 --- a/ontology/saref4watr.ttl +++ b/ontology/saref4watr.ttl @@ -200,14 +200,6 @@ s4watr:hasPeriod rdf:type owl:ObjectProperty ; rdfs:label "has period"@en . -### https://saref.etsi.org/saref4watr/hasPhenomenonTime -s4watr:hasPhenomenonTime rdf:type owl:ObjectProperty ; - rdfs:domain saref:Measurement ; - rdfs:range time:TemporalEntity ; - rdfs:label "has phenomenon time"@en ; - rdfs:comment "The time for which the value of a measurement applies to the feature of interest."@en . - - ### https://saref.etsi.org/saref4watr/isDesignedFor s4watr:isDesignedFor rdf:type owl:ObjectProperty ; rdfs:comment "The type of water for which an infrastructure is designed for."@en ; diff --git a/tests/tests.csv b/tests/tests.csv index 79294c5..6833783 100644 --- a/tests/tests.csv +++ b/tests/tests.csv @@ -42,7 +42,7 @@ WATR-TEST-40;WATR-23;Meter measurements;ExternalTemperature type EnvironmentalPr WATR-TEST-41;WATR-24;Meter measurements;WaterMeter measuresProperty WaterFlowProperty WATR-TEST-42;WATR-24;Meter measurements;FlowTemperature type WaterFlowProperty WATR-TEST-43;WATR-25;Meter measurements;WaterMeter makesMeasurement Measurement -WATR-TEST-44;WATR-26;Meter measurements;Measurement hasTimestamp dateTime +WATR-TEST-44;WATR-26;Meter measurements;Measurement hasResultTime dateTime WATR-TEST-45;WATR-26;Meter measurements;Measurement hasPhenomenonTime TemporalEntity WATR-TEST-46;WATR-27;Infrastructure measurements;Reservoir subClassOf WaterAsset WATR-TEST-47;WATR-27;Infrastructure measurements;Reservoir hasProperty core:Property -- GitLab