diff --git a/src/main/java/org/aksw/iguana/cc/query/QueryData.java b/src/main/java/org/aksw/iguana/cc/query/QueryData.java index 3f71c0b92..617e8981b 100644 --- a/src/main/java/org/aksw/iguana/cc/query/QueryData.java +++ b/src/main/java/org/aksw/iguana/cc/query/QueryData.java @@ -41,6 +41,7 @@ public static List generate(Collection queries) { } public static boolean checkUpdate(InputStream query) { + public static boolean checkIfUpdate(InputStream query) { try { UpdateFactory.read(query); // Throws an exception if the query is not an update query return true; diff --git a/src/main/java/org/aksw/iguana/cc/query/handler/QueryHandler.java b/src/main/java/org/aksw/iguana/cc/query/handler/QueryHandler.java index 34a3ebb1b..8401a3370 100644 --- a/src/main/java/org/aksw/iguana/cc/query/handler/QueryHandler.java +++ b/src/main/java/org/aksw/iguana/cc/query/handler/QueryHandler.java @@ -335,7 +335,7 @@ private QueryList initializeTemplateQueryHandler(QuerySource templateSource) thr return new QueryData(index.getAndIncrement(), QueryData.QueryType.TEMPLATE, null); } else { // query is neither a template nor an instance - final var update = QueryData.checkUpdate(new ByteArrayInputStream(query.getBytes())); + final var update = QueryData.checkIfUpdate(new ByteArrayInputStream(query.getBytes())); if (config.template.individualResults) { return new QueryData(index.getAndIncrement() - templateIndex.get(), update ? QueryData.QueryType.UPDATE : QueryData.QueryType.DEFAULT, null); }