jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1180153 - in /incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb: TDB.java sys/SystemTDB.java
Date Fri, 07 Oct 2011 18:53:06 GMT
Author: andy
Date: Fri Oct  7 18:53:06 2011
New Revision: 1180153

URL: http://svn.apache.org/viewvc?rev=1180153&view=rev
Log:
Fix expansion of tdb: in command line --set parameters.

Modified:
    incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/TDB.java
    incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/SystemTDB.java

Modified: incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/TDB.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/TDB.java?rev=1180153&r1=1180152&r2=1180153&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/TDB.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/TDB.java Fri
Oct  7 18:53:06 2011
@@ -57,7 +57,13 @@ public class TDB
 {
     /** IRI for TDB */  
     public static final String tdbIRI = "http://jena.hpl.hp.com/#tdb" ;
-    
+    
+    /** Root of TDB-defined parameter names */  
+    public static final String tdbParamNS = "http://jena.hpl.hp.com/TDB#" ;
+    
+    /** Prefix for TDB-defined parameter names */  
+    public static final String tdbSymbolPrefix = "tdb" ;
+    
     // Internal logging
     private static final Logger log = LoggerFactory.getLogger(TDB.class) ;
 
@@ -181,7 +187,8 @@ public class TDB
         AssemblerUtils.init() ;
         AssemblerTDB.init();
         QueryEngineTDB.register() ;
-        UpdateEngineTDB.register() ;
+        UpdateEngineTDB.register() ;
+        MappingRegistry.addPrefixMapping(TDB.tdbSymbolPrefix, TDB.tdbParamNS) ;
 
         wireIntoExecution() ;
         

Modified: incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/SystemTDB.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/SystemTDB.java?rev=1180153&r1=1180152&r2=1180153&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/SystemTDB.java
(original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/SystemTDB.java
Fri Oct  7 18:53:06 2011
@@ -55,8 +55,6 @@ public class SystemTDB
     /** Send warnings and error */
     public static final Logger errlog = LoggerFactory.getLogger("TDB") ;
     
-    public static final String TDB_NS = "http://jena.hpl.hp.com/TDB#" ;
-    
     // ---- Constants that can't be changed without invalidating on-disk data.  
     
     /** Size, in bytes, of a Java long */



Mime
View raw message