public class AbstractDataDrivenSPARQLTestCase.TestHelper extends AbstractDataAndSPARQLTestCase.AbsHelper
Note: This class was derived from the openrdf SPARQLQueryTest file (Aduna BSD style license).
Modifier and Type | Field and Description |
---|---|
Set<org.openrdf.model.Statement> |
expectedGraphQueryResult
Set lazily by
readExpectedGraphQueryResult() . |
astContainer, queryStr
Constructor and Description |
---|
AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI) |
AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI,
String queryFileURL,
String[] dataFileURLs,
String resultFileURL) |
AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI,
String queryFileURL,
String[] dataFileURLs,
String resultFileURL,
boolean checkOrder)
Read the query and load the data file(s) but do not run the query.
|
AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI,
String queryFileURL,
String dataFileURL,
String resultFileURL) |
AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI,
String queryFileURL,
String dataFileURL,
String resultFileURL,
boolean checkOrder) |
Modifier and Type | Method and Description |
---|---|
void |
compareGraphs(Set<org.openrdf.model.Statement> queryResult,
Set<org.openrdf.model.Statement> expectedResult) |
ASTContainer |
getASTContainer() |
AbstractTripleStore |
getTripleStore() |
protected long |
loadData(String resource)
Load some RDF data.
|
boolean |
readExpectedBooleanQueryResult() |
Set<org.openrdf.model.Statement> |
readExpectedGraphQueryResult() |
org.openrdf.query.TupleQueryResult |
readExpectedTupleQueryResult() |
ASTContainer |
runTest()
Run a data-driven SPARQL test.
|
compareTupleQueryResults
public Set<org.openrdf.model.Statement> expectedGraphQueryResult
readExpectedGraphQueryResult()
.public AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI) throws Exception
testURI
- Exception
public AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI, String queryFileURL, String dataFileURL, String resultFileURL) throws Exception
testURI
- queryFileURL
- dataFileURL
- resultFileURL
- Exception
public AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI, String queryFileURL, String[] dataFileURLs, String resultFileURL) throws Exception
Exception
public AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI, String queryFileURL, String dataFileURL, String resultFileURL, boolean checkOrder) throws Exception
Exception
public AbstractDataDrivenSPARQLTestCase.TestHelper(String testURI, String queryFileURL, String[] dataFileURLs, String resultFileURL, boolean checkOrder) throws Exception
testURI
- queryFileURL
- dataFileURLs
- resultFileURL
- checkOrder
- Exception
public ASTContainer getASTContainer()
public AbstractTripleStore getTripleStore()
getTripleStore
in class AbstractDataAndSPARQLTestCase.AbsHelper
public ASTContainer runTest() throws Exception
resource
- The base name of the resource. It will locate the query
(.rq), the data (.trig), and the expected resources (.srx)
using this base name.Exception
- if the resources can not be found, if the query does not
produce the expected results, etc.public org.openrdf.query.TupleQueryResult readExpectedTupleQueryResult() throws Exception
Exception
public boolean readExpectedBooleanQueryResult() throws Exception
Exception
public Set<org.openrdf.model.Statement> readExpectedGraphQueryResult() throws Exception
Exception
public void compareGraphs(Set<org.openrdf.model.Statement> queryResult, Set<org.openrdf.model.Statement> expectedResult)
protected long loadData(String resource)
resource
- The resource whose data will be loaded.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.