oeg-upm / Chowlk

Tool to transform an ontology diagram into OWL code.
Apache License 2.0
22 stars 6 forks source link

Tuple size mismatch #19

Closed GordianDziwis closed 3 years ago

GordianDziwis commented 3 years ago

This line throws a tuple size mismatch:

https://github.com/oeg-upm/Chowlk/blob/d8fd6b5cb475185889516743c4c4d3b14cb171cc/converter.py#L11

Serge3006 commented 3 years ago

Hi, I've tested this with some data and I've not faced this problem. Is it still giving you errors?

GordianDziwis commented 3 years ago

My static code checker is also complaining:

The function returns 6 values:

https://github.com/oeg-upm/Chowlk/blob/d8fd6b5cb475185889516743c4c4d3b14cb171cc/source/chowlk/transformations.py#L53

But in converter.py it gets unpacked to 4.

Serge3006 commented 3 years ago

Hi, you were right, the code was not updated, sorry for that, now it should be solved. If you are using the converter.py please check that now we also support ontology and rdf data, so the new command line would be:

python converter.py path/to/diagram.xml output/path/ontology.ttl --type ontology --format ttl

GordianDziwis commented 3 years ago

Works fine now, thanks a lot!