-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngsi-ld #9
Comments
It seems that "https://schema.lab.fiware.org/ld/context" has not enabled CORS.
So I think you hit a json-ld bug in riot. Or the Firware context contains additional transformations which are not spotted by this simple test. |
I suggest to use the context: https://smartdatamodels.org/context.jsonld We made the migration of the previous context to this new one and we resolved some issues regarding JSON-LD format. |
Hello,
I tried to transform the piece of ngsi-ld, presented in the workshop, to another type of rdf. I used jena riot, but there was an error.
tmp$ /opt/apache-jena-3.14.0/bin/riot --output=TURTLE test.json
15:00:47 ERROR riot :: [line: 2, col: 11] Expected BNode or IRI: Got: [STRING:urn:ngsi-ld:AirQualityObserved:RZ:Obsv4567]
My question is now: is this file realy rdf or is my software not compatible yet? (since we use apache jena in java for production backend code)
tmp$ cat test.json
{
"id": "urn:ngsi-ld:AirQualityObserved:RZ:Obsv4567",
"type": "AirQualityObserved",
"dateObserved": {
"type": "Property",
"value": {
"@type": "DateTime",
"@value": "2018-08-07T12:00:00Z"
}
},
"NO2": {
"type": "Property",
"value": 22,
"unitCode": "GP"
},
"refPointOfInterest": {
"type": "Relationship",
"object": "urn:ngsi-ld:PointOfInterest:RZ:MainSquare"
},
"@context": [
"https://schema.lab.fiware.org/ld/context",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
]
}
Kind regards
The text was updated successfully, but these errors were encountered: