Return-Path: X-Original-To: apmail-jena-commits-archive@www.apache.org Delivered-To: apmail-jena-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8811DA65 for ; Wed, 15 Aug 2012 19:17:09 +0000 (UTC) Received: (qmail 78116 invoked by uid 500); 15 Aug 2012 19:17:09 -0000 Delivered-To: apmail-jena-commits-archive@jena.apache.org Received: (qmail 78094 invoked by uid 500); 15 Aug 2012 19:17:09 -0000 Mailing-List: contact commits-help@jena.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jena.apache.org Delivered-To: mailing list commits@jena.apache.org Received: (qmail 78087 invoked by uid 99); 15 Aug 2012 19:17:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 19:17:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 19:17:08 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 393E823889FA for ; Wed, 15 Aug 2012 19:16:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: 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 Date: Wed, 15 Aug 2012 19:16:25 -0000 To: commits@jena.apache.org From: andy@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120815191625.393E823889FA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 : +BASE -#LOAD +INSERT DATA {

GRAPH { } GRAPH { } } +; -CLEAR ALL ; +## INSERT { ?s ?p ?o } +## #USING NAMED +## USING +## WHERE { GRAPH ?g {?s ?p ?o } } -BASE -INSERT DATA { GRAPH {

} } ; - -#DELETE -INSERT { ?s ?p ?o } WHERE { ?s ?p ?o } +DELETE { ?s ?p ?o } +USING NAMED +# USING +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 { } GRAPH { } }' \ + '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 { ?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 { ?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