Skip to content
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

Adding links to elements will break the export #53

Open
GordianDziwis opened this issue Feb 18, 2023 · 2 comments
Open

Adding links to elements will break the export #53

GordianDziwis opened this issue Feb 18, 2023 · 2 comments

Comments

@GordianDziwis
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants