Hi Martynas,
see Example 2 of section 3.1.1 INSERT DATA of the spec: "As opposed to the 
previous example, which affected the default graph, the requested change 
happens in the named graph identified by the IRI
http://example/bookStore."; -- http://www.w3.org/TR/sparql11-update/#insertData

See also:

 - http://incubator.apache.org/jena/documentation/query/update.html
 - http://www.w3.org/TR/sparql11-http-rdf-update/#http-post
 - UpdateExecutionFactory.createRemote(Update update, String remoteEndpoint) to 
create an UpdateProcessor that send the update request to a remote SPARQL 
Update service. --
https://svn.apache.org/repos/asf/incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/update/UpdateExecutionFactory.java
 - 
https://svn.apache.org/repos/asf/incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateProcessRemote.java

Paolo


Martynas Jusevicius wrote:
> Hey,
> 
> lets suppose I have a
> 1. Model m
> 2. graph name http://host/graph
> 3. remote SPARQL 1.1 endpoint URI http://host/sparql
> 
> I want to use Jena to do a SPARQL Update to insert the Model as a
> named graph on the endpoint.
> In other words, I want to save the Model on http://host/sparql so that
> it later would be accessible in SPARQL via GRAPH <http://host/graph>.
> 
> Is there a way to do this? The only example I've found that comes
> close to what I need is the following:
> http://linuxsoftwareblog.com/?p=843
> It involves NG4J however, I would rather avoid that.
> In any case, the API workflow seems to be quite complicated to do
> something as simple. Why not allow smth like this?
> 
>   
> GraphstoreFactory.create("http://host/sparql";).addNamedModel("http://host/graph";,
> m);
> 
> Martynas
> graphity.org

Reply via email to