diff options
author | 2018-05-18 18:24:34 +0200 | |
---|---|---|
committer | 2018-05-18 18:24:34 +0200 | |
commit | 40e18991f67fa616536c1e1ba25126d5cbb3eedd (patch) | |
tree | 3fdb9108589ebf59c546b6bc463e16b01b46292b /Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution | |
parent | Moved partial model management is moved to one project (+1 PM edge fix) (diff) | |
download | VIATRA-Generator-40e18991f67fa616536c1e1ba25126d5cbb3eedd.tar.gz VIATRA-Generator-40e18991f67fa616536c1e1ba25126d5cbb3eedd.tar.zst VIATRA-Generator-40e18991f67fa616536c1e1ba25126d5cbb3eedd.zip |
Query parser update to current Viatra milestone
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/QueryLoader.xtend | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/QueryLoader.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/QueryLoader.xtend index c25bfb07..8f8348b1 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/QueryLoader.xtend +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/QueryLoader.xtend | |||
@@ -21,6 +21,7 @@ import org.eclipse.viatra.query.runtime.api.IQuerySpecification | |||
21 | import org.eclipse.xtext.EcoreUtil2 | 21 | import org.eclipse.xtext.EcoreUtil2 |
22 | 22 | ||
23 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* | 23 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* |
24 | import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternCall | ||
24 | 25 | ||
25 | class QueryLoader { | 26 | class QueryLoader { |
26 | //val parser = new VQLParser | 27 | //val parser = new VQLParser |
@@ -99,7 +100,7 @@ class QueryLoader { | |||
99 | .map[constraints] | 100 | .map[constraints] |
100 | .flatten | 101 | .flatten |
101 | .filter(PatternCompositionConstraint) | 102 | .filter(PatternCompositionConstraint) |
102 | .map[call.patternRef].toSet | 103 | .map[(call as PatternCall).patternRef].toSet |
103 | } | 104 | } |
104 | 105 | ||
105 | def private referredEcoreModels(Set<Pattern> patterns) { | 106 | def private referredEcoreModels(Set<Pattern> patterns) { |