You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I send GET HTTP request to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001"
53
+
When I prepare a GET HTTP request for "obtaining entity data by Id" to "http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001"
54
+
And I set header Accept to application/ld+json
55
+
And I perform the request
81
56
Then I receive a HTTP "200" response code from Stellio with the body equal to "response601-05.json"
82
57
83
58
84
-
#
85
-
# Request 6
86
-
# Note: the body response is quite different from what expected. In particular:
87
-
# - the attribute "@context" is at the beginning of the entity and not at the end as expected
88
-
# - the attribute "category" is of a wrong type and misplaced.
89
-
# - in the file "response601_06" the first entity is as provided by Stellio while the second entity
90
-
# is left as expected in the tutorial to let understand the differences to make easier the correct the tutorial.
91
-
# Note: the request itself in the tutorial is wrong as the url appears twice.
92
-
#
93
59
Scenario: [6] OBTAIN ENTITY DATA BY TYPE
94
-
When I send GET HTTP request to Stellio at "http://localhost:1026/ngsi-ld/v1/entities"
95
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
96
-
And With parameters "type$Building$options$keyValues"
60
+
When I set the "Accept" header with the value "application/ld+json"
61
+
And I set the "Link" header with the value "<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
62
+
And the params equal to "type=Building"
63
+
And the params equal to "options=keyValues"
64
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities"
65
+
And I send a GET HTTP request to that url
97
66
Then I receive from Stellio "200" response code with the body equal to "response601-06.json"
98
67
99
68
100
-
#
101
-
# Request 7
102
-
# Note: the body response is quite different from what expected. In particular:
103
-
# - the attribute "@context" is at the beginning of the entity and not at the end as expected
104
-
# - the attribute "category" is of a wrong type and misplaced.
105
-
# The file "response601_07" is updated as provided by Stellio to let understand how to correct the tutorial.
106
-
#
107
69
Scenario: [7] FILTER CONTEXT DATA BY COMPARING THE VALUES OF AN ATTRIBUTE
108
-
When I send GET HTTP request to Stellio at "http://localhost:1026/ngsi-ld/v1/entities"
109
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
110
-
And With parameters "type$Building$q$name=="Checkpoint Markt"$options$keyValues"
70
+
When I set the "Accept" header with the value "application/ld+json"
71
+
And I set the "Link" header with the value "<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
72
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities?type=Building&q=name==%22Checkpoint%20Markt%22&options=keyValues"
73
+
And I send a GET HTTP request to that url
111
74
Then I receive from Stellio "200" response code with the body equal to "response601-07.json"
112
75
113
76
114
-
#
115
-
# Request 8
116
-
# Note: the body response is quite different from what expected. In particular:
117
-
# - the attribute "@context" is at the beginning of the entity and not at the end as expected
118
-
# - the attribute "category" is of a wrong type and misplaced.
119
-
# The file "response601_08" is left unchanged.
120
-
#
121
77
Scenario: [8] FILTER CONTEXT DATA BY COMPARING THE VALUES OF AN ATTRIBUTE IN AN ARRAY
122
-
When I send GET HTTP request to Stellio at "http://localhost:1026/ngsi-ld/v1/entities"
123
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
124
-
And With parameters "type$Building$q$category=="commercial","office"$options$keyValues"
78
+
When I set the "Accept" header with the value "application/ld+json"
79
+
And I set the "Link" header with the value "<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
80
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities?type=Building&q=category==%22commercial%22,%22office%22&options=keyValues"
81
+
And I send a GET HTTP request to that url
125
82
Then I receive from Stellio "200" response code with the body equal to "response601-08.json"
126
83
127
84
128
-
#
129
-
# Request 9
130
-
# Note: the body response is quite different from what expected. In particular:
131
-
# - the attribute "@context" is at the beginning of the entity and not at the end as expected
132
-
# - the attribute "category" is of a wrong type and misplaced.
133
-
# The file "response601_09" is left unchanged.
134
-
#
135
85
Scenario: [9] FILTER CONTEXT DATA BY COMPARING THE VALUES OF A SUB-ATTRIBUTE
136
-
When I send GET HTTP request to Stellio at "http://localhost:1026/ngsi-ld/v1/entities"
137
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
138
-
And With parameters "type$Building$q$address[addressLocality]=="Kreuzberg"$options$keyValues"
86
+
When I set the "Accept" header with the value "application/ld+json"
87
+
And I set the "Link" header with the value "<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
88
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities?type=Building&q=address%5BaddressLocality%5D==%22Kreuzberg%22&options=keyValues"
89
+
And I send a GET HTTP request to that url
139
90
Then I receive from Stellio "200" response code with the body equal to "response601-09.json"
140
91
141
92
142
-
#
143
-
# Request 10
144
-
# Note: the body response is quite different from what expected. In particular:
145
-
# - the attribute "@context" is at the beginning of the entity and not at the end as expected
146
-
# - the attribute "category" is of a wrong type and misplaced.
147
-
# The file "response601_10" is left unchanged.
148
-
#
149
93
Scenario: [10] FILTER CONTEXT DATA BY QUERYING METADATA
150
-
When I send GET HTTP request to Stellio at "http://localhost:1026/ngsi-ld/v1/entities"
151
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
152
-
And With parameters "type$Building$q$address.verified==true$options$keyValues"
94
+
When I set the "Accept" header with the value "application/json"
95
+
And I set the "Link" header with the value "<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
96
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities?type=Building&q=address.verified==true&options=keyValues"
97
+
And I send a GET HTTP request to that url
153
98
Then I receive from Stellio "200" response code with the body equal to "response601-10.json"
154
99
155
100
156
-
#
157
-
# Request 11
158
-
# Note: the body response is quite different from what expected. In particular:
159
-
# - the attribute "@context" is at the beginning of the entity and not at the end as expected
160
-
# - the attribute "category" is of a wrong type and misplaced.
161
-
# The file "response601_11" is left unchanged.
162
-
#
163
101
Scenario: [11] FILTER CONTEXT DATA BY COMPARING THE VALUES OF A GEO:JSON ATTRIBUTE
164
-
When I send GET HTTP request to Stellio at "http://localhost:1026/ngsi-ld/v1/entities"
165
-
And With header 'Link$<https://smartdatamodels.org/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
166
-
And With parameters "type$Building$geometry$Point$coordinates$[13.3777,52.5162]$georel$near;maxDistance==2000$options$keyValues"
102
+
When I set the "Accept" header with the value "application/json"
103
+
And I set the "Link" header with the value "<https://smart-data-models.github.io/dataModel.Building/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json""
104
+
And I set the url to "http://localhost:1026/ngsi-ld/v1/entities?type=Building&geometry=Point&coordinates=%5B13.3777,52.5162%5D&georel=near%3BmaxDistance==2000&options=keyValues"
105
+
And I send a GET HTTP request to that url
167
106
Then I receive from Stellio "200" response code with the body equal to "response601-11.json"
0 commit comments