typhon-project / typhonql

Typhon Query Language
Eclipse Public License 2.0
4 stars 1 forks source link

[Information Request] #82

Closed 5h4m4n closed 4 years ago

5h4m4n commented 4 years ago

Hi, we are getting an error when ingesting data in the API api/update at the ql level, the error says Invalid Typhon ML XMI node and then proceeds to print out an xmi structure of our model "schema", could you explain a bit what this error corresponds to? do we throw this error when the data going in is not the same as what the model file has? Do you have any suggestion of where to look in the code to resolve this?

DavyLandman commented 4 years ago

The problem is that the XMI of ML has changed a few times. Are you on the latest version of ML with this model?

The last version of QL should be in sync with that and that version should come to master this week.

But could you share the model you have, which versions of ML and ql you used?

G10rg0s commented 4 years ago

Good morning. The versions of Ml and Ql we are using are both : 1.0.0.202005251732

G10rg0s commented 4 years ago

I still get the same error every time i try to ingest some data .I have the latest versions of both Ml & Ql. Sorry for not showing you the model we use last time. Here is our model (quite big :p ). https://gitlab.com/tmavroeid/typhon-ote/-/blob/master/model/OTEML.tml

tvdstorm commented 4 years ago

Hi @G10rg0s I don't seem to have access to the gitlab file (says page not found). Can you send it to me by mail? Thanks.

tvdstorm commented 4 years ago

Hi @G10rg0s I've successfully loaded your model into TyphonQL, so I think the latest version should be able to process it. One remark however, you use string without a bound. Currently string requires a size as in, e.g., string[256], otherwise it gets size 0, which is not what you want. For arbitrary size use text.