Class SPARQLUpdateTest
- java.lang.Object
-
- org.eclipse.rdf4j.testsuite.query.parser.sparql.SPARQLUpdateTest
-
public abstract class SPARQLUpdateTest extends Object
Tests for SPARQL 1.1 Update functionality.- Author:
- Jeen Broekstra
-
-
Constructor Summary
Constructors Constructor Description SPARQLUpdateTest()
-
Method Summary
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
con
protected RepositoryConnection con
-
f
protected ValueFactory f
-
bob
protected IRI bob
-
alice
protected IRI alice
-
graph1
protected IRI graph1
-
graph2
protected IRI graph2
-
EX_NS
protected static final String EX_NS
- See Also:
- Constant Field Values
-
-
Method Detail
-
testDeleteFromDefaultGraph
@Test public void testDeleteFromDefaultGraph() throws Exception
- Throws:
Exception
-
testDeleteFromDefaultGraphUsingWith
@Test public void testDeleteFromDefaultGraphUsingWith() throws Exception
- Throws:
Exception
-
testInsertWhereInvalidTriple
@Test public void testInsertWhereInvalidTriple() throws Exception
- Throws:
Exception
-
testDeleteWhereInvalidTriple
@Test public void testDeleteWhereInvalidTriple() throws Exception
- Throws:
Exception
-
testDeleteInsertWhereInvalidTriple
@Test public void testDeleteInsertWhereInvalidTriple() throws Exception
- Throws:
Exception
-
testInsertWhereWithBinding
@Test public void testInsertWhereWithBinding() throws Exception
- Throws:
Exception
-
testInsertWhereWithBindings2
@Test public void testInsertWhereWithBindings2() throws Exception
- Throws:
Exception
-
testInsertEmptyWhereWithBinding
@Test public void testInsertEmptyWhereWithBinding() throws Exception
- Throws:
Exception
-
testInsertNonMatchingWhere
@Test public void testInsertNonMatchingWhere() throws Exception
- Throws:
Exception
-
testInsertNonMatchingWhereWithBindings
@Test public void testInsertNonMatchingWhereWithBindings() throws Exception
- Throws:
Exception
-
testInsertWhereWithBindings
@Test public void testInsertWhereWithBindings() throws Exception
- Throws:
Exception
-
testInsertWhereWithOptional
@Test public void testInsertWhereWithOptional() throws Exception
- Throws:
Exception
-
testInsertWhereWithBlankNode
@Test public void testInsertWhereWithBlankNode() throws Exception
- Throws:
Exception
-
testDeleteWhereOptional
@Test public void testDeleteWhereOptional() throws Exception
- Throws:
Exception
-
testDeleteInsertWhereWithBindings
@Test public void testDeleteInsertWhereWithBindings() throws Exception
- Throws:
Exception
-
testDeleteInsertWhereWithBindings2
@Test public void testDeleteInsertWhereWithBindings2() throws Exception
- Throws:
Exception
-
testDeleteInsertWhereLoopingBehavior
@Test public void testDeleteInsertWhereLoopingBehavior() throws Exception
- Throws:
Exception
-
testAutoCommitHandling
@Test public void testAutoCommitHandling() throws Exception
- Throws:
Exception
-
testConsecutiveUpdatesInSameTransaction
@Test public void testConsecutiveUpdatesInSameTransaction() throws Exception
- Throws:
Exception
-
testInsertTransformedWhere
@Test public void testInsertTransformedWhere() throws Exception
- Throws:
Exception
-
testInsertWhereUsingWith
@Test public void testInsertWhereUsingWith() throws Exception
- Throws:
Exception
-
testDeleteWhereShortcut
@Test public void testDeleteWhereShortcut() throws Exception
- Throws:
Exception
-
testDeleteTransformedWhere
@Test public void testDeleteTransformedWhere() throws Exception
- Throws:
Exception
-
testInsertDataLangTaggedLiteral
@Test public void testInsertDataLangTaggedLiteral() throws Exception
- Throws:
Exception
-
testInsertDataBlankNode
@Test public void testInsertDataBlankNode() throws Exception
- Throws:
Exception
-
testInsertDataMultiplePatterns
@Test public void testInsertDataMultiplePatterns() throws Exception
- Throws:
Exception
-
testInsertDataInGraph2
@Test public void testInsertDataInGraph2() throws Exception
- Throws:
Exception
-
testDeleteDataMultiplePatterns
@Test public void testDeleteDataMultiplePatterns() throws Exception
- Throws:
Exception
-
testDeleteDataFromGraph
@Test public void testDeleteDataFromGraph() throws Exception
- Throws:
Exception
-
testDeleteDataFromWrongGraph
@Test public void testDeleteDataFromWrongGraph() throws Exception
- Throws:
Exception
-
testCreateExistingGraph
@Test public void testCreateExistingGraph() throws Exception
- Throws:
Exception
-
testCopyToExistingNamed
@Test public void testCopyToExistingNamed() throws Exception
- Throws:
Exception
-
testCopyFromDefaultToDefault
@Test public void testCopyFromDefaultToDefault() throws Exception
- Throws:
Exception
-
testAddToExistingNamed
@Test public void testAddToExistingNamed() throws Exception
- Throws:
Exception
-
testAddFromDefaultToDefault
@Test public void testAddFromDefaultToDefault() throws Exception
- Throws:
Exception
-
testMoveFromDefaultToDefault
@Test public void testMoveFromDefaultToDefault() throws Exception
- Throws:
Exception
-
testUpdateSequenceDeleteInsert
@Test public void testUpdateSequenceDeleteInsert() throws Exception
- Throws:
Exception
-
testUpdateSequenceInsertDelete
@Test public void testUpdateSequenceInsertDelete() throws Exception
- Throws:
Exception
-
testUpdateSequenceInsertDelete2
@Test public void testUpdateSequenceInsertDelete2() throws Exception
- Throws:
Exception
-
testUpdateSequenceInsertDeleteExample9
@Test public void testUpdateSequenceInsertDeleteExample9() throws Exception
- Throws:
Exception
-
testUpdateSequenceWithRelativeIRI
@Test public void testUpdateSequenceWithRelativeIRI() throws Exception
- Throws:
Exception
-
contextualInsertDeleteData
@Test public void contextualInsertDeleteData() throws RepositoryException, MalformedQueryException, UpdateExecutionException
-
testInvalidInsertUpdate
@Test public void testInvalidInsertUpdate()
-
testInvalidDeleteUpdate
@Test public void testInvalidDeleteUpdate()
-
loadDataset
protected void loadDataset(String datasetFile) throws RDFParseException, RepositoryException, IOException
-
getNamespaceDeclarations
protected String getNamespaceDeclarations()
Get a set of useful namespace prefix declarations.- Returns:
- namespace prefix declarations for rdf, rdfs, dc, foaf and ex.
-
createRepository
protected Repository createRepository() throws Exception
Creates, initializes and clears a repository.- Returns:
- an initialized empty repository.
- Throws:
Exception
-
newRepository
protected abstract Repository newRepository() throws Exception
Create a new Repository object. Subclasses are expected to implement this method to supply the test case with a specific Repository type and configuration.- Returns:
- a new (uninitialized) Repository
- Throws:
Exception
-
-