pattern.add(Triple.create(Node.createVariable("s"), Node.createURI("http://example.org/value"), Node.createVariable("o")));
rels = translate(pattern, "optimizer/filtertests.n3");
NodeRelation intvalue = search("table2", "intvalue", rels);
Expr subject = new E_IsIRI(new ExprVar("s"));
Expr object = new E_IsIRI(new ExprVar("o"));
assertEquals("ISIRI(literal) should be FALSE", Expression.FALSE, TransformExprToSQLApplyer.convert(object, label));
assertEquals("ISIRI(literal@lang) should be FALSE", Expression.FALSE, TransformExprToSQLApplyer.convert(object, label_en));
assertEquals("ISIRI(uri) should be TRUE", Expression.TRUE, TransformExprToSQLApplyer.convert(subject, label));
assertEquals("ISIRI(intvalue) should be FALSE", Expression.FALSE, TransformExprToSQLApplyer.convert(object, intvalue));