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

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


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

TOP

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

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.