Question about concise/keyvalue on POST #883
-
Hello everyone, I'm currently using stellio-context-broker in my project and tried to do concise-ld all over, i can do it everywhere except when i try to post new entity or patch then, it seem that something is missing because i can do concise-ld on get and subscription. This is an exemple of entity that i tried to post, the context is available here : https://hdp.dev.eridanis.fr/api-v2/ngsi.ld if you want to try it. I'm still quite an amateur about ngsi-ld and stellio so any help would be helpfull ! {
"@context": [
"https://hdp.dev.eridanis.fr/api-v2/api.context-ngsi.jsonld"
],
"id": "urn:ngsi-ld:Patient:PatientTest2",
"type": "Patient",
"name": "test sub",
"gender": "F",
"birthDate": {
"@value": "1958-12-01T02:00:00.000Z"
},
"maritalStatus": "C",
"telecom": "123456789",
"active": "S",
"data": {
"CPFNumber": "54299995091",
"identityNumber": "6042889769",
"phoneNumber": "999073121",
"mobilePhoneNumber": null,
"motherName": "Maria ROSA",
"fatherName": "José ROSA",
"partnerName": "Dante BORTONCELLO",
"tutorName": null,
"bloodType": null,
"isDonor": null
},
"managingOrganization": "Tacchini Hospital",
"dataProvider": "Tacchini_MV"
} exemple of error i get {
"type": "https://uri.etsi.org/ngsi-ld/errors/BadRequestData",
"title": "The request includes input data which does not meet the requirements of the operation",
"status": 400,
"detail": "Entity has unknown attributes types: {https://uri.fiware.org/ns/data-models#active=[{@value=S}], https://uri.fiware.org/ns/data-models#birthDate=[{@value=1958-12-01T02:00:00.000Z}], https://uri.etsi.org/ngsi-ld/data=[{https://uri.fiware.org/ns/data-models#CPFNumber=[{@value=54299995091}], https://uri.fiware.org/ns/data-models#fatherName=[{@value=José ROSA}], https://uri.fiware.org/ns/data-models#identityNumber=[{@value=6042889769}], https://uri.fiware.org/ns/data-models#motherName=[{@value=Maria ROSA}], https://uri.fiware.org/ns/data-models#partnerName=[{@value=Dante BORTONCELLO}], https://uri.fiware.org/ns/data-models#phoneNumber=[{@value=999073121}]}], https://uri.fiware.org/ns/data-models#dataProvider=[{@value=Tacchini_MV}], https://uri.fiware.org/ns/data-models#gender=[{@value=F}], https://uri.fiware.org/ns/data-models#managingOrganization=[{@value=Tacchini Hospital}], https://uri.fiware.org/ns/data-models#maritalStatus=[{@value=C}], https://uri.etsi.org/ngsi-ld/name=[{@value=test sub}], https://uri.fiware.org/ns/data-models#telecom=[{@value=123456789}]}",
"instance": "/ngsi-ld/v1/entities"
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @JordyDias93, Unfortunately, Stellio does not yet support the |
Beta Was this translation helpful? Give feedback.
Hello @JordyDias93,
Unfortunately, Stellio does not yet support the
concise
representation (but it is in the short term roadmap). It currently only supports the normalized representation when creating / updating entities.