com.hp.hpl.jena.update
Class UpdateFactory

java.lang.Object
  extended by com.hp.hpl.jena.update.UpdateFactory

public class UpdateFactory
extends Object


Constructor Summary
UpdateFactory()
           
 
Method Summary
static UpdateRequest create()
          Create an empty UpdateRequest
static UpdateRequest create(String string)
          Create an UpdateRequest by parsing from a string.
static UpdateRequest create(String string, String baseURI)
          Create an UpdateRequest by parsing from a string.
static UpdateRequest create(String string, String baseURI, Syntax syntax)
          Create an UpdateRequest by parsing from a string.
static UpdateRequest create(String string, Syntax syntax)
          Create an UpdateRequest by parsing from a string.
static UpdateProcessor create(Update update, GraphStore graphStore)
          Deprecated. Use UpdateExecutionFactory.create(Update,GraphStore) instead
static UpdateProcessor create(Update update, GraphStore graphStore, Binding initialBinding)
          Deprecated. Use UpdateExecutionFactory.create(Update,GraphStore,Binding) instead
static UpdateProcessor create(Update update, GraphStore graphStore, QuerySolution initialSolution)
          Deprecated. Use UpdateExecutionFactory.create(Update,GraphStore,QuerySolution) instead
static UpdateProcessor create(UpdateRequest updateRequest, GraphStore graphStore)
          Deprecated. Use UpdateExecutionFactory.create(UpdateRequest,GraphStore) instead
static UpdateProcessor create(UpdateRequest updateRequest, GraphStore graphStore, Binding initialBinding)
          Deprecated. Use UpdateExecutionFactory.create(UpdateRequest,GraphStore,Binding) instead
static UpdateProcessor create(UpdateRequest updateRequest, GraphStore graphStore, QuerySolution initialSolution)
          Deprecated. Use UpdateExecutionFactory.create(UpdateRequest,GraphStore,QuerySolution) instead
static void parse(UpdateRequest request, String updateString)
           
static void parse(UpdateRequest request, String updateString, String baseURI)
           
static void parse(UpdateRequest request, String updateString, String baseURI, Syntax syntax)
           
static void parse(UpdateRequest request, String updateString, Syntax syntax)
           
static UpdateRequest read(InputStream input)
          Create an UpdateRequest by parsing from a string.
static UpdateRequest read(InputStream input, String baseURI)
          Create an UpdateRequest by parsing from a string.
static UpdateRequest read(InputStream input, String baseURI, Syntax syntax)
          Create an UpdateRequest by parsing from a string.
static UpdateRequest read(InputStream input, Syntax syntax)
          Create an UpdateRequest by parsing from a string.
static UpdateRequest read(String fileName)
          Create an UpdateRequest by reading it from a file
static UpdateRequest read(String fileName, String baseURI, Syntax syntax)
          Create an UpdateRequest by reading it from a file
static UpdateRequest read(String fileName, Syntax syntax)
          Create an UpdateRequest by reading it from a file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateFactory

public UpdateFactory()
Method Detail

create

public static UpdateRequest create()
Create an empty UpdateRequest


create

public static UpdateRequest create(String string)
Create an UpdateRequest by parsing from a string. See also read operations for parsing contents of a file.

Parameters:
string - The update request as a string.

create

public static UpdateRequest create(String string,
                                   Syntax syntax)
Create an UpdateRequest by parsing from a string. See also read operations for parsing contents of a file.

Parameters:
string - The update request as a string.
syntax - The update language syntax

create

public static UpdateRequest create(String string,
                                   String baseURI)
Create an UpdateRequest by parsing from a string. See also read operations for parsing contents of a file.

Parameters:
string - The update request as a string.
baseURI - The base URI for resolving relative URIs.

create

public static UpdateRequest create(String string,
                                   String baseURI,
                                   Syntax syntax)
Create an UpdateRequest by parsing from a string. See also read operations for parsing contents of a file.

Parameters:
string - The update request as a string.
baseURI - The base URI for resolving relative URIs.
syntax - The update language syntax

parse

public static void parse(UpdateRequest request,
                         String updateString)

parse

public static void parse(UpdateRequest request,
                         String updateString,
                         Syntax syntax)

parse

