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 2011/12/01 17:53:23 UTC
svn commit: r1209149 -
/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java
Author: andy
Date: Thu Dec 1 16:53:22 2011
New Revision: 1209149
URL: http://svn.apache.org/viewvc?rev=1209149&view=rev
Log: (empty)
Modified:
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java
Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java?rev=1209149&r1=1209148&r2=1209149&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java Thu Dec 1 16:53:22 2011
@@ -340,6 +340,7 @@ public class Jena163_TDBDifferentIds
catch (RuntimeException ex)
{
txn("E", dsg) ;
+ System.err.println() ;
ex.printStackTrace(System.err) ;
System.exit(1) ;
if ( dsg != null )
@@ -550,14 +551,14 @@ public class Jena163_TDBDifferentIds
static Quad genQuad(int value)
{
- Quad q1 = SSE.parseQuad("(_ <s> <p> <o>)") ;
Node g1 = q.getGraph() ;
-
- int n = (int)Math.round(Math.random()*10000) ;
+ int n1 = (int)Math.round(Math.random()*10000) ;
+ int n2 = (int)Math.round(Math.random()*10000) ;
Node g = Quad.defaultGraphNodeGenerated ; // urn:x-arq:DefaultGraphNode
Node s = Node.createURI("S") ;
- Node p = Node.createURI("P") ;
+ Node p = Node.createURI("P"+value) ;
+ // Integer - that gets inlined.
Node o = Node.createLiteral(Integer.toString(value), null, XSDDatatype.XSDinteger) ;
return new Quad(g,s,p,o) ;
}