oeg-upm / Chowlk

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

Adding links to elements will break the export #53

Open GordianDziwis opened 1 year ago

GordianDziwis commented 1 year ago

After adding a link to a box this happens:

Traceback (most recent call last):
  File "converter.py", line 49, in <module>
    main(args.diagram_path, args.output_path, args.type, args.format)
  File "converter.py", line 11, in main
    ontology_turtle, ontology_xml, namespaces, errors = transform_ontology(root)
  File "/home/beavis/repositories/Chowlk/source/chowlk/transformations.py", line 15, in transform_ontology
    concepts, attribute_blocks, relations, individuals, anonymous_concepts, hexagons, metadata, namespaces, rhombuses, errors, anonimous_classes = finder.find_elements()
  File "/home/beavis/repositories/Chowlk/source/chowlk/finding.py", line 1306, in find_elements
    relations = self.find_relations()
  File "/home/beavis/repositories/Chowlk/source/chowlk/finding.py", line 69, in find_relations
    elif id == child2.attrib["parent"]:
KeyError: 'parent'
Sergio-Carulli commented 4 months ago

Can you send us an example of the input diagram? For example, instead of defining a class through a namespace, it is possible to define it by typing directly the URI image

GordianDziwis commented 2 months ago

I meant, adding a link to the box with a right click and selecting the corresponding menu entry.