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
public void testDeleteFromDefaultGraph() throws Exception
- Throws:
Exception
-
testDeleteFromDefaultGraphUsingWith
public void testDeleteFromDefaultGraphUsingWith() throws Exception
- Throws:
Exception
-
testInsertWhereInvalidTriple
public void testInsertWhereInvalidTriple() throws Exception
- Throws:
Exception
-
testDeleteWhereInvalidTriple
public void testDeleteWhereInvalidTriple() throws Exception
- Throws:
Exception
-
testDeleteInsertWhereInvalidTriple
public void testDeleteInsertWhereInvalidTriple() throws Exception
- Throws:
Exception
-
testInsertWhereWithBinding
public void testInsertWhereWithBinding() throws Exception
- Throws:
Exception
-
testInsertWhereWithBindings2
public void testInsertWhereWithBindings2() throws Exception
- Throws:
Exception
-
testInsertEmptyWhereWithBinding
public void testInsertEmptyWhereWithBinding() throws Exception
- Throws:
Exception
-
testInsertNonMatchingWhere
public void testInsertNonMatchingWhere() throws Exception
- Throws:
Exception
-
testInsertNonMatchingWhereWithBindings
public void testInsertNonMatchingWhereWithBindings() throws Exception
- Throws:
Exception
-
testInsertWhereWithBindings
public void testInsertWhereWithBindings() throws Exception
- Throws:
Exception
-
testInsertWhereWithOptional
public void testInsertWhereWithOptional() throws Exception
- Throws:
Exception
-
testInsertWhereWithBlankNode
public void testInsertWhereWithBlankNode() throws Exception
- Throws:
Exception
-
testDeleteInsertWhereWithBindings
public void testDeleteInsertWhereWithBindings() throws Exception
- Throws:
Exception
-
testDeleteInsertWhereWithBindings2
public void testDeleteInsertWhereWithBindings2() throws Exception
- Throws:
Exception
-
testDeleteInsertWhereLoopingBehavior
public void testDeleteInsertWhereLoopingBehavior() throws Exception
- Throws:
Exception
-
testConsecutiveUpdatesInSameTransaction
public void testConsecutiveUpdatesInSameTransaction() throws Exception
- Throws:
Exception
-
testInsertTransformedWhere
public void testInsertTransformedWhere() throws Exception
- Throws:
Exception
-
testDeleteTransformedWhere
public void testDeleteTransformedWhere() throws Exception
- Throws:
Exception
-
testInsertDataLangTaggedLiteral
public void testInsertDataLangTaggedLiteral() throws Exception
- Throws:
Exception
-
testInsertDataMultiplePatterns
public void testInsertDataMultiplePatterns() throws Exception
- Throws:
Exception
-
testDeleteDataMultiplePatterns
public void testDeleteDataMultiplePatterns() throws Exception
- Throws:
Exception
-
testDeleteDataFromWrongGraph
public void testDeleteDataFromWrongGraph() throws Exception
- Throws:
Exception
-
testCopyFromDefaultToDefault
public void testCopyFromDefaultToDefault() throws Exception
- Throws:
Exception
-
testAddFromDefaultToDefault
public void testAddFromDefaultToDefault() throws Exception
- Throws:
Exception
-
testMoveFromDefaultToDefault
public void testMoveFromDefaultToDefault() throws Exception
- Throws:
Exception
-
testUpdateSequenceDeleteInsert
public void testUpdateSequenceDeleteInsert() throws Exception
- Throws:
Exception
-
testUpdateSequenceInsertDelete
public void testUpdateSequenceInsertDelete() throws Exception
- Throws:
Exception
-
testUpdateSequenceInsertDelete2
public void testUpdateSequenceInsertDelete2() throws Exception
- Throws:
Exception
-
testUpdateSequenceInsertDeleteExample9
public void testUpdateSequenceInsertDeleteExample9() throws Exception
- Throws:
Exception
-
testUpdateSequenceWithRelativeIRI
public void testUpdateSequenceWithRelativeIRI() throws Exception
- Throws:
Exception
-
contextualInsertDeleteData
public void contextualInsertDeleteData() throws RepositoryException, MalformedQueryException, UpdateExecutionException
-
testInvalidInsertUpdate
public void testInvalidInsertUpdate()
-
testInvalidDeleteUpdate
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
-
-