fix: expectations and exclusions in tutorial 102 - NGSI-LD - Working with context#38
Conversation
|
I was working on those tutorials to improve the execution and resolve some issues. At the moment, I prefer to check the @context because I found some discrepancies. Keep in mind that we are testing the tutorials not the functionality of the brokers. |
The first two points of the PR are strictly about NGSI-LD compliance, nothing related with the brokers. And you are testing the tutorials ... using context brokers. So it is a bit harsh to consider a broker is failing whereas it is just not using the same default version of the core context. |
4cb079d to
b7c4834
Compare
|
synced with last version on develop. |
|
any news on this PR? |
b7c4834 to
f886103
Compare
|
I updated some expectations in the PR:
I tested with Scorpio and Stellio which both return the same results. Since they use a JSON-LD compliant library (a custom version of JSONLD-Java for Scorpio and Titanium for Stellio), we can be confident that these are the correct expectations. |
|
Up! |
|
I believe that when we send "@context": [
"http://context/ngsi-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld"
]The reasoning is that terms such as Similarly if a response was returned with just a user What is subject for debate, is "@context": [
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld"
]OR "@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld" |
Agree. In the ETSI Test Suite, we allow both when only one context entry is expected. |
There should be no issue due to protection since the terms are not defined differently simply repeated. Ideally if I could be certain all brokers worked the same way, and added {
"@context": [
"http://context/user-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld"
]
}And just use |
addressproperty (streetAddress, ...) are not in ngsi-context.jsonld. thus, when they are created with this context, they are expanded using the default vocab from the core context (https://uri.etsi.org/ngsi-ld/default-context/streetAddressand nothttps://schema.org/streetAddress) and when compacting without specifying a context, they are "correctly" compacted (streetAddress). See this link for a demo in the JSON-LD playground.https://schema.org/nameandhttps://uri.fiware.org/ns/dataModels#categoryare respectively compacted toschema:nameandfiware:category. See this link for a demo in the JSON-LD playground