Examples of FunctionEnvBase


Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    }

    private static void testBoolean(String string, boolean b, Binding env)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isBoolean()) ;
        assertEquals(b, v.getBoolean()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    }

    private static void testURI(String string, String uri)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isIRI()) ;
        assertEquals(uri, v.getNode().getURI()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    }

    private static void testString(String string, String string2)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isString()) ;
        assertEquals(string2, v.getString()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    }

    private static void testString(String string)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isString()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

       
        if ( foldConstants)
        {
            try {
                if ( e != null && e.isConstant() )
                    return eval(e.getConstant(), new FunctionEnvBase()) ;
            } catch (ExprEvalException ex) { /* Drop through */ }
        }
        return copy(e) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    }
   
    public BindingComparator(List<SortCondition> _conditions)
    {
        conditions = _conditions ;
        this.env = new FunctionEnvBase();
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    private static PrefixMapping pmap = ARQConstants.getGlobalPrefixMap() ;
   
    private static void test(String string, String result)
    {
        Expr expr = ExprUtils.parse(string, pmap) ;
        NodeValue nv = expr.eval(null, new FunctionEnvBase()) ;
        Node r = NodeFactory.parseNode(result) ;
        NodeValue nvr = NodeValue.makeNode(r) ;
       
        assertTrue("Not same value: Expected: "+nvr+" : Actual = "+nv, NodeValue.sameAs(nvr, nv))
        // test result must be lexical form exact.
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    }

    private static void testURI(String string, String uri)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isIRI()) ;
        assertEquals(uri, v.getNode().getURI()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    }

    private static void testString(String string, String string2)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isString()) ;
        assertEquals(string2, v.getString()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase

    }

    private static void testString(String string)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isString()) ;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.