public static void parse(UpdateRequest request,
                         String updateString,
                         String baseURI)

parse

public static void parse(UpdateRequest request,
                         String updateString,
                         String baseURI,
                         Syntax syntax)

read

public static UpdateRequest read(String fileName)
Create an UpdateRequest by reading it from a file


read

public static UpdateRequest read(String fileName,
                                 Syntax syntax)
Create an UpdateRequest by reading it from a file


read

public static UpdateRequest read(String fileName,
                                 String baseURI,
                                 Syntax syntax)
Create an UpdateRequest by reading it from a file


read

public static UpdateRequest read(InputStream input)
Create an UpdateRequest by parsing from a string. See also read operations for parsing contents of a file.

Parameters:
input - The source of the update request (must be UTF-8).

read

public static UpdateRequest read(InputStream input,
                                 Syntax syntax)
Create an UpdateRequest by parsing from a string. See also read operations for parsing contents of a file.

Parameters:
input - The source of the update request (must be UTF-8).
syntax - The update language syntax

read

public static UpdateRequest read(InputStream input,
                                 String baseURI)
Create an UpdateRequest by parsing from a string. See also read operations for parsing contents of a file.

Parameters:
input - The source of the update request (must be UTF-8).
baseURI - The base URI for resolving relative URIs.

read

public static UpdateRequest read(InputStream input,
                                 String baseURI,
                                 Syntax syntax)
Create an UpdateRequest by parsing from a string. See also read operations for parsing contents of a file.

Parameters:
input - The source of the update request (must be UTF-8).
baseURI - The base URI for resolving relative URIs.
syntax - The update language syntax

create

@Deprecated
public static UpdateProcessor create(Update update,
                                                GraphStore graphStore)
Deprecated. Use UpdateExecutionFactory.create(Update,GraphStore) instead

Create a UpdateProcessor appropriate to the GraphStore, or null if no available factory to make an UpdateProcessor

Parameters:
update -
graphStore -
Returns:
UpdateProcessor or null

create

@Deprecated
public static UpdateProcessor create(Update update,
                                                GraphStore graphStore,
                                                QuerySolution initialSolution)
Deprecated. Use UpdateExecutionFactory.create(Update,GraphStore,QuerySolution) instead

Create a UpdateProcessor appropriate to the GraphStore, or null if no available factory to make an UpdateProcessor

Parameters:
update -
graphStore -
initialSolution -
Returns:
UpdateProcessor or null

create

@Deprecated
public static UpdateProcessor create(Update update,
                                                GraphStore graphStore,
                                                Binding initialBinding)
Deprecated. Use UpdateExecutionFactory.create(Update,GraphStore,Binding) instead

Create a UpdateProcessor appropriate to the GraphStore, or null if no available factory to make an UpdateProcessor

Parameters:
update -
graphStore -
initialBinding -
Returns:
UpdateProcessor or null

create

@Deprecated
public static UpdateProcessor create(UpdateRequest updateRequest,
                                                GraphStore graphStore)
Deprecated. Use UpdateExecutionFactory.create(UpdateRequest,GraphStore) instead

Create a UpdateProcessor appropriate to the GraphStore, or null if no available factory to make an UpdateProcessor

Parameters:
updateRequest -
graphStore -
Returns:
UpdateProcessor or null

create

@Deprecated
public static UpdateProcessor create(UpdateRequest updateRequest,
                                                GraphStore graphStore,
                                                QuerySolution initialSolution)
Deprecated. Use UpdateExecutionFactory.create(UpdateRequest,GraphStore,QuerySolution) instead

Create a UpdateProcessor appropriate to the GraphStore, or null if no available factory to make an UpdateProcessor

Parameters:
updateRequest -
graphStore -
initialSolution -
Returns:
UpdateProcessor or null

create

@Deprecated
public static UpdateProcessor create(UpdateRequest updateRequest,
                                                GraphStore graphStore,
                                                Binding initialBinding)
Deprecated. Use UpdateExecutionFactory.create(UpdateRequest,GraphStore,Binding) instead

Create a UpdateProcessor appropriate to the GraphStore, or null if no available factory to make an UpdateProcessor

Parameters:
updateRequest -
graphStore -
initialBinding -
Returns:
UpdateProcessor or null


Licenced under the Apache License, Version 2.0