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/11/15 22:08:55 UTC
svn commit: r1202424 - in /incubator/jena:
Jena2/Fuseki/trunk/src-dev/dev/DevFuseki.java
Scratch/AFS/Jena-Dev/trunk/src/dev/Run.java
Author: andy
Date: Tue Nov 15 21:08:54 2011
New Revision: 1202424
URL: http://svn.apache.org/viewvc?rev=1202424&view=rev
Log: (empty)
Modified:
incubator/jena/Jena2/Fuseki/trunk/src-dev/dev/DevFuseki.java
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Run.java
Modified: incubator/jena/Jena2/Fuseki/trunk/src-dev/dev/DevFuseki.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/Fuseki/trunk/src-dev/dev/DevFuseki.java?rev=1202424&r1=1202423&r2=1202424&view=diff
==============================================================================
--- incubator/jena/Jena2/Fuseki/trunk/src-dev/dev/DevFuseki.java (original)
+++ incubator/jena/Jena2/Fuseki/trunk/src-dev/dev/DevFuseki.java Tue Nov 15 21:08:54 2011
@@ -21,12 +21,15 @@ package dev;
public class DevFuseki
{
// SPARQL_QueryDataset.vialidate query -- but FROM etc is important for TDB.
+ // DatasetDescription from protocol
+ // createDataset from the ARQ.
+ // SPARQL_QueryGeneral.datasetFromDescription
// Config:
// fuseki:name ==> fuseki:serviceName of fuseki:endpointBase
// rdfs:label for log files.
- // sparql.jsp needs to switc on presence and name of service endpoints.
+ // sparql.jsp needs to switch on presence and name of service endpoints.
// --accept for to soh for construct queries (check can get CONSTRUCT in TTL).
// application/json for application/sparql-results+json.
Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Run.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Run.java?rev=1202424&r1=1202423&r2=1202424&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Run.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Run.java Tue Nov 15 21:08:54 2011
@@ -43,33 +43,31 @@ public class Run extends RunBase
public static void main(String[] argv) throws Exception
{
- // And TDBFactory.create
- Dataset ds = DatasetFactory.create(new DatasetGraphTransaction(Location.mem())) ;
-
-
- ds.begin(ReadWrite.WRITE) ;
- FileManager.get().readModel(ds.getDefaultModel(), "D.nt") ;
- ds.commit() ;
- //ds.close() ;
-
- ds.begin(ReadWrite.READ) ;
- SSE.write(ds.asDatasetGraph()) ;
- ds.close() ;
-
- exit(0) ;
+ if ( false )
+ {
+ // And TDBFactory.create
+ Dataset ds = TDBFactoryTxn.createDataset(Location.mem()) ;
+ ds.begin(ReadWrite.WRITE) ;
+ FileManager.get().readModel(ds.getDefaultModel(), "D.nt") ;
+ ds.commit() ;
+ //ds.close() ;
+
+ ds.begin(ReadWrite.READ) ;
+ SSE.write(ds.asDatasetGraph()) ;
+ ds.close() ;
+
+ exit(0) ;
+ }
- DatasetGraphTransaction dsg = new DatasetGraphTransaction(Location.mem()) ;
+ DatasetGraphTransaction dsg = TDBFactoryTxn.createDatasetGraph() ;
dsg.begin(ReadWrite.WRITE) ;
dsg.add(SSE.parseQuad("(<g> <s> <p> <o>)")) ;
dsg.commit() ;
- dsg.begin(ReadWrite.WRITE) ;
- dsg.begin(ReadWrite.WRITE) ;
-
dsg.begin(ReadWrite.READ) ;
SSE.write(dsg) ;
dsg.close() ;
- System.out.println(dsg.isInTransaction()) ;
+ //System.out.println(dsg.isInTransaction()) ;
exit(0) ;