public class TestValueExprBuilder extends AbstractBigdataExprBuilderTestCase
ValueExprBuilder
.baseURI, lex, tripleStore, valueFactory
Constructor and Description |
---|
TestValueExprBuilder() |
TestValueExprBuilder(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_select_bind()
Simple variable rename in select expression.
|
void |
test_select_bnode()
Unit test with BNode.
|
void |
test_select_coalesce()
SELECT (coalesce(?s,?p,?o) as ?x) where {?s ?p ?o}
|
void |
test_select_compare_expr()
Select using comparison expression.
|
void |
test_select_count_distinct_foo()
SELECT (COUNT(DISTINCT ?s) as ?x) where {?s ?p ?o}
|
void |
test_select_count_distinct_star()
SELECT (COUNT(DISTINT *) as ?x) where {?s ?p ?o}
|
void |
test_select_count_foo()
SELECT (COUNT(?s) as ?x) where {?s ?p ?o}
|
void |
test_select_count_star()
SELECT (COUNT(*) as ?x) where {?s ?p ?o}
|
void |
test_select_foo_IN_bar()
IN with a non-empty arg list
|
void |
test_select_foo_IN_none()
IN with empty arg list
|
void |
test_select_function_call()
SELECT (FunctionCall(?s) as ?x) where {?s ?p ?o}
|
void |
test_select_if_then_else()
SELECT (if(?s,?p,?o) as ?x) where {?s ?p ?o}
|
void |
test_select_literal()
Simple unit test for a value expression which is a plain literal.
|
void |
test_select_math_expr()
SELECT using math expression.
|
void |
test_select_regex_flags()
SELECT (regex(?o, "^ali", "i") as ?x) where {?s ?p ?o}
|
void |
test_select_regex()
SELECT (regex(?o, "^ali") as ?x) where {?s ?p ?o}
|
void |
test_select_uri()
Simple unit test for a value expression which is a URI.
|
void |
test_select_xsd_int()
Simple unit test for a value expression which is a
xsd:int . |
assertSameAST, getProperties, getStore, makeAnon, makeIV, mockAnonVar, parse, parseUpdate, setUp, tearDown
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public TestValueExprBuilder()
public TestValueExprBuilder(String name)
public void test_select_bind() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (?s as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_math_expr() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (?s + ?o as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_compare_expr() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (?s < ?o as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_uri() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_bnode() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
Note: a bare blank node may not appear in the SELECT expression with (bnode as ?x) so we have to test this somewhere else in the syntax of the query.
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_literal() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_xsd_int() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
xsd:int
.org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_count_foo() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (COUNT(?s) as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_count_distinct_foo() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (COUNT(DISTINCT ?s) as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_count_star() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (COUNT(*) as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_count_distinct_star() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (COUNT(DISTINT *) as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_function_call() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (FunctionCall(?s) as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_coalesce() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (coalesce(?s,?p,?o) as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_if_then_else() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (if(?s,?p,?o) as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_regex() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (regex(?o, "^ali") as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_regex_flags() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (regex(?o, "^ali", "i") as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
public void test_select_foo_IN_none() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (?s IN() as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
http://www.openrdf.org/issues/browse/SES-818
public void test_select_foo_IN_bar() throws org.openrdf.query.MalformedQueryException, TokenMgrError, ParseException
SELECT (?s IN(?p,?o) as ?x) where {?s ?p ?o}
org.openrdf.query.MalformedQueryException
TokenMgrError
ParseException
http://www.openrdf.org/issues/browse/SES-818
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.