We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to create following example:
{ "id": "urn:ngsi-ld:vehicle:Abc123", "type": "vehicle", "@context": ["https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"], "room": { "type": "Property", "value": 23, "temp": { "type": "Property", "value": 40, "temp1": { "type": "Property", "value": 54 } }, "presure": { "type": "Property", "value": 40, "tempPre": { "type": "Property", "value": 54 } } } }
The text was updated successfully, but these errors were encountered:
One way to build that entity.
from ngsildclient import Entity e = Entity("Vehicle", "Abc123") e.prop("room", 23).prop("temp", 40, nested=True).prop("temp1", 54, nested=True) e.prop("pressure", 40).prop("tempPre", 54, nested=True)
Sorry, something went wrong.
In my Example presure is the subproperty of "room" but your code is putting the property "presure" outside room
You should check your update function for all ngsild cases
No branches or pull requests
How to create following example:
{
"id": "urn:ngsi-ld:vehicle:Abc123",
"type": "vehicle",
"@context": ["https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"],
"room": {
"type": "Property",
"value": 23,
"temp": {
"type": "Property",
"value": 40,
"temp1": {
"type": "Property",
"value": 54
}
},
"presure": {
"type": "Property",
"value": 40,
"tempPre": {
"type": "Property",
"value": 54
}
}
}
}
The text was updated successfully, but these errors were encountered: