Duplicated entities from imported ontologies
grigobog opened this issue · comments
grigobog commented
There is an issue during saving instances with object properties referencing other instances from imported ontology. The referenced instances are persisted in the new ontology (with set cascade=PERSIST on has_role_part, otherwise error occurs).
E.g. ontology with id http://onto.fel.cvut.cz/ontologies/ucl/example/jednani-sag-bpmn has individuals with type model.bbo.model,Role with has_role_part object property referencing to another ontology (http://onto.fel.cvut.cz/ontologies/ucl/example/jednani-sag-organization-structure).
Steps to reproduce:
- mvn clean
- mvn package
- mvn aspectj-maven-plugin:1.12.6:compile
- run BpmnReaderServiceTest#mapAndWriteTest which should pass, but jednani-sag-bpmn.ttl contains duplicted referenced individuals from imported ontology (e.g. http://onto.fel.cvut.cz/ontologies/ucl/example/jednani-sag-organization-structure/ředitel_sekce).
Expected jednani-sag-bpmn.ttl contains no individuals from imported ontology (or at least containing only references).
Miroslav Blaško commented
@grigobog please update the issue as it was based on old source code
grigobog commented
Can't reproduce, probably was fixed during implementation.