-
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
Onto-ns expects entity in the "wrong" format #38
Comments
Could you please give a reference to the array data model? What do to the arrays look like? |
The references are the two examples of entities stored in the Atlas MongoDB as mentioned in the issue. I removed the one I created that were not working. |
You can also have a look here https://gitlab.sintef.no/team40/demonstrators/mylittledemo-datamodel/-/tree/main/tests/data) and see the difference between premod_simple_ version 0.1 and 0.2 |
Ah, I meant more an example of the array data models, not the dict data models, which already exists. I'll take a look in GitLab links - cheers 👍 |
Hmm. Starting to implement this I was thinking: The models currently used in the service are only meant for the "returned" entities, i.e., not to validate the created entities. |
Some DLite entites are defined with an array of dimensions and an array of properties. onto-ns seems to expect that to be a dictionnary of dimensions or properties.
Test:
As it is, the problem is solved by converting the array to dictionnaries. It would be better if it can handle the array case.
The text was updated successfully, but these errors were encountered: