SPARQL builder and CQL-to-SPARQL converter SUP-652
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / sparql / SelectQuery.java
diff --git a/src/main/java/org/z3950/zing/cql/sparql/SelectQuery.java b/src/main/java/org/z3950/zing/cql/sparql/SelectQuery.java
new file mode 100644 (file)
index 0000000..3b13fe2
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 1995-2014, Index Data
+ * All rights reserved.
+ * See the file LICENSE for details.
+ */
+
+package org.z3950.zing.cql.sparql;
+
+/**
+ * API helper for select queries
+ * @author jakub
+ */
+public class SelectQuery extends Query {
+
+  public SelectQuery(Select select, Where where) {
+    form(select);
+    where(where);
+  }
+
+  
+  public Select select() {
+    return (Select) form();
+  }
+  
+  public SelectQuery select(Select select) {
+    form(select);
+    return this;
+  }
+  
+}