Search in sources :

Example 76 with Item

use of org.apache.jena.sparql.sse.Item in project jena by apache.

the class TestSSE_Basic method testNotItem.

private void testNotItem(String str, Item result) {
    Item item = parse(str);
    assertFalse(result.equals(item));
}
Also used : Item(org.apache.jena.sparql.sse.Item)

Example 77 with Item

use of org.apache.jena.sparql.sse.Item in project jena by apache.

the class TestSSE_Basic method testNotEquals.

private void testNotEquals(String x1, String x2) {
    Item item1 = parse(x1);
    Item item2 = parse(x2);
    assertFalse(item1.equals(item2));
    assertFalse(item2.equals(item1));
}
Also used : Item(org.apache.jena.sparql.sse.Item)

Example 78 with Item

use of org.apache.jena.sparql.sse.Item in project jena by apache.

the class TestResultSetFormat1 method make.

static ResultSet make(String... strings) {
    if (strings.length == 0)
        throw new IllegalArgumentException();
    String x = StrUtils.strjoinNL(strings);
    Item item = SSE.parse(x);
    return ResultSetFactory.makeRewindable(BuilderResultSet.build(item));
}
Also used : Item(org.apache.jena.sparql.sse.Item)

Aggregations

Item (org.apache.jena.sparql.sse.Item)78 Test (org.junit.Test)31 Node (org.apache.jena.graph.Node)11 ItemList (org.apache.jena.sparql.sse.ItemList)10 Var (org.apache.jena.sparql.core.Var)6 ArrayList (java.util.ArrayList)5 Binding (org.apache.jena.sparql.engine.binding.Binding)3 Graph (org.apache.jena.graph.Graph)2 Triple (org.apache.jena.graph.Triple)2 ARQException (org.apache.jena.sparql.ARQException)2 DatasetGraph (org.apache.jena.sparql.core.DatasetGraph)2 VarExprList (org.apache.jena.sparql.core.VarExprList)2 ItemException (org.apache.jena.sparql.sse.ItemException)2 Tuple (org.apache.jena.atlas.lib.tuple.Tuple)1 RDFDatatype (org.apache.jena.datatypes.RDFDatatype)1 QueryParseException (org.apache.jena.query.QueryParseException)1 ResultSetRewindable (org.apache.jena.query.ResultSetRewindable)1 Model (org.apache.jena.rdf.model.Model)1 ARQInternalErrorException (org.apache.jena.sparql.ARQInternalErrorException)1 Table (org.apache.jena.sparql.algebra.Table)1