diff --git a/src/main/java/de/unirostock/sems/masymos/diff/DiffGatherTask.java b/src/main/java/de/unirostock/sems/masymos/diff/DiffGatherTask.java index b239ae8..567259c 100644 --- a/src/main/java/de/unirostock/sems/masymos/diff/DiffGatherTask.java +++ b/src/main/java/de/unirostock/sems/masymos/diff/DiffGatherTask.java @@ -126,13 +126,13 @@ protected Set getDocumentsWithoutDiff(long limit, String typ parameter.put("limit", limit); // do filtering - String query = "Match (a:DOCUMENT)-[:HAS_SUCCESSOR]->(b:DOCUMENT) Where NOT (a)-->(:DIFF)-->(b) and (a)-->(:MODEL) and (b)-->(:MODEL) Return a,b Limit {limit}"; + String query = "Match (a:DOCUMENT)-[:HAS_SUCCESSOR]->(b:DOCUMENT) Where NOT (a)-->(:DIFF)<--(b) and (a)-->(:MODEL) and (b)-->(:MODEL) Return a,b Limit {limit}"; if( Property.ModelType.CELLML.equals(typeFilter) ) { - query = "Match (a:DOCUMENT)-[:HAS_SUCCESSOR]->(b:DOCUMENT) Where NOT (a)-->(:DIFF)-->(b) and (a)-->(:CELLML_MODEL) and (b)-->(:CELLML_MODEL) Return a,b Limit {limit}"; + query = "Match (a:DOCUMENT)-[:HAS_SUCCESSOR]->(b:DOCUMENT) Where NOT (a)-->(:DIFF)<--(b) and (a)-->(:CELLML_MODEL) and (b)-->(:CELLML_MODEL) Return a,b Limit {limit}"; log.debug("restrict to CELLML models"); } else if( Property.ModelType.SBML.equals(typeFilter) ) { - query = "Match (a:DOCUMENT)-[:HAS_SUCCESSOR]->(b:DOCUMENT) Where NOT (a)-->(:DIFF)-->(b) and (a)-->(:SBML_MODEL) and (b)-->(:SBML_MODEL) Return a,b Limit {limit}"; + query = "Match (a:DOCUMENT)-[:HAS_SUCCESSOR]->(b:DOCUMENT) Where NOT (a)-->(:DIFF)<--(b) and (a)-->(:SBML_MODEL) and (b)-->(:SBML_MODEL) Return a,b Limit {limit}"; log.debug("restrict to SBML models"); }