Skip to content

Commit

Permalink
fixing the query to gather missing diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
binfalse committed Jul 12, 2017
1 parent 5e77d13 commit fa07b7f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ protected Set<DiffGenerationTask> 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");
}

Expand Down

0 comments on commit fa07b7f

Please sign in to comment.