Commit 79c8bda0 authored by Jason Fox's avatar Jason Fox
Browse files

Correct Multi-attribute example.

Remove "values" from array.
parent e715445e
Loading
Loading
Loading
Loading
Loading
+37 −41
Original line number Original line Diff line number Diff line
@@ -1106,7 +1106,7 @@ level of the graph only.
Below is an example, where temporal evolution of the speed of the car is
Below is an example, where temporal evolution of the speed of the car is
provided by two different sources. As both may be relevant at the same time,
provided by two different sources. As both may be relevant at the same time,
there are two individual attribute instances for speed; each is identified by a
there are two individual attribute instances for speed; each is identified by a
_`datasetId`_ and both instances are represented in an array. The combination of
_`datasetId`_ and both instances are represented in the array. The combination of
an Attribute's _`datasetId`_ and the _`instanceId`_ associated to each value
an Attribute's _`datasetId`_ and the _`instanceId`_ associated to each value
enables modification of a particular instance value without affecting instances
enables modification of a particular instance value without affecting instances
from other sources.
from other sources.
@@ -1118,50 +1118,46 @@ from other sources.
  "speed": [
  "speed": [
    {
    {
      "type": "Property",
      "type": "Property",
      "values": [
        {
      "value": 55,
      "value": 55,
      "source": {
      "source": {
        "type": "Property",
        "type": "Property",
        "value": "Speedometer"
        "value": "Speedometer"
      },
      },
      "instanceId": "urn:ngsi-ld:instance:31451425367",
      "instanceId": "urn:ngsi-ld:instance:31451425367",
          "observedAt": "2022-08-09T18:25:02Z"
      "observedAt": "2022-08-09T18:25:02Z",
      "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed"
    },
    },
    {
    {
      "type": "Property",
      "value": 56,
      "value": 56,
      "source": {
      "source": {
        "type": "Property",
        "type": "Property",
        "value": "Speedometer"
        "value": "Speedometer"
      },
      },
      "instanceId": "urn:ngsi-ld:instance:23856477893",
      "instanceId": "urn:ngsi-ld:instance:23856477893",
          "observedAt": "2022-08-09T18:26:02Z"
      "observedAt": "2022-08-09T18:26:02Z",
        }
      ],
      "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed"
      "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed"
    },
    },
    {
    {
      "type": "Property",
      "type": "Property",
      "values": [
        {
      "value": 54.5,
      "value": 54.5,
      "source": {
      "source": {
        "type": "Property",
        "type": "Property",
        "value": "GPS"
        "value": "GPS"
      },
      },
      "instanceId": "urn:ngsi-ld:instance:456234894533",
      "instanceId": "urn:ngsi-ld:instance:456234894533",
          "observedAt": "2022-08-09T18:30:02Z"
      "observedAt": "2022-08-09T18:30:02Z",
      "datasetId": "urn:ngsi-ld:Property:gpsBxyz123-speed"
    },
    },
    {
    {
      "type": "Property",
      "value": 54.5,
      "value": 54.5,
      "source": {
      "source": {
        "type": "Property",
        "type": "Property",
        "value": "GPS"
        "value": "GPS"
      },
      },
      "instanceId": "urn:ngsi-ld:instance:720930032567",
      "instanceId": "urn:ngsi-ld:instance:720930032567",
          "observedAt": "2022-08-09T18:33:02Z"
      "observedAt": "2022-08-09T18:33:02Z",
        }
      ],
      "datasetId": "urn:ngsi-ld:Property:gpsBxyz123-speed"
      "datasetId": "urn:ngsi-ld:Property:gpsBxyz123-speed"
    }
    }
  ],
  ],