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 2012/08/15 21:16:25 UTC

svn commit: r1373582 - in /jena/Scratch/AFS/Jena-Dev/trunk: BUG D.trig D.ttl Q.rq Q1.rq U.ru XSDdatatypes.txt dwim dwimall quads.nq tdb.ttl

Author: andy
Date: Wed Aug 15 19:16:24 2012
New Revision: 1373582

URL: http://svn.apache.org/viewvc?rev=1373582&view=rev
Log: (empty)

Added:
    jena/Scratch/AFS/Jena-Dev/trunk/BUG
Removed:
    jena/Scratch/AFS/Jena-Dev/trunk/D.trig
    jena/Scratch/AFS/Jena-Dev/trunk/D.ttl
    jena/Scratch/AFS/Jena-Dev/trunk/Q.rq
    jena/Scratch/AFS/Jena-Dev/trunk/Q1.rq
    jena/Scratch/AFS/Jena-Dev/trunk/XSDdatatypes.txt
    jena/Scratch/AFS/Jena-Dev/trunk/dwimall
    jena/Scratch/AFS/Jena-Dev/trunk/quads.nq
    jena/Scratch/AFS/Jena-Dev/trunk/tdb.ttl
Modified:
    jena/Scratch/AFS/Jena-Dev/trunk/U.ru
    jena/Scratch/AFS/Jena-Dev/trunk/dwim

Added: jena/Scratch/AFS/Jena-Dev/trunk/BUG
URL: http://svn.apache.org/viewvc/jena/Scratch/AFS/Jena-Dev/trunk/BUG?rev=1373582&view=auto
==============================================================================
--- jena/Scratch/AFS/Jena-Dev/trunk/BUG (added)
+++ jena/Scratch/AFS/Jena-Dev/trunk/BUG Wed Aug 15 19:16:24 2012
@@ -0,0 +1,7 @@
+1/ If USING 
+   then all NG still present 
+   (check spec)
+
+2/ If USING NAMED
+   then default graph still present
+   (check spec)
\ No newline at end of file

Modified: jena/Scratch/AFS/Jena-Dev/trunk/U.ru
URL: http://svn.apache.org/viewvc/jena/Scratch/AFS/Jena-Dev/trunk/U.ru?rev=1373582&r1=1373581&r2=1373582&view=diff
==============================================================================
--- jena/Scratch/AFS/Jena-Dev/trunk/U.ru (original)
+++ jena/Scratch/AFS/Jena-Dev/trunk/U.ru Wed Aug 15 19:16:24 2012
@@ -1,11 +1,14 @@
-PREFIX : <http://example/>
+BASE <http://example/> 
 
-#LOAD <file:../Jena-Dev/quads.nq>
+INSERT DATA { <s> <p> <o> GRAPH <g1> { <s1> <p1> <o1> }  GRAPH <g2> { <s2> <p2> <o2> } }
+;
 
-CLEAR ALL ;
+## INSERT { ?s ?p ?o }
+## #USING NAMED <g1>
+## USING <g2>
+## WHERE { GRAPH ?g {?s ?p ?o } }
 
-BASE <http://example/>
-INSERT DATA { GRAPH <g> { <s> <p> <o> } } ;
-
-#DELETE
-INSERT { ?s ?p ?o } WHERE { ?s ?p ?o }
+DELETE { ?s ?p ?o }
+USING NAMED <g1>
+# USING <g2>
+WHERE { ?s ?p ?o }

Modified: jena/Scratch/AFS/Jena-Dev/trunk/dwim
URL: http://svn.apache.org/viewvc/jena/Scratch/AFS/Jena-Dev/trunk/dwim?rev=1373582&r1=1373581&r2=1373582&view=diff
==============================================================================
--- jena/Scratch/AFS/Jena-Dev/trunk/dwim (original)
+++ jena/Scratch/AFS/Jena-Dev/trunk/dwim Wed Aug 15 19:16:24 2012
@@ -1,10 +1,50 @@
 #!/bin/sh
 
-CP="classes:$HOME/Jena/jena-tdb/classes:$HOME/Jena/jena-arq/classes:$HOME/Jena/jena-core/classes"
-CP="$CP:/home/afs/.m2/repo/org/apache/jena/jena-iri/0.9.2-SNAPSHOT/jena-iri-0.9.2-SNAPSHOT.jar"
-CP="$CP:/home/afs/.m2/repo/commons-codec/commons-codec/1.5/commons-codec-1.5.jar:/home/afs/.m2/repo/junit/junit/4.9/junit-4.9.jar:/home/afs/.m2/repo/log4j/log4j/1.2.16/log4j-1.2.16.jar:/home/afs/.m2/repo/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.jar:/home/afs/.m2/repo/org/slf4j/slf4j-log4j12/1.6.4/slf4j-log4j12-1.6.4.jar:/home/afs/.m2/repo/xerces/xercesImpl/2.10.0/xercesImpl-2.10.0.jar:/home/afs/.m2/repo/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar"
+#curl -X POST 
 
-## CP="classes:$HOME/jlib/jena-tdb-0.9.0-incubating/lib/*"
-## echo "TDB 0.9.0"
+update()
+{
+  R="$1"
+  curl -s -d "$R" 'http://localhost:3030/ds/update'
+}
 
-java -Xmx2G -cp "$CP" dev.Jena256_TDBWritePerf
+query()
+{
+   Q="$1"
+   curl -s -d "query=$Q&output=text" http://localhost:3030/ds/query
+}
+
+
+# Setup
+update 'request=CLEAR ALL' 'http://localhost:3030/ds/update' > /dev/null
+
+update 'request=INSERT DATA { GRAPH <g1> { <s1> <p1> <o1> }  GRAPH <g2> { <s2> <p2> <o2> } }' \
+   'http://localhost:3030/ds/update' \
+   > /dev/null
+
+# Query
+echo "==== setup"
+query 'SELECT * {?s ?p ?o}'
+echo
+
+## # INSERT using-graph-uri
+## echo "Insert dft->dft using-graph-uri=g"
+## curl -s -d 'request=INSERT { ?s ?p ?o } WHERE { ?s ?p ?o }' 'http://localhost:3030/ds/update?using-graph-uri=http://example/base/g'  > /dev/null
+
+# no action
+curl -s -d 'request=INSERT { ?s ?p ?o } WHERE { GRAPH <g1> { ?s ?p ?o }}' 'http://localhost:3030/ds/update?using-named-graph-uri=http://example/base/g2'  > /dev/null
+
+# no action
+curl -s -d 'request=INSERT { ?s ?p ?o } WHERE { GRAPH <g1> { ?s ?p ?o }}' 'http://localhost:3030/ds/update?using-graph-uri=http://example/base/g2'  > /dev/null
+
+
+# Query
+curl -s -d 'query=SELECT * {?s ?p ?o}&output=text' http://localhost:3030/ds/query
+
+# Only g1.
+curl -s -d 'request=INSERT { ?s ?p ?o } WHERE { GRAPH ?g { ?s ?p ?o }}' 'http://localhost:3030/ds/update?using-named-graph-uri=http://example/base/g1'  > /dev/null
+
+
+
+# Query
+curl -s -d 'query=SELECT * {?s ?p ?o}&output=text' http://localhost:3030/ds/query