Class SPARQLUpdateTest


  • public abstract class SPARQLUpdateTest
    extends Object
    Tests for SPARQL 1.1 Update functionality.
    Author:
    Jeen Broekstra
    • Constructor Detail

      • SPARQLUpdateTest

        public SPARQLUpdateTest()
    • 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
      • testInsertWhere

        @Test
        public void testInsertWhere()
                             throws Exception
        Throws:
        Exception
      • testInsertWhereWithBinding

        @Test
        public void testInsertWhereWithBinding()
                                        throws Exception
        Throws:
        Exception
      • testInsertWhereWithBindings2

        @Test
        public void testInsertWhereWithBindings2()
                                          throws Exception
        Throws:
        Exception
      • testInsertEmptyWhere

        @Test
        public void testInsertEmptyWhere()
                                  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
      • testDeleteInsertWhere

        @Test
        public void testDeleteInsertWhere()
                                   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
      • testInsertWhereGraph

        @Test
        public void testInsertWhereGraph()
                                  throws Exception
        Throws:
        Exception
      • testInsertWhereUsing

        @Test
        public void testInsertWhereUsing()
                                  throws Exception
        Throws:
        Exception
      • testInsertWhereUsingWith

        @Test
        public void testInsertWhereUsingWith()
                                      throws Exception
        Throws:
        Exception
      • testInsertWhereWith

        @Test
        public void testInsertWhereWith()
                                 throws Exception
        Throws:
        Exception
      • testDeleteWhereShortcut

        @Test
        public void testDeleteWhereShortcut()
                                     throws Exception
        Throws:
        Exception
      • testDeleteWhere

        @Test
        public void testDeleteWhere()
                             throws Exception
        Throws:
        Exception
      • testDeleteTransformedWhere

        @Test
        public void testDeleteTransformedWhere()
                                        throws Exception
        Throws:
        Exception
      • testInsertData2

        @Test
        public void testInsertData2()
                             throws Exception
        Throws:
        Exception
      • testInsertDataLangTaggedLiteral

        @Test
        public void testInsertDataLangTaggedLiteral()
                                             throws Exception
        Throws:
        Exception
      • testInsertDataGraph1

        @Test
        public void testInsertDataGraph1()
                                  throws Exception
        Throws:
        Exception
      • testInsertDataGraph2

        @Test
        public void testInsertDataGraph2()
                                  throws Exception
        Throws:
        Exception
      • testInsertDataGraph3

        @Test
        public void testInsertDataGraph3()
                                  throws Exception
        Throws:
        Exception
      • testInsertDataBlankNode

        @Test
        public void testInsertDataBlankNode()
                                     throws Exception
        Throws:
        Exception
      • testInsertDataMultiplePatterns

        @Test
        public void testInsertDataMultiplePatterns()
                                            throws Exception
        Throws:
        Exception
      • testInsertDataInGraph

        @Test
        public void testInsertDataInGraph()
                                   throws Exception
        Throws:
        Exception
      • testInsertDataInGraph2

        @Test
        public void testInsertDataInGraph2()
                                    throws Exception
        Throws:
        Exception
      • testDeleteDataUnicode

        @Test
        public void testDeleteDataUnicode()
                                   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
      • testCreateNewGraph

        @Test
        public void testCreateNewGraph()
                                throws Exception
        Throws:
        Exception
      • testCreateExistingGraph

        @Test
        public void testCreateExistingGraph()
                                     throws Exception
        Throws:
        Exception
      • testCopyToDefault

        @Test
        public void testCopyToDefault()
                               throws Exception
        Throws:
        Exception
      • testCopyToExistingNamed

        @Test
        public void testCopyToExistingNamed()
                                     throws Exception
        Throws:
        Exception
      • testCopyToNewNamed

        @Test
        public void testCopyToNewNamed()
                                throws Exception
        Throws:
        Exception
      • testCopyFromDefault

        @Test
        public void testCopyFromDefault()
                                 throws Exception
        Throws:
        Exception
      • testCopyFromDefaultToDefault

        @Test
        public void testCopyFromDefaultToDefault()
                                          throws Exception
        Throws:
        Exception
      • testAddToDefault

        @Test
        public void testAddToDefault()
                              throws Exception
        Throws:
        Exception
      • testAddToExistingNamed

        @Test
        public void testAddToExistingNamed()
                                    throws Exception
        Throws:
        Exception
      • testAddToNewNamed

        @Test
        public void testAddToNewNamed()
                               throws Exception
        Throws:
        Exception
      • testAddFromDefault

        @Test
        public void testAddFromDefault()
                                throws Exception
        Throws:
        Exception
      • testAddFromDefaultToDefault

        @Test
        public void testAddFromDefaultToDefault()
                                         throws Exception
        Throws:
        Exception
      • testMoveToDefault

        @Test
        public void testMoveToDefault()
                               throws Exception
        Throws:
        Exception
      • testMoveToNewNamed

        @Test
        public void testMoveToNewNamed()
                                throws Exception
        Throws:
        Exception
      • testMoveFromDefault

        @Test
        public void testMoveFromDefault()
                                 throws Exception
        Throws:
        Exception
      • testMoveFromDefaultToDefault

        @Test
        public void testMoveFromDefaultToDefault()
                                          throws Exception
        Throws:
        Exception
      • testClearDefault

        @Test
        public void testClearDefault()
                              throws Exception
        Throws:
        Exception
      • testDropDefault

        @Test
        public void testDropDefault()
                             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
      • testInvalidInsertUpdate

        @Test
        public void testInvalidInsertUpdate()
      • testInvalidDeleteUpdate

        @Test
        public void testInvalidDeleteUpdate()
      • 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