From b181baf6e3b25656291c58fd0c6e638308238ad1 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Fri, 10 May 2024 08:04:04 +0200 Subject: [PATCH 1/3] fix: expectations and exclusions in tutorial 102 --- .../102.ld.04.response.json | 16 ++++++++-------- .../102.ld.07.response.json | 4 ++-- .../102.ld.10.response.json | 8 ++++---- .../102.ld.11.response.json | 8 ++++---- .../102.ld.12.response.json | 4 ++-- .../response102-04.excludes | 2 ++ .../response102-05.excludes | 1 + .../response102-07.excludes | 1 + 8 files changed, 24 insertions(+), 20 deletions(-) diff --git a/features/data/102.ld.working_with_context/102.ld.04.response.json b/features/data/102.ld.working_with_context/102.ld.04.response.json index 5a9f470..d865378 100644 --- a/features/data/102.ld.working_with_context/102.ld.04.response.json +++ b/features/data/102.ld.working_with_context/102.ld.04.response.json @@ -6,10 +6,10 @@ "https://schema.org/address": { "type": "Property", "value": { - "https://schema.org/streetAddress": "Großer Stern 1", - "https://schema.org/addressRegion": "Berlin", - "https://schema.org/addressLocality": "Tiergarten", - "https://schema.org/postalCode": "10557" + "streetAddress": "Großer Stern 1", + "addressRegion": "Berlin", + "addressLocality": "Tiergarten", + "postalCode": "10557" }, "https://uri.fiware.org/ns/dataModels#verified": { "type": "Property", @@ -39,10 +39,10 @@ "https://schema.org/address": { "type": "Property", "value": { - "https://schema.org/streetAddress": "Straße des 17. Juni", - "https://schema.org/addressRegion": "Berlin", - "https://schema.org/addressLocality": "Tiergarten", - "https://schema.org/postalCode": "10557" + "streetAddress": "Straße des 17. Juni", + "addressRegion": "Berlin", + "addressLocality": "Tiergarten", + "postalCode": "10557" }, "https://uri.fiware.org/ns/dataModels#verified": { "type": "Property", diff --git a/features/data/102.ld.working_with_context/102.ld.07.response.json b/features/data/102.ld.working_with_context/102.ld.07.response.json index e3a2920..4531fa0 100644 --- a/features/data/102.ld.working_with_context/102.ld.07.response.json +++ b/features/data/102.ld.working_with_context/102.ld.07.response.json @@ -12,8 +12,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "name": "Big Red Barn", - "category": "barn", + "schema:name": "Big Red Barn", + "fiware:category": "barn", "location": { "type": "Point", "coordinates": [13.3698, 52.5163] diff --git a/features/data/102.ld.working_with_context/102.ld.10.response.json b/features/data/102.ld.working_with_context/102.ld.10.response.json index 3320da1..49f1c42 100644 --- a/features/data/102.ld.working_with_context/102.ld.10.response.json +++ b/features/data/102.ld.working_with_context/102.ld.10.response.json @@ -12,8 +12,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "name": "Victory Farm", - "category": "farm", + "schema:name": "Victory Farm", + "fiware:category": "farm", "location": { "type": "Point", "coordinates": [13.3505, 52.5144] @@ -32,8 +32,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "name": "Big Red Barn", - "category": "barn", + "schema:name": "Big Red Barn", + "fiware:category": "barn", "location": { "type": "Point", "coordinates": [13.3698, 52.5163] diff --git a/features/data/102.ld.working_with_context/102.ld.11.response.json b/features/data/102.ld.working_with_context/102.ld.11.response.json index 3320da1..49f1c42 100644 --- a/features/data/102.ld.working_with_context/102.ld.11.response.json +++ b/features/data/102.ld.working_with_context/102.ld.11.response.json @@ -12,8 +12,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "name": "Victory Farm", - "category": "farm", + "schema:name": "Victory Farm", + "fiware:category": "farm", "location": { "type": "Point", "coordinates": [13.3505, 52.5144] @@ -32,8 +32,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "name": "Big Red Barn", - "category": "barn", + "schema:name": "Big Red Barn", + "fiware:category": "barn", "location": { "type": "Point", "coordinates": [13.3698, 52.5163] diff --git a/features/data/102.ld.working_with_context/102.ld.12.response.json b/features/data/102.ld.working_with_context/102.ld.12.response.json index 4d61145..d77fd19 100644 --- a/features/data/102.ld.working_with_context/102.ld.12.response.json +++ b/features/data/102.ld.working_with_context/102.ld.12.response.json @@ -8,8 +8,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "name": "Big Red Barn", - "category": "barn", + "schema:name": "Big Red Barn", + "fiware:category": "barn", "location": { "type": "Point", "coordinates": [13.3698, 52.5163] diff --git a/features/data/102.ld.working_with_context/response102-04.excludes b/features/data/102.ld.working_with_context/response102-04.excludes index e69de29..9df7888 100644 --- a/features/data/102.ld.working_with_context/response102-04.excludes +++ b/features/data/102.ld.working_with_context/response102-04.excludes @@ -0,0 +1,2 @@ +root[0]['@context'] +root[1]['@context'] \ No newline at end of file diff --git a/features/data/102.ld.working_with_context/response102-05.excludes b/features/data/102.ld.working_with_context/response102-05.excludes index e69de29..1f8da56 100644 --- a/features/data/102.ld.working_with_context/response102-05.excludes +++ b/features/data/102.ld.working_with_context/response102-05.excludes @@ -0,0 +1 @@ +root['@context'][1] \ No newline at end of file diff --git a/features/data/102.ld.working_with_context/response102-07.excludes b/features/data/102.ld.working_with_context/response102-07.excludes index e69de29..1937dea 100644 --- a/features/data/102.ld.working_with_context/response102-07.excludes +++ b/features/data/102.ld.working_with_context/response102-07.excludes @@ -0,0 +1 @@ +root[0]['@context'][1] \ No newline at end of file From 813a50df90b5b2fa7605235f0d31b4aad9ceb1cc Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Fri, 17 May 2024 08:01:17 +0200 Subject: [PATCH 2/3] add default core context for Stellio --- .../data/102.ld.working_with_context/response102-04.excludes | 2 -- .../data/102.ld.working_with_context/response102-05.excludes | 1 - .../data/102.ld.working_with_context/response102-07.excludes | 1 - 3 files changed, 4 deletions(-) diff --git a/features/data/102.ld.working_with_context/response102-04.excludes b/features/data/102.ld.working_with_context/response102-04.excludes index 9df7888..e69de29 100644 --- a/features/data/102.ld.working_with_context/response102-04.excludes +++ b/features/data/102.ld.working_with_context/response102-04.excludes @@ -1,2 +0,0 @@ -root[0]['@context'] -root[1]['@context'] \ No newline at end of file diff --git a/features/data/102.ld.working_with_context/response102-05.excludes b/features/data/102.ld.working_with_context/response102-05.excludes index 1f8da56..e69de29 100644 --- a/features/data/102.ld.working_with_context/response102-05.excludes +++ b/features/data/102.ld.working_with_context/response102-05.excludes @@ -1 +0,0 @@ -root['@context'][1] \ No newline at end of file diff --git a/features/data/102.ld.working_with_context/response102-07.excludes b/features/data/102.ld.working_with_context/response102-07.excludes index 1937dea..e69de29 100644 --- a/features/data/102.ld.working_with_context/response102-07.excludes +++ b/features/data/102.ld.working_with_context/response102-07.excludes @@ -1 +0,0 @@ -root[0]['@context'][1] \ No newline at end of file From f886103c726e411d1097f0525d6104a7d4cd1164 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Thu, 26 Dec 2024 08:01:00 +0100 Subject: [PATCH 3/3] fix: update extensions following changes in contexts used by the tutorial --- .../102.ld.04.response.json | 16 ++++++++-------- .../102.ld.05.response.json | 5 +---- .../102.ld.06.response.json | 10 ++-------- .../102.ld.07.response.json | 4 ++-- .../102.ld.09.response.json | 5 +---- .../102.ld.10.response.json | 8 ++++---- .../102.ld.11.response.json | 8 ++++---- .../102.ld.12.response.json | 4 ++-- 8 files changed, 24 insertions(+), 36 deletions(-) diff --git a/features/data/102.ld.working_with_context/102.ld.04.response.json b/features/data/102.ld.working_with_context/102.ld.04.response.json index d865378..5a9f470 100644 --- a/features/data/102.ld.working_with_context/102.ld.04.response.json +++ b/features/data/102.ld.working_with_context/102.ld.04.response.json @@ -6,10 +6,10 @@ "https://schema.org/address": { "type": "Property", "value": { - "streetAddress": "Großer Stern 1", - "addressRegion": "Berlin", - "addressLocality": "Tiergarten", - "postalCode": "10557" + "https://schema.org/streetAddress": "Großer Stern 1", + "https://schema.org/addressRegion": "Berlin", + "https://schema.org/addressLocality": "Tiergarten", + "https://schema.org/postalCode": "10557" }, "https://uri.fiware.org/ns/dataModels#verified": { "type": "Property", @@ -39,10 +39,10 @@ "https://schema.org/address": { "type": "Property", "value": { - "streetAddress": "Straße des 17. Juni", - "addressRegion": "Berlin", - "addressLocality": "Tiergarten", - "postalCode": "10557" + "https://schema.org/streetAddress": "Straße des 17. Juni", + "https://schema.org/addressRegion": "Berlin", + "https://schema.org/addressLocality": "Tiergarten", + "https://schema.org/postalCode": "10557" }, "https://uri.fiware.org/ns/dataModels#verified": { "type": "Property", diff --git a/features/data/102.ld.working_with_context/102.ld.05.response.json b/features/data/102.ld.working_with_context/102.ld.05.response.json index cc769f1..da21d80 100644 --- a/features/data/102.ld.working_with_context/102.ld.05.response.json +++ b/features/data/102.ld.working_with_context/102.ld.05.response.json @@ -1,8 +1,5 @@ { - "@context": [ - "http://context/ngsi-context.jsonld", - "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" - ], + "@context": "http://context/ngsi-context.jsonld", "id": "urn:ngsi-ld:Building:farm001", "type": "Building", "category": { diff --git a/features/data/102.ld.working_with_context/102.ld.06.response.json b/features/data/102.ld.working_with_context/102.ld.06.response.json index 1df44fe..abc19d1 100644 --- a/features/data/102.ld.working_with_context/102.ld.06.response.json +++ b/features/data/102.ld.working_with_context/102.ld.06.response.json @@ -1,9 +1,6 @@ [ { - "@context": [ - "http://context/ngsi-context.jsonld", - "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" - ], + "@context": "http://context/ngsi-context.jsonld", "id": "urn:ngsi-ld:Building:farm001", "type": "Building", "address": { @@ -20,10 +17,7 @@ } }, { - "@context": [ - "http://context/ngsi-context.jsonld", - "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" - ], + "@context": "http://context/ngsi-context.jsonld", "id": "urn:ngsi-ld:Building:barn002", "type": "Building", "address": { diff --git a/features/data/102.ld.working_with_context/102.ld.07.response.json b/features/data/102.ld.working_with_context/102.ld.07.response.json index 4531fa0..a4ec281 100644 --- a/features/data/102.ld.working_with_context/102.ld.07.response.json +++ b/features/data/102.ld.working_with_context/102.ld.07.response.json @@ -12,8 +12,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "schema:name": "Big Red Barn", - "fiware:category": "barn", + "https://schema.org/name": "Big Red Barn", + "https://uri.fiware.org/ns/dataModels#category": "barn", "location": { "type": "Point", "coordinates": [13.3698, 52.5163] diff --git a/features/data/102.ld.working_with_context/102.ld.09.response.json b/features/data/102.ld.working_with_context/102.ld.09.response.json index cbe93c9..277a41b 100644 --- a/features/data/102.ld.working_with_context/102.ld.09.response.json +++ b/features/data/102.ld.working_with_context/102.ld.09.response.json @@ -1,9 +1,6 @@ [ { - "@context": [ - "http://context/ngsi-context.jsonld", - "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" - ], + "@context": "http://context/ngsi-context.jsonld", "id": "urn:ngsi-ld:Building:barn002", "type": "Building", "address": { diff --git a/features/data/102.ld.working_with_context/102.ld.10.response.json b/features/data/102.ld.working_with_context/102.ld.10.response.json index 49f1c42..30531e2 100644 --- a/features/data/102.ld.working_with_context/102.ld.10.response.json +++ b/features/data/102.ld.working_with_context/102.ld.10.response.json @@ -12,8 +12,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "schema:name": "Victory Farm", - "fiware:category": "farm", + "https://schema.org/name": "Victory Farm", + "https://uri.fiware.org/ns/dataModels#category": "farm", "location": { "type": "Point", "coordinates": [13.3505, 52.5144] @@ -32,8 +32,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "schema:name": "Big Red Barn", - "fiware:category": "barn", + "https://schema.org/name": "Big Red Barn", + "https://uri.fiware.org/ns/dataModels#category": "barn", "location": { "type": "Point", "coordinates": [13.3698, 52.5163] diff --git a/features/data/102.ld.working_with_context/102.ld.11.response.json b/features/data/102.ld.working_with_context/102.ld.11.response.json index 49f1c42..30531e2 100644 --- a/features/data/102.ld.working_with_context/102.ld.11.response.json +++ b/features/data/102.ld.working_with_context/102.ld.11.response.json @@ -12,8 +12,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "schema:name": "Victory Farm", - "fiware:category": "farm", + "https://schema.org/name": "Victory Farm", + "https://uri.fiware.org/ns/dataModels#category": "farm", "location": { "type": "Point", "coordinates": [13.3505, 52.5144] @@ -32,8 +32,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "schema:name": "Big Red Barn", - "fiware:category": "barn", + "https://schema.org/name": "Big Red Barn", + "https://uri.fiware.org/ns/dataModels#category": "barn", "location": { "type": "Point", "coordinates": [13.3698, 52.5163] diff --git a/features/data/102.ld.working_with_context/102.ld.12.response.json b/features/data/102.ld.working_with_context/102.ld.12.response.json index d77fd19..da6eccd 100644 --- a/features/data/102.ld.working_with_context/102.ld.12.response.json +++ b/features/data/102.ld.working_with_context/102.ld.12.response.json @@ -8,8 +8,8 @@ "addressLocality": "Tiergarten", "postalCode": "10557" }, - "schema:name": "Big Red Barn", - "fiware:category": "barn", + "https://schema.org/name": "Big Red Barn", + "https://uri.fiware.org/ns/dataModels#category": "barn", "location": { "type": "Point", "coordinates": [13.3698, 52.5163]