Package com.hp.hpl.jena.sparql.expr

Examples of com.hp.hpl.jena.sparql.expr.E_IsBlank


    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_IsBlank(new ExprVar("s"));
    Expr object  = new E_IsBlank(new ExprVar("o"));
   
    assertEquals("ISBLANK(literal) should be FALSE",      Expression.FALSE, TransformExprToSQLApplyer.convert(object, label));
    assertEquals("ISBLANK(literal@lang) should be FALSE", Expression.FALSE, TransformExprToSQLApplyer.convert(object, label_en));
    assertEquals("ISBLANK(uri) should be FALSE",          Expression.FALSE, TransformExprToSQLApplyer.convert(subject, label));
    assertEquals("ISBLANK(intvalue) should be FALSE",     Expression.FALSE, TransformExprToSQLApplyer.convert(object, intvalue));
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.expr.E_IsBlank

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.