"?x <http://purl.org/dc/elements/1.1/title> ?title . " +
"?x <http://example.org/ns#price> ?price . " +
"FILTER ((?price) < (\"30.5\"^^<http://www.w3.org/2001/XMLSchema#double>)) " +
"}";
Variable price = new Variable("price");
Variable title = new Variable("title");
SimpleSelectQuery selectQuery = new SimpleSelectQuery();
selectQuery.addSelection(title);
selectQuery.addSelection(price);
Variable x = new Variable("x");
Set<TriplePattern> triplePatterns = new HashSet<TriplePattern>();
triplePatterns.add(new SimpleTriplePattern(x,
new UriRef("http://example.org/ns#price"), price));
triplePatterns.add(new SimpleTriplePattern(x,
new UriRef("http://purl.org/dc/elements/1.1/title"), title));