Class SPARQLComplianceTest
- java.lang.Object
-
- org.eclipse.rdf4j.testsuite.query.parser.sparql.manifest.SPARQLComplianceTest
-
- Direct Known Subclasses:
SPARQL11UpdateComplianceTest,SPARQLQueryComplianceTest,SPARQLSyntaxComplianceTest
public abstract class SPARQLComplianceTest extends Object
Base functionality for SPARQL compliance test suites using a W3C-style Manifest.- Author:
- Jeen Broekstra
-
-
Constructor Summary
Constructors Constructor Description SPARQLComplianceTest(String displayName, String testURI, String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddIgnoredTest(String ignoredTest)protected voidcompareGraphs(Iterable<Statement> queryResult, Iterable<Statement> expectedResult)protected abstract RepositorygetDataRepository()StringgetDisplayName()protected List<String>getIgnoredTests()StringgetName()StringgetTestURI()protected static booleanincludeSubManifest(String subManifestFile, List<String> excludedSubdirs)Verifies if the selected subManifest occurs in the supplied list of excluded subdirs.protected static voidprintBindingSet(BindingSet bs, StringBuilder appendable)protected abstract voidrunTest()protected voidsetIgnoredTests(List<String> ignoredTests)voidtest()protected voidupload(IRI graphURI, Resource context)protected voiduploadDataset(Dataset dataset)
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Returns:
- the displayName
-
getTestURI
public String getTestURI()
- Returns:
- the testURI
-
getName
public String getName()
- Returns:
- the name
-
getDataRepository
protected abstract Repository getDataRepository()
-
includeSubManifest
protected static boolean includeSubManifest(String subManifestFile, List<String> excludedSubdirs)
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.
-
printBindingSet
protected static final void printBindingSet(BindingSet bs, StringBuilder appendable)
-
addIgnoredTest
protected void addIgnoredTest(String ignoredTest)
-
setIgnoredTests
protected void setIgnoredTests(List<String> ignoredTests)
- Parameters:
ignoredTests- the ignoredTests to set
-
-