/** * Parse update operations into a GraphStore by parsing from an InputStream. * @param usingList A list of USING or USING NAMED statements that be added to all {@link UpdateWithUsing} queries * @param input The source of the update request (must be UTF-8). * @param syntax The update language syntax */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, InputStream input, Syntax syntax) { parseExecute(usingList, dataset, input, null, syntax) ; }
/** Parse update operations into a GraphStore by reading it from a file */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, String fileName) { parseExecute(usingList, dataset, fileName, null, Syntax.defaultUpdateSyntax) ; }
/** * Parse update operations into a GraphStore by parsing from an InputStream. * @param usingList A list of USING or USING NAMED statements that be added to all {@link UpdateWithUsing} queries * @param dataset The dataset to apply the changes to * @param input The source of the update request (must be UTF-8). * @param baseURI The base URI for resolving relative URIs (may be <code>null</code>) * @param syntax The update language syntax */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, InputStream input, String baseURI, Syntax syntax) { parseExecute(usingList, dataset, input, (Binding)null, baseURI, syntax); }
/** Parse update operations into a GraphStore by reading it from a file */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, String fileName, Syntax syntax) { parseExecute(usingList, dataset, fileName, null, syntax) ; }
/** * Parse update operations into a GraphStore by parsing from an InputStream. * @param usingList A list of USING or USING NAMED statements that be added to all {@link UpdateWithUsing} queries * @param input The source of the update request (must be UTF-8). * @param baseURI The base URI for resolving relative URIs. */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, InputStream input, String baseURI) { parseExecute(usingList, dataset, input, baseURI, Syntax.defaultUpdateSyntax) ; }
/** Parse update operations into a GraphStore by reading it from a file */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, String fileName, String baseURI, Syntax syntax) { parseExecute(usingList, dataset, fileName, (Binding)null, baseURI, syntax); }
/** * Parse update operations into a GraphStore by parsing from an InputStream. * @param usingList A list of USING or USING NAMED statements that be added to all {@link UpdateWithUsing} queries * @param input The source of the update request (must be UTF-8). */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, InputStream input) { parseExecute(usingList, dataset, input, Syntax.defaultUpdateSyntax) ; }
/** Parse a string containing SPARQL Update operations, and execute the operations. * @param updateString * @param dataset */ public static void parseExecute(String updateString, Dataset dataset) { parseExecute(updateString, dataset.asDatasetGraph()) ; }
/** Parse a string containing SPARQL Update operations, and execute the operations. * @param updateString * @param model */ public static void parseExecute(String updateString, Model model) { parseExecute(updateString, model.getGraph()) ; }
/** Parse a string containing SPARQL Update operations, and execute the operations. * @param updateString * @param graph */ public static void parseExecute(String updateString, Graph graph) { parseExecute(updateString, toDatasetGraph(graph)) ; }
/** Parse update operations into a GraphStore by reading it from a file */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, String fileName, QuerySolution inputBinding, String baseURI, Syntax syntax) { parseExecute(usingList, dataset, fileName, BindingUtils.asBinding(inputBinding), baseURI, syntax) ; }
/** * Parse update operations into a GraphStore by parsing from an InputStream. * @param usingList A list of USING or USING NAMED statements that be added to all {@link UpdateWithUsing} queries * @param dataset The dataset to apply the changes to * @param input The source of the update request (must be UTF-8). * @param inputBinding Initial binding to be applied to Update operations that can apply an initial binding * (i.e. UpdateDeleteWhere, UpdateModify). May be <code>null</code> * @param baseURI The base URI for resolving relative URIs (may be <code>null</code>) * @param syntax The update language syntax */ public static void parseExecute(UsingList usingList, DatasetGraph dataset, InputStream input, QuerySolution inputBinding, String baseURI, Syntax syntax) { parseExecute(usingList, dataset, input, BindingUtils.asBinding(inputBinding), baseURI, syntax) ; }
/** Parse a string containing SPARQL Update operations, and execute the operations. * @param updateString * @param dataset * @param inputBinding */ public static void parseExecute(String updateString, Dataset dataset, QuerySolution inputBinding) { parseExecute(updateString, dataset.asDatasetGraph(), BindingUtils.asBinding(inputBinding)) ; }
/** Parse update operations into a GraphStore by reading it from a file */ @SuppressWarnings("resource") public static void parseExecute(UsingList usingList, DatasetGraph dataset, String fileName, Binding inputBinding, String baseURI, Syntax syntax) { InputStream in = null ; if ( fileName.equals("-") ) in = System.in ; else { in = IO.openFile(fileName) ; if ( in == null ) throw new UpdateException("File could not be opened: "+fileName) ; } parseExecute(usingList, dataset, in, inputBinding, baseURI, syntax) ; if ( in != System.in ) IO.close(in) ; }
try { if (req == null ) UpdateAction.parseExecute(usingList, action.getActiveDSG(), input, UpdateParseBase, Syntax.syntaxARQ); else UpdateAction.execute(req, action.getActiveDSG()) ;
try { if (req == null ) UpdateAction.parseExecute(usingList, action.getActiveDSG(), input, UpdateParseBase, Syntax.syntaxARQ); else UpdateAction.execute(req, action.getActiveDSG()) ;