use of org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLBooleanJSONParser in project rdf4j by eclipse.
the class SPARQLJSONBooleanTest method testBoolean2.
@Test
public void testBoolean2() throws Exception {
SPARQLBooleanJSONParser parser = new SPARQLBooleanJSONParser(SimpleValueFactory.getInstance());
QueryResultCollector handler = new QueryResultCollector();
parser.setQueryResultHandler(handler);
parser.parseQueryResult(this.getClass().getResourceAsStream("/sparqljson/boolean2.srj"));
assertTrue(handler.getBoolean());
}
use of org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLBooleanJSONParser in project rdf4j by eclipse.
the class SPARQLJSONBooleanTest method testBoolean4.
@Test
public void testBoolean4() throws Exception {
SPARQLBooleanJSONParser parser = new SPARQLBooleanJSONParser(SimpleValueFactory.getInstance());
QueryResultCollector handler = new QueryResultCollector();
parser.setQueryResultHandler(handler);
parser.parseQueryResult(this.getClass().getResourceAsStream("/sparqljson/boolean4.srj"));
assertFalse(handler.getBoolean());
}
use of org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLBooleanJSONParser in project rdf4j by eclipse.
the class SPARQLJSONBooleanTest method testBoolean1.
@Test
public void testBoolean1() throws Exception {
SPARQLBooleanJSONParser parser = new SPARQLBooleanJSONParser(SimpleValueFactory.getInstance());
QueryResultCollector handler = new QueryResultCollector();
parser.setQueryResultHandler(handler);
parser.parseQueryResult(this.getClass().getResourceAsStream("/sparqljson/boolean1.srj"));
assertTrue(handler.getBoolean());
}
use of org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLBooleanJSONParser in project rdf4j by eclipse.
the class SPARQLJSONBooleanTest method testBoolean3.
@Test
public void testBoolean3() throws Exception {
SPARQLBooleanJSONParser parser = new SPARQLBooleanJSONParser(SimpleValueFactory.getInstance());
QueryResultCollector handler = new QueryResultCollector();
parser.setQueryResultHandler(handler);
parser.parseQueryResult(this.getClass().getResourceAsStream("/sparqljson/boolean3.srj"));
assertFalse(handler.getBoolean());
}
Aggregations