commit | a97ec4579f0b259e813761db5c0ea7a200bcd6dc | [log] [tgz] |
---|---|---|
author | Michael Hanl <micha.hanl@gmail.com> | Mon Apr 28 10:04:39 2014 +0000 |
committer | Michael Hanl <micha.hanl@gmail.com> | Mon Apr 28 10:04:39 2014 +0000 |
tree | 96c75eede855bbe8ecd7daece779648cf2cf5982 | |
parent | c7154a93b93f6a5b06153ea0f704feedf6543bcf [diff] |
annis query serialization integration
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java b/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java index ec32fcb..9356b2d 100644 --- a/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java +++ b/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java
@@ -140,6 +140,8 @@ } else if (ql.toLowerCase().equals("cql")) { // queryLanguageVersion = "1.2"; // set me ast = new CQLTree(query, version); + } else if (ql.toLowerCase().equals("annis")) { + ast = new AqlTree(query); } else { throw new QueryException(ql + " is not a supported query language!"); }