Class SPARQLComplianceTest
java.lang.Object
org.eclipse.rdf4j.testsuite.query.parser.sparql.manifest.SPARQLComplianceTest
- Direct Known Subclasses:
SPARQL11UpdateComplianceTest,SPARQLQueryComplianceTest,SPARQLSyntaxComplianceTest
Base functionality for SPARQL compliance test suites using a W3C-style Manifest.
- Author:
- Jeen Broekstra
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddIgnoredTest(String ignoredTest) protected voidcompareGraphs(Iterable<Statement> queryResult, Iterable<Statement> expectedResult) protected abstract RepositorygetName()protected static booleanincludeSubManifest(String subManifestFile, List<String> excludedSubdirs) Verifies if the selected subManifest occurs in the supplied list of excluded subdirs.protected static final voidprintBindingSet(BindingSet bs, StringBuilder appendable) protected abstract voidrunTest()protected voidsetIgnoredTests(List<String> ignoredTests) voidtest()protected voidprotected voiduploadDataset(Dataset dataset)
-
Constructor Details
-
SPARQLComplianceTest
- Parameters:
displayName-testURI-name-
-
-
Method Details
-
test
- Throws:
Exception
-
getDisplayName
- Returns:
- the displayName
-
getTestURI
- Returns:
- the testURI
-
getName
- Returns:
- the name
-
runTest
- Throws:
Exception
-
getDataRepository
-
includeSubManifest
Verifies if the selected subManifest occurs in the supplied list of excluded subdirs.- Parameters:
subManifestFile- the url of a sub-manifestexcludedSubdirs- an array of directory names. May be null.- Returns:
falseif the supplied list of excluded subdirs is not empty and contains a match for the supplied sub-manifest,trueotherwise.
-
uploadDataset
- Throws:
Exception
-
upload
- Throws:
Exception
-
printBindingSet
-
getIgnoredTests
- Returns:
- the ignoredTests
-
addIgnoredTest
-
setIgnoredTests
- Parameters:
ignoredTests- the ignoredTests to set
-
compareGraphs
protected void compareGraphs(Iterable<Statement> queryResult, Iterable<Statement> expectedResult) throws Exception - Throws:
Exception
-