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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addIgnoredTest
(String ignoredTest) protected void
compareGraphs
(Iterable<Statement> queryResult, Iterable<Statement> expectedResult) protected abstract Repository
getName()
protected static boolean
includeSubManifest
(String subManifestFile, List<String> excludedSubdirs) Verifies if the selected subManifest occurs in the supplied list of excluded subdirs.protected static final void
printBindingSet
(BindingSet bs, StringBuilder appendable) protected abstract void
runTest()
protected void
setIgnoredTests
(List<String> ignoredTests) void
test()
protected void
protected void
uploadDataset
(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:
false
if the supplied list of excluded subdirs is not empty and contains a match for the supplied sub-manifest,true
otherwise.
-
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
-