AbstractQueryBuilder implements Cloneable, PrologClause<T>, ValuesClause<T> { @Deprecated public static Collection<Node> makeValueNodes( Iterator<?> iter, PrefixMapping prefixMapping ) { return Converters.makeValueNodes(iter, prefixMapping); } protected  AbstractQueryBuilder(); Node makeNode(Object o); @Deprecated static Object makeNodeOrPath(Object o, PrefixMapping pMapping); ElementSubQuery asSubQuery(); TriplePath makeTriplePath(Object s, Object p, Object o); Expr makeExpr(String expression); @Deprecated static String quote(String q); @Deprecated static Node checkVar(Node n ); @Deprecated static Node makeNode(Object o, PrefixMapping pMapping); @Deprecated static Var makeVar(Object o); abstract HandlerBlock getHandlerBlock(); @Override final PrologHandler getPrologHandler(); @Override ValuesHandler getValuesHandler(); final WhereHandler getWhereHandler(); @SuppressWarnings("unchecked") final T addWhere( AbstractQueryBuilder<?> whereClause); @Override final ExprFactory getExprFactory(); void setVar(Var var, Node value); void setVar(Object var, Object value); @Override T addPrefix(String pfx, Resource uri); @Override T addPrefix(String pfx, Node uri); @SuppressWarnings("unchecked") @Override T addPrefix(String pfx, String uri); @SuppressWarnings("unchecked") @Override T addPrefixes(Map<String, String> prefixes); @SuppressWarnings("unchecked") @Override T addPrefixes(PrefixMapping prefixMapping); @SuppressWarnings("unchecked") @Override T setBase(String base); @SuppressWarnings("unchecked") @Override T setBase(Object base); @Deprecated static Collection<Node> makeValueNodes( Iterator<?> iter, PrefixMapping prefixMapping ); Collection<Node> makeValueNodes( Iterator<?> iter ); @SuppressWarnings("unchecked") @Override T addValueVar(Object var); @SuppressWarnings("unchecked") @Override T addValueVar(Object var, Object... objects); @SuppressWarnings("unchecked") @Override T addValueVars(Map<?,K> dataTable); @SuppressWarnings("unchecked") @Override T addValueRow(Object... values); @SuppressWarnings("unchecked") @Override T addValueRow(Collection<?> values); @Override List<Var> getValuesVars(); @Override Map<Var,List<Node>> getValuesMap(); @SuppressWarnings("unchecked") @Override T clearValues(); @Override String toString(); final String buildString(); final Query build(); static Query clone(Query q2); static Query rewrite(Query q2, Map<Var, Node> values);  }
@Test public void testMakeValueNodes() { List<Object> list = new ArrayList<Object>(); list.add( null); list.add( RDF.type ); Node n2 = NodeFactory.createBlankNode(); list.add( n2 ); builder.addPrefix("demo", "http: list.add( "demo:type" ); list.add( "<one>" ); list.add( Integer.valueOf(5) ); Collection<Node> result = builder.makeValueNodes(list.iterator()); assertEquals( 6, result.size() ); assertTrue( result.contains( null )); assertTrue( result.contains( RDF.type.asNode())); assertTrue( result.contains( n2 )); assertTrue( result.contains(NodeFactory.createURI("http: assertTrue( result.contains(NodeFactory.createURI("one"))); LiteralLabel ll = LiteralLabelFactory.createTypedLiteral( Integer.valueOf(5)); assertTrue( result.contains(NodeFactory.createLiteral(ll))); }