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