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

Problem with fwd_opt #298

Open
anthonyanjorin opened this issue Jul 4, 2020 · 0 comments
Open

Problem with fwd_opt #298

anthonyanjorin opened this issue Jul 4, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@anthonyanjorin
Copy link
Contributor

anthonyanjorin commented Jul 4, 2020

The current example is a very simple TGG.

In src/bag2bag.runtime/...GEN_Run.java the model generator is already configured to apply each TGG rule only once and then finally to delete the target model. There's a flag in the code to either (1) delete the target model node too, or (2) delete only all target elements but leave the target model.

Ideally, this shouldn't make a difference and we should be able to cope with both scenarios. At the moment however:

  1. Nothing happens (no non-trivial matches)
  2. Matches are collected (seems to make sense), but then the following exception is thrown:
13631 [main] ERROR on.neo.cypher.models.NeoCoreBuilder  - org.neo4j.driver.v1.exceptions.ClientException: Node(934) already exists with label `NeoCore__Model` and property `ename` = 'Bag2Bag_Target'
org.neo4j.driver.v1.exceptions.ClientException: Node(934) already exists with label `NeoCore__Model` and property `ename` = 'Bag2Bag_Target'
	at org.neo4j.driver.internal.util.Futures.blockingGet(Futures.java:122)
	at org.neo4j.driver.internal.ExplicitTransaction.close(ExplicitTransaction.java:117)
	at org.emoflon.neo.cypher.models.NeoCoreBuilder.executeQuery(NeoCoreBuilder.java:130)
	at org.emoflon.neo.cypher.rules.NeoRule.applyBatch(NeoRule.java:138)
	at org.emoflon.neo.cypher.rules.NeoRule.applyAll(NeoRule.java:119)
	at org.emoflon.neo.engine.modules.NeoGenerator.applyMatches(NeoGenerator.java:158)
	at org.emoflon.neo.engine.generator.Generator.lambda$0(Generator.java:75)
	at java.base/java.util.Map.forEach(Map.java:661)
	at org.emoflon.neo.engine.generator.Generator.generate(Generator.java:74)
	at bag2bag.runtime.Bag2Bag_FWD_OPT_Run.run(Bag2Bag_FWD_OPT_Run.java:60)
	at bag2bag.runtime.Bag2Bag_FWD_OPT_Run.main(Bag2Bag_FWD_OPT_Run.java:46)

fwd_opt_problem.zip

@anthonyanjorin anthonyanjorin added the bug Something isn't working label Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants