From 61e3c9452c431ee2e9879399a7d5fe3333f0f809 Mon Sep 17 00:00:00 2001 From: Javier Sanchez Date: Fri, 30 Aug 2024 13:04:10 +1000 Subject: [PATCH] Update "vegetation-mapping-protocol-shapes ->foliage-projective-cover" datatype to Integer in SHACL shapes --- .../foliage-projective-cover/invalid.ttl | 44 +++++++++---------- .../foliage-projective-cover/shapes.ttl | 8 ++-- .../foliage-projective-cover/valid.ttl | 6 +-- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/invalid.ttl b/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/invalid.ttl index b9079a20..7d152edf 100644 --- a/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/invalid.ttl +++ b/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/invalid.ttl @@ -14,7 +14,7 @@ PREFIX xsd: a tern:Observation ; void:inDataset ; - rdfs:comment "Invalid result - the datatype of the value of the result node must be `xsd:float`." ; + rdfs:comment "Invalid result - the datatype of the value of the result node must be `xsd:integer`." ; sosa:hasFeatureOfInterest [ a tern:FeatureOfInterest ; void:inDataset ; @@ -22,13 +22,13 @@ PREFIX xsd: ] ; sosa:hasResult [ a - tern:Float , + tern:Integer , tern:Value ; - rdf:value 3 ; + rdf:value "33.81"^^xsd:float ; sosa:isResultOf ; tern:unit unit:PERCENT ] ; - sosa:hasSimpleResult 3 ; + sosa:hasSimpleResult "33.81"^^xsd:float ; sosa:observedProperty ; sosa:phenomenonTime ; sosa:resultTime "2022-09-27T05:38:47.117000+00:00"^^xsd:dateTime ; @@ -46,13 +46,13 @@ PREFIX xsd: ] ; sosa:hasResult [ a - tern:Float , + tern:Integer , tern:Value ; - rdf:value "33.81"^^xsd:float ; + rdf:value 33 ; sosa:isResultOf ; tern:unit unit:PERCENT ] ; - sosa:hasSimpleResult "33.81"^^xsd:float ; + sosa:hasSimpleResult 33 ; sosa:observedProperty ; sosa:phenomenonTime ; sosa:resultTime "2022-09-27T05:38:47.117000+00:00"^^xsd:dateTime ; @@ -70,13 +70,13 @@ PREFIX xsd: ] ; sosa:hasResult [ a - tern:Float , + tern:Integer , tern:Value ; - rdf:value "33.81"^^xsd:float ; + rdf:value 33 ; sosa:isResultOf ; tern:unit unit:PERCENT ] ; - sosa:hasSimpleResult "13.56"^^xsd:float ; + sosa:hasSimpleResult 13 ; sosa:observedProperty ; sosa:phenomenonTime ; sosa:resultTime "2022-09-27T05:38:47.117000+00:00"^^xsd:dateTime ; @@ -94,13 +94,13 @@ PREFIX xsd: ] ; sosa:hasResult [ a - tern:Float , + tern:Integer , tern:Value ; - rdf:value "33.81"^^xsd:float ; + rdf:value 33 ; sosa:isResultOf ; tern:unit ] ; - sosa:hasSimpleResult "33.81"^^xsd:float ; + sosa:hasSimpleResult 33 ; sosa:observedProperty ; sosa:phenomenonTime ; sosa:resultTime "2022-09-27T05:38:47.117000+00:00"^^xsd:dateTime ; @@ -118,13 +118,13 @@ PREFIX xsd: ] ; sosa:hasResult [ a - tern:Float , + tern:Integer , tern:Value ; - rdf:value "33.81"^^xsd:float ; + rdf:value 33 ; sosa:isResultOf ; tern:unit unit:PERCENT ] ; - sosa:hasSimpleResult "33.81"^^xsd:float ; + sosa:hasSimpleResult 33 ; sosa:observedProperty ; sosa:phenomenonTime ; sosa:resultTime "2022-09-27T05:38:47.117000+00:00"^^xsd:dateTime ; @@ -142,13 +142,13 @@ PREFIX xsd: ] ; sosa:hasResult [ a - tern:Float , + tern:Integer , tern:Value ; - rdf:value "-1.11"^^xsd:float ; + rdf:value -1 ; sosa:isResultOf ; tern:unit unit:PERCENT ] ; - sosa:hasSimpleResult "-1.11"^^xsd:float ; + sosa:hasSimpleResult -1 ; sosa:observedProperty ; sosa:phenomenonTime ; sosa:resultTime "2022-09-27T05:38:47.117000+00:00"^^xsd:dateTime ; @@ -158,7 +158,7 @@ PREFIX xsd: a tern:Observation ; void:inDataset ; - rdfs:comment "Invalid result - the value of the result node must be `tern:Float`." ; + rdfs:comment "Invalid result - the value of the result node must be `tern:Integer`." ; sosa:hasFeatureOfInterest [ a tern:FeatureOfInterest ; void:inDataset ; @@ -166,11 +166,11 @@ PREFIX xsd: ] ; sosa:hasResult [ a tern:Value ; - rdf:value "33.81"^^xsd:float ; + rdf:value 33 ; sosa:isResultOf ; tern:unit unit:PERCENT ] ; - sosa:hasSimpleResult "33.81"^^xsd:float ; + sosa:hasSimpleResult 33 ; sosa:observedProperty ; sosa:phenomenonTime ; sosa:resultTime "2022-09-27T05:38:47.117000+00:00"^^xsd:dateTime ; diff --git a/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/shapes.ttl b/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/shapes.ttl index cf23dba8..3d603ea7 100644 --- a/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/shapes.ttl +++ b/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/shapes.ttl @@ -136,7 +136,7 @@ PREFIX xsd: urnc:Requirement ; dcterms:source "Ecological Monitoring System - Australia Protocols" ; reg:status reg:statusSubmitted ; - sh:datatype xsd:float ; + sh:datatype xsd:integer ; sh:description "Value _MUST_ be between 1 and 100 inclusive." ; sh:maxInclusive 100 ; sh:message "The result _MUST_ have a value between 1 and 100 inclusively." ; @@ -166,9 +166,9 @@ PREFIX xsd: urnc:Requirement ; dcterms:source "Ecological Monitoring System - Australia Protocols" ; reg:status reg:statusSubmitted ; - sh:class tern:Float ; - sh:description "The value of `sosa:hasResult` _MUST_ be a `tern:Float`." ; - sh:message "The result _MUST_ be an instance of `tern:Float`." ; + sh:class tern:Integer ; + sh:description "The value of `sosa:hasResult` _MUST_ be a `tern:Integer`." ; + sh:message "The result _MUST_ be an instance of `tern:Integer`." ; sh:name "Value type" ; sh:path sosa:hasResult ; sh:target [ diff --git a/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/valid.ttl b/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/valid.ttl index d443b2ce..48decdf9 100644 --- a/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/valid.ttl +++ b/shapes/vegetation-mapping-protocol-shapes/foliage-projective-cover/valid.ttl @@ -22,13 +22,13 @@ PREFIX xsd: ] ; sosa:hasResult [ a - tern:Float , + tern:Integer , tern:Value ; - rdf:value "33.81"^^xsd:float ; + rdf:value 33 ; sosa:isResultOf ; tern:unit unit:PERCENT ] ; - sosa:hasSimpleResult "33.81"^^xsd:float ; + sosa:hasSimpleResult 33 ; sosa:observedProperty ; sosa:phenomenonTime ; sosa:resultTime "2022-09-27T05:38:47.117000+00:00"^^xsd:dateTime ;