You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2016/04/08 14:25:20 UTC

svn commit: r1738240 - /jena/site/trunk/content/documentation/query/update.mdtext

Author: andy
Date: Fri Apr  8 12:25:20 2016
New Revision: 1738240

URL: http://svn.apache.org/viewvc?rev=1738240&view=rev
Log:
Remove GraphStore

Modified:
    jena/site/trunk/content/documentation/query/update.mdtext

Modified: jena/site/trunk/content/documentation/query/update.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/query/update.mdtext?rev=1738240&r1=1738239&r2=1738240&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/query/update.mdtext (original)
+++ jena/site/trunk/content/documentation/query/update.mdtext Fri Apr  8 12:25:20 2016
@@ -11,10 +11,8 @@ with RDF data and modified.
 Some examples of ARQ's SPARQL Update support are to be found in the
 download in src-examples/arq/examples/update.
 
-The main important classes are:
+The main API classes are:
 
--   GraphStoreFactory - A graph store is the container of graphs
-    that is being updated. It can wrap RDF Datasets.
 -   UpdateRequest - A list of Update to be performed.
 -   UpdateFactory - Create UpdateRequest objects by poarsing
     strings or parsing the contents of a file.
@@ -22,15 +20,13 @@ The main important classes are:
 
 To execute a SPARQL Update request as a script from a file:
 
-    Dataset ds = ...
-    GraphStore graphStore = GraphStoreFactory.create(ds) ;
-    UpdateAction.readExecute("update.ru", graphStore) ;
+    Dataset dataset = ...
+    UpdateAction.readExecute("update.ru", dataset) ;
 
 To execute a SPARQL Update request as a string:
 
-    Dataset ds = ...
-    GraphStore graphStore = GraphStoreFactory.create(ds) ;
-    UpdateAction.parseExecute(("DROP ALL", graphStore) ;
+    Dataset dataset = ...
+    UpdateAction.parseExecute("DROP ALL", dataset) ;
 
 The application writer can create and execute operations:
 
@@ -40,12 +36,11 @@ The application writer can create and ex
            .add("LOAD <file:etc/update-data.ttl> INTO <http://example/g2>") ;
 
     // And perform the operations.
-    UpdateAction.execute(request, graphStore) ;
+    UpdateAction.execute(request, dataset) ;
 
 but be aware that each operation added needs to be a complete
 SPARQL Update operation, including prefixes if needed.
 
-
 [ARQ documentation index](index.html)