Class RepositorySPARQLComplianceTestSuite

java.lang.Object
org.eclipse.rdf4j.testsuite.sparql.RepositorySPARQLComplianceTestSuite

@Experimental public abstract class RepositorySPARQLComplianceTestSuite extends Object
A suite of custom compliance tests on SPARQL query functionality for RDF4J Repositories.

To use this test suite, extend the abstract suite class, making sure that the correct RepositoryFactory gets set on initialization, and torn down after. For example, to run the suite against an RDF4J Memory Store:

 
        @BeforeClass
        public static void setUpFactory() throws Exception {
                setRepositoryFactory(new SailRepositoryFactory() {
                        @Override
                        public RepositoryImplConfig getConfig() {
                                return new SailRepositoryConfig(new MemoryStoreFactory().getConfig());
                        }
                });
        }

        @AfterClass
        public static void tearDownFactory() throws Exception {
                setRepositoryFactory(null);
        }
 
 
Author:
Jeen Broekstra