Class UpdateAction


  • public class UpdateAction
    extends java.lang.Object
    A class of forms for executing SPARQL Update operations. parse means the update request is in a String or an InputStream; read means read the contents of a file.
    • Constructor Summary

      Constructors 
      Constructor Description
      UpdateAction()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void execute​(UpdateRequest request, Graph graph)
      Execute SPARQL Update operations.
      static void execute​(UpdateRequest request, Dataset dataset)
      Execute SPARQL Update operations.
      static void execute​(UpdateRequest request, Dataset dataset, QuerySolution inputBinding)
      Execute SPARQL Update operations.
      static void execute​(UpdateRequest request, Model model)
      Execute SPARQL Update operations.
      static void execute​(UpdateRequest request, DatasetGraph dataset)
      Execute SPARQL Update operations.
      static void execute​(UpdateRequest request, DatasetGraph datasetGraph, Binding inputBinding)
      Execute SPARQL Update operations.
      static void execute​(Update update, Graph graph)
      Execute a single SPARQL Update operation.
      static void execute​(Update update, Dataset dataset)
      Execute a single SPARQL Update operation.
      static void execute​(Update update, Dataset dataset, QuerySolution inputBinding)
      Execute a single SPARQL Update operation.
      static void execute​(Update update, Model model)
      Execute a single SPARQL Update operation.
      static void execute​(Update update, DatasetGraph dataset)
      Execute a single SPARQL Update operation.
      static void execute​(Update update, DatasetGraph datasetGraph, Binding inputBinding)
      Execute a single SPARQL Update operation.
      static void parseExecute​(java.lang.String updateString, Graph graph)
      Parse a string containing SPARQL Update operations, and execute the operations.
      static void parseExecute​(java.lang.String updateString, Dataset dataset)
      Parse a string containing SPARQL Update operations, and execute the operations.
      static void parseExecute​(java.lang.String updateString, Dataset dataset, QuerySolution inputBinding)
      Parse a string containing SPARQL Update operations, and execute the operations.
      static void parseExecute​(java.lang.String updateString, Model model)
      Parse a string containing SPARQL Update operations, and execute the operations.
      static void parseExecute​(java.lang.String updateString, DatasetGraph dataset)
      Parse a string containing SPARQL Update operations, and execute the operations.
      static void parseExecute​(java.lang.String updateString, DatasetGraph dataset, Binding inputBinding)
      Parse a string containing SPARQL Update operations, and execute the operations.
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.io.InputStream input)
      Parse update operations into a GraphStore by parsing from an InputStream.
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.io.InputStream input, java.lang.String baseURI)
      Parse update operations into a GraphStore by parsing from an InputStream.
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.io.InputStream input, java.lang.String baseURI, Syntax syntax)
      Parse update operations into a GraphStore by parsing from an InputStream.
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.io.InputStream input, QuerySolution inputBinding, java.lang.String baseURI, Syntax syntax)
      Parse update operations into a GraphStore by parsing from an InputStream.
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.io.InputStream input, Syntax syntax)
      Parse update operations into a GraphStore by parsing from an InputStream.
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.io.InputStream input, Binding inputBinding, java.lang.String baseURI, Syntax syntax)
      Parse update operations into a GraphStore by parsing from an InputStream.
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.lang.String fileName)
      Parse update operations into a GraphStore by reading it from a file
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.lang.String fileName, java.lang.String baseURI, Syntax syntax)
      Parse update operations into a GraphStore by reading it from a file
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.lang.String fileName, QuerySolution inputBinding, java.lang.String baseURI, Syntax syntax)
      Parse update operations into a GraphStore by reading it from a file
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.lang.String fileName, Syntax syntax)
      Parse update operations into a GraphStore by reading it from a file
      static void parseExecute​(UsingList usingList, DatasetGraph dataset, java.lang.String fileName, Binding inputBinding, java.lang.String baseURI, Syntax syntax)
      Parse update operations into a GraphStore by reading it from a file
      static void readExecute​(java.lang.String filename, Graph graph)
      Read a file containing SPARQL Update operations, and execute the operations.
      static void readExecute​(java.lang.String filename, Dataset dataset)
      Read a file containing SPARQL Update operations, and execute the operations.
      static void readExecute​(java.lang.String filename, Dataset dataset, QuerySolution inputBinding)
      Read a file containing SPARQL Update operations, and execute the operations.
      static void readExecute​(java.lang.String filename, Model model)
      Read a file containing SPARQL Update operations, and execute the operations.
      static void readExecute​(java.lang.String filename, DatasetGraph dataset)
      Read a file containing SPARQL Update operations, and execute the operations.
      static void readExecute​(java.lang.String filename, DatasetGraph datasetGraph, Binding inputBinding)
      Read a file containing SPARQL Update operations, and execute the operations.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpdateAction

        public UpdateAction()
    • Method Detail

      • readExecute

        public static void readExecute​(java.lang.String filename,
                                       Model model)
        Read a file containing SPARQL Update operations, and execute the operations.
        Parameters:
        filename -
        model -
      • readExecute

        public static void readExecute​(java.lang.String filename,
                                       Graph graph)
        Read a file containing SPARQL Update operations, and execute the operations.
        Parameters:
        filename -
        graph -
      • readExecute

        public static void readExecute​(java.lang.String filename,
                                       Dataset dataset)
        Read a file containing SPARQL Update operations, and execute the operations.
        Parameters:
        filename -
        dataset -
      • readExecute

        public static void readExecute​(java.lang.String filename,
                                       DatasetGraph dataset)
        Read a file containing SPARQL Update operations, and execute the operations.
        Parameters:
        filename -
        dataset -
      • readExecute

        public static void readExecute​(java.lang.String filename,
                                       Dataset dataset,
                                       QuerySolution inputBinding)
        Read a file containing SPARQL Update operations, and execute the operations.
        Parameters:
        filename -
        dataset -
        inputBinding -
      • readExecute

        public static void readExecute​(java.lang.String filename,
                                       DatasetGraph datasetGraph,
                                       Binding inputBinding)
        Read a file containing SPARQL Update operations, and execute the operations.
        Parameters:
        filename -
        datasetGraph -
        inputBinding -
      • parseExecute

        public static void parseExecute​(java.lang.String updateString,
                                        Model model)
        Parse a string containing SPARQL Update operations, and execute the operations.
        Parameters:
        updateString -
        model -
      • parseExecute

        public static void parseExecute​(java.lang.String updateString,
                                        Graph graph)
        Parse a string containing SPARQL Update operations, and execute the operations.
        Parameters:
        updateString -
        graph -
      • parseExecute

        public static void parseExecute​(java.lang.String updateString,
                                        Dataset dataset)
        Parse a string containing SPARQL Update operations, and execute the operations.
        Parameters:
        updateString -
        dataset -
      • parseExecute

        public static void parseExecute​(java.lang.String updateString,
                                        DatasetGraph dataset)
        Parse a string containing SPARQL Update operations, and execute the operations.
        Parameters:
        updateString -
        dataset -
      • parseExecute

        public static void parseExecute​(java.lang.String updateString,
                                        Dataset dataset,
                                        QuerySolution inputBinding)
        Parse a string containing SPARQL Update operations, and execute the operations.
        Parameters:
        updateString -
        dataset -
        inputBinding -
      • parseExecute

        public static void parseExecute​(java.lang.String updateString,
                                        DatasetGraph dataset,
                                        Binding inputBinding)
        Parse a string containing SPARQL Update operations, and execute the operations.
        Parameters:
        updateString -
        dataset -
        inputBinding -
      • execute

        public static void execute​(UpdateRequest request,
                                   Model model)
        Execute SPARQL Update operations.
        Parameters:
        request -
        model -
      • execute

        public static void execute​(UpdateRequest request,
                                   Graph graph)
        Execute SPARQL Update operations.
        Parameters:
        request -
        graph -
      • execute

        public static void execute​(UpdateRequest request,
                                   Dataset dataset)
        Execute SPARQL Update operations.
        Parameters:
        request -
        dataset -
      • execute

        public static void execute​(UpdateRequest request,
                                   DatasetGraph dataset)
        Execute SPARQL Update operations.
        Parameters:
        request -
        dataset -
      • execute

        public static void execute​(UpdateRequest request,
                                   Dataset dataset,
                                   QuerySolution inputBinding)
        Execute SPARQL Update operations.
        Parameters:
        request -
        dataset -
        inputBinding -
      • execute

        public static void execute​(UpdateRequest request,
                                   DatasetGraph datasetGraph,
                                   Binding inputBinding)
        Execute SPARQL Update operations.
        Parameters:
        request -
        datasetGraph -
        inputBinding -
      • execute

        public static void execute​(Update update,
                                   Model model)
        Execute a single SPARQL Update operation.
        Parameters:
        update -
        model -
      • execute

        public static void execute​(Update update,
                                   Graph graph)
        Execute a single SPARQL Update operation.
        Parameters:
        update -
        graph -
      • execute

        public static void execute​(Update update,
                                   Dataset dataset)
        Execute a single SPARQL Update operation.
        Parameters:
        update -
        dataset -
      • execute

        public static void execute​(Update update,
                                   DatasetGraph dataset)
        Execute a single SPARQL Update operation.
        Parameters:
        update -
        dataset -
      • execute

        public static void execute​(Update update,
                                   Dataset dataset,
                                   QuerySolution inputBinding)
        Execute a single SPARQL Update operation.
        Parameters:
        update -
        dataset -
        inputBinding -
      • execute

        public static void execute​(Update update,
                                   DatasetGraph datasetGraph,
                                   Binding inputBinding)
        Execute a single SPARQL Update operation.
        Parameters:
        update -
        datasetGraph -
        inputBinding -
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.lang.String fileName)
        Parse update operations into a GraphStore by reading it from a file
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.lang.String fileName,
                                        Syntax syntax)
        Parse update operations into a GraphStore by reading it from a file
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.lang.String fileName,
                                        java.lang.String baseURI,
                                        Syntax syntax)
        Parse update operations into a GraphStore by reading it from a file
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.lang.String fileName,
                                        QuerySolution inputBinding,
                                        java.lang.String baseURI,
                                        Syntax syntax)
        Parse update operations into a GraphStore by reading it from a file
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.lang.String fileName,
                                        Binding inputBinding,
                                        java.lang.String baseURI,
                                        Syntax syntax)
        Parse update operations into a GraphStore by reading it from a file
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.io.InputStream input)
        Parse update operations into a GraphStore by parsing from an InputStream.
        Parameters:
        usingList - A list of USING or USING NAMED statements that be added to all UpdateWithUsing queries
        input - The source of the update request (must be UTF-8).
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.io.InputStream input,
                                        Syntax syntax)
        Parse update operations into a GraphStore by parsing from an InputStream.
        Parameters:
        usingList - A list of USING or USING NAMED statements that be added to all UpdateWithUsing queries
        input - The source of the update request (must be UTF-8).
        syntax - The update language syntax
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.io.InputStream input,
                                        java.lang.String baseURI)
        Parse update operations into a GraphStore by parsing from an InputStream.
        Parameters:
        usingList - A list of USING or USING NAMED statements that be added to all UpdateWithUsing queries
        input - The source of the update request (must be UTF-8).
        baseURI - The base URI for resolving relative URIs.
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.io.InputStream input,
                                        java.lang.String baseURI,
                                        Syntax syntax)
        Parse update operations into a GraphStore by parsing from an InputStream.
        Parameters:
        usingList - A list of USING or USING NAMED statements that be added to all UpdateWithUsing queries
        dataset - The dataset to apply the changes to
        input - The source of the update request (must be UTF-8).
        baseURI - The base URI for resolving relative URIs (may be null)
        syntax - The update language syntax
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.io.InputStream input,
                                        QuerySolution inputBinding,
                                        java.lang.String baseURI,
                                        Syntax syntax)
        Parse update operations into a GraphStore by parsing from an InputStream.
        Parameters:
        usingList - A list of USING or USING NAMED statements that be added to all UpdateWithUsing queries
        dataset - The dataset to apply the changes to
        input - The source of the update request (must be UTF-8).
        inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify). May be null
        baseURI - The base URI for resolving relative URIs (may be null)
        syntax - The update language syntax
      • parseExecute

        public static void parseExecute​(UsingList usingList,
                                        DatasetGraph dataset,
                                        java.io.InputStream input,
                                        Binding inputBinding,
                                        java.lang.String baseURI,
                                        Syntax syntax)
        Parse update operations into a GraphStore by parsing from an InputStream.
        Parameters:
        usingList - A list of USING or USING NAMED statements that be added to all UpdateWithUsing queries
        dataset - The dataset to apply the changes to
        input - The source of the update request (must be UTF-8).
        inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify). May be null
        baseURI - The base URI for resolving relative URIs (may be null)
        syntax - The update language syntax