@@ -361,7 +361,8 @@ The `lastN` parameter restricts the result to N values.
361361# ### 1️⃣ Request:
362362
363363` ` ` console
364- curl -G -X GET 'http://localhost:8080/temporal/entities/urn:ngsi-ld:Animal:cow002' \
364+ curl -G -X GET \
365+ 'http://localhost:8080/temporal/entities/urn:ngsi-ld:Animal:cow002' \
365366 -H 'NGSILD-Tenant: openiot' \
366367 -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
367368 -d 'lastN=3'
@@ -490,11 +491,12 @@ This example shows just the last 3 changes of `heartRate` from the entity `urn:n
490491# ### 2️⃣ Request:
491492
492493` ` ` console
493- curl -G -X GET 'http://localhost:8080/temporal/entities/urn:ngsi-ld:Animal:cow001' \
494+ curl -G -X GET \
495+ 'http://localhost:8080/temporal/entities/urn:ngsi-ld:Animal:cow001' \
494496 -H 'NGSILD-Tenant: openiot' \
495497 -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
496498 -d 'lastN=3' \
497- -d 'attrs= heartRate'
499+ -d 'pick=id,type, heartRate'
498500` ` `
499501
500502# ### Response:
@@ -548,19 +550,20 @@ The response is a single entity with a single attribute array holding values of
548550
549551# ## Simplified temporal representation of an entity
550552
551- In much the same manner as the `options=keyValues ` parameter reduces entities to simple key-value pairs, the equivalent
552- ` options =temporalValues` reduces each attribute to a series of tuples - one value and one timestamp for each entry.
553+ In much the same manner as the `format=simplified ` parameter reduces entities to simple key-value pairs, the equivalent
554+ ` format =temporalValues` reduces each attribute to a series of tuples - one value and one timestamp for each entry.
553555
554556The simplified temporal representation can be requested by adding the `options` parameter as shown :
555557
556558# ### 3️⃣ Request:
557559
558560` ` ` console
559- curl -G -X GET 'http://localhost:8080/temporal/entities/urn:ngsi-ld:Animal:cow001' \
561+ curl -G -X GET \
562+ 'http://localhost:8080/temporal/entities/urn:ngsi-ld:Animal:cow001' \
560563 -H 'NGSILD-Tenant: openiot' \
561564 -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
562565 -d 'lastN=3' \
563- -d 'options =temporalValues'
566+ -d 'format =temporalValues'
564567` ` `
565568
566569# ### Response:
@@ -605,7 +608,8 @@ The following query is requesting data about the bulls within the herd. Because
605608` timeproperty=modifiedAt` must be used.
606609
607610` ` ` console
608- curl -G -X GET 'http://localhost:8080/temporal/entities/' \
611+ curl -G -X GET \
612+ 'http://localhost:8080/temporal/entities/' \
609613 -H 'NGSILD-Tenant: openiot' \
610614 -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
611615 -d 'type=Animal' \
@@ -614,7 +618,7 @@ curl -G -X GET 'http://localhost:8080/temporal/entities/' \
614618 -d 'q=sex==%22male%22' \
615619 -d 'timeproperty=modifiedAt' \
616620 -d 'options=count' \
617- -d 'attrs= sex,heartRate' \
621+ -d 'pick=id,type, sex,heartRate' \
618622 -d 'timerel=before' \
619623 -d 'timeAt=<current_time>' \
620624
@@ -736,24 +740,25 @@ from an Array of one element down to an object because this is the format specif
736740]
737741` ` `
738742
739- The equivalent simplified format can be retrieved by setting `options =temporalValues`
743+ The equivalent simplified format can be retrieved by setting `format =temporalValues`
740744
741745# ### 5️⃣ Request:
742746
743747The following query is requesting data about the bulls within the herd. Because the `sex` attribute is unchanging,
744748` timeproperty=modifiedAt` must be used.
745749
746750` ` ` console
747- curl -G -X GET 'http://localhost:8080/temporal/entities/' \
751+ curl -G -X GET \
752+ 'http://localhost:8080/temporal/entities/' \
748753 -H 'NGSILD-Tenant: openiot' \
749754 -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
750755 -d 'type=Animal' \
751756 -d 'pageSize=2' \
752757 -d 'lastN=3' \
753758 -d 'q=sex==%22male%22' \
754759 -d 'timeproperty=modifiedAt' \
755- -d 'options =temporalValues' \
756- -d 'attrs= sex,heartRate' \
760+ -d 'format =temporalValues' \
761+ -d 'pick=id,type, sex,heartRate' \
757762 -d 'timerel=before' \
758763 -d 'timeAt=<current_time>' \
759764
@@ -818,8 +823,9 @@ curl -G -I -X GET 'http://localhost:8080/temporal/entities/' \
818823 -d 'lastN=3' \
819824 -d 'q=sex==%22male%22' \
820825 -d 'timeproperty=modifiedAt' \
821- -d 'options=temporalValues,count' \
822- -d 'attrs=sex,heartRate' \
826+ -d 'format=temporalValues' \
827+ -d 'options=count' \
828+ -d 'pick=id,type,sex,heartRate' \
823829 -d 'timerel=before' \
824830 -d 'timeAt=<current_time>'
825831` ` `
@@ -855,16 +861,18 @@ Making the same request with an additional `pageAnchor` parameter will retrieve
855861# ### 7️⃣ Request:
856862
857863` ` ` console
858- curl -G -X GET 'http://localhost:8080/temporal/entities/' \
864+ curl -G -X GET \
865+ 'http://localhost:8080/temporal/entities/' \
859866 -H 'NGSILD-Tenant: openiot' \
860867 -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
861868 -d 'type=Animal' \
862869 -d 'pageSize=2' \
863870 -d 'lastN=3' \
864871 -d 'q=sex==%22male%22' \
865872 -d 'timeproperty=modifiedAt' \
866- -d 'options=temporalValues,count' \
867- -d 'attrs=sex,heartRate' \
873+ -d 'format=temporalValues' \
874+ -d 'options=count' \
875+ -d 'pick=id,type,sex,heartRate' \
868876 -d 'timerel=before' \
869877 -d 'timeAt=<current_time>' \
870878 -d 'pageAnchor=urn:ngsi-ld:Animal:pig001' \
@@ -1019,13 +1027,14 @@ also returns the associated animal entity that wears it.
10191027# ### 9️⃣ Request:
10201028
10211029` ` ` console
1022- curl -G -X GET 'http://localhost:8080/temporal/entities/' \
1030+ curl -G -X GET \
1031+ 'http://localhost:8080/temporal/entities/' \
10231032 -H 'NGSILD-Tenant: openiot' \
10241033 -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
10251034 -d 'type=Device' \
10261035 -d 'q=d==%22FORAGING%22' \
1027- -d 'attrs= heartRate,controlledAsset' \
1028- -d 'options =temporalValues' \
1036+ -d 'pick=id,type, heartRate,controlledAsset' \
1037+ -d 'format =temporalValues' \
10291038 -d 'timerel=before' \
10301039 -d 'timeAt=<current_time>' \
10311040 -d 'pageSize=2' \
@@ -1090,15 +1099,16 @@ from a fixed point, and also returns the associated animal entity that wears it.
10901099# ### 9️⃣ Request:
10911100
10921101` ` ` console
1093- curl -G -X GET 'http://localhost:8080/temporal/entities/' \
1102+ curl -G -X GET \
1103+ 'http://localhost:8080/temporal/entities/' \
10941104 -H 'NGSILD-Tenant: openiot' \
10951105 -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
10961106 -d 'type=Device' \
10971107 -d 'georel=near%3BmaxDistance==800' \
10981108 -d 'geometry=Point' \
10991109 -d 'coordinates=%5B13.364,52.52%5D' \
1100- -d 'attrs= heartRate,controlledAsset' \
1101- -d 'options =temporalValues' \
1110+ -d 'pick=id,type, heartRate,controlledAsset' \
1111+ -d 'format =temporalValues' \
11021112 -d 'timerel=before' \
11031113 -d 'timeAt=<current_time>' \
11041114 -d 'pageSize=2' \
0 commit comments