Re: [sdw] How should I represent an observation with multiple values.

Hi, 

Please find below three possible options. All three have pros and cons I do not discuss here. Yours to choose or define the appropriate vocabulary/datatype if necessary. 

*Option 1:*

You choose or define a datatype to encode accelerations 3D-vectors, and use Datatype Property `sosa:hasSimpleResult`  to link the observation to literals with that datatype. 

```
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.

<http://mcas.com/Observation/1> a sosa:Observation ;
   sosa:hasSimpleResult "[0.1, 0.2, 0.3]"^^ex:3DAcceleration ;
   sosa:resultTime "2017-06-06T12:36:12Z"^^xsd:dateTime ;
   sosa:madeBySensor <sensor%2F35-207306-844818-0%2FBMP282> .
```

*Option 2:*

Encode an acceleration 3D-vector as an OWL individual, linked by three different Datatype Properties to the three accelerations encoded as literals (e.g., using the dedicated [UCUM Datatype for Acceleration](http://w3id.org/lindt/custom_datatypes#acceleration) ) 
Then use the `sosa:hasResult` Object Property to link the observation to that individual:

```
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix cdt: <http://w3id.org/lindt/custom_datatypes#>.
@prefix ex: <http://example.org/some/ontology#>.

<http://mcas.com/Observation/1> a sosa:Observation ;
   sosa:hasResult [
      a ex:3DAcceleration ;
      ex:XValue "0.1 m.s-2"^^cdt:acceleration ;
      ex:YValue "0.2 m.s-2"^^cdt:acceleration ;
      ex:ZValue "0.3 m.s-2"^^cdt:acceleration ] ;
   sosa:resultTime "2017-06-06T12:36:12Z"^^xsd:dateTime ;
   sosa:madeBySensor <sensor%2F35-207306-844818-0%2FBMP282> .
```

*Option 3:*

Encode an acceleration 3D-vector as an OWL individual, linked by three different Object Properties to the three accelerations encoded as OWL individuals using one of the ontologies for units of measurements (e.g., QUDT or OM). Then use the `sosa:hasResult` Object Property to link the observation to that individual:

```
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix qudt-1-1: <http://qudt.org/1.1/schema/qudt#> .
@prefix qudt-unit-1-1: <http://qudt.org/1.1/vocab/unit#> .
@prefix ex: <http://example.org/some/ontology#>.

<http://mcas.com/Observation/1> a sosa:Observation ;
   sosa:hasResult [
      a ex:3DAcceleration ;
      ex:XValue [ 
        a qudt-1.1:QuantityValue
        qudt-1.1:numericValue "0.1"^^xsd:double ;
        qudt-1.1:unit qudt-unit-1.1:MeterPerSecondSquared ] ;
      ex:YValue [ 
        a qudt-1.1:QuantityValue
        qudt-1.1:numericValue "0.2"^^xsd:double ;
        qudt-1.1:unit qudt-unit-1.1:MeterPerSecondSquared ] ;
      ex:ZValue [ 
        a qudt-1.1:QuantityValue
        qudt-1.1:numericValue "0.3"^^xsd:double ;
        qudt-1.1:unit qudt-unit-1.1:MeterPerSecondSquared ] ] ;
   sosa:resultTime "2017-06-06T12:36:12Z"^^xsd:dateTime ;
   sosa:madeBySensor <sensor%2F35-207306-844818-0%2FBMP282> .
```


-- 
GitHub Notification of comment by maximelefrancois86
Please view or discuss this issue at https://github.com/w3c/sdw/issues/1023#issuecomment-377210471 using your GitHub account

Received on Thursday, 29 March 2018 11:49:27 UTC