[Swift-commit] r7272 - in provenancedb: . libs

lgadelha at ci.uchicago.edu lgadelha at ci.uchicago.edu
Mon Nov 4 15:03:44 CST 2013


Author: lgadelha
Date: 2013-11-04 15:03:44 -0600 (Mon, 04 Nov 2013)
New Revision: 7272

Added:
   provenancedb/TestSPQL.java
   provenancedb/libs/
   provenancedb/libs/antlr-3.3-complete.jar
   provenancedb/libs/jgrapht-jdk1.6.jar
Modified:
   provenancedb/README.asciidoc
Log:
Upload of testing example and required libraries for SPQL to SQL translation.


Modified: provenancedb/README.asciidoc
===================================================================
--- provenancedb/README.asciidoc	2013-11-04 19:13:56 UTC (rev 7271)
+++ provenancedb/README.asciidoc	2013-11-04 21:03:44 UTC (rev 7272)
@@ -160,7 +160,7 @@
 export SQLCMD="psql -h db.ci.uchicago.edu -U provdb provdb"
 --------------------------------------
 
-The script +./swift-prov-import-all-logs+ will import provenance information from the log files in +$LOGREPO+ into the database. The command line option +-rebuild+ will initialize the database before importing provenance information. 
+The script +./swift-prov-import-all-logs+ will import provenance information from the log files in +$LOGREPO+ into the database. One can use +./swift-prov-import-all-logs rebuild+ to reinitialize database before importing provenance information. 
 
 === Swift Configuration
 

Added: provenancedb/TestSPQL.java
===================================================================
--- provenancedb/TestSPQL.java	                        (rev 0)
+++ provenancedb/TestSPQL.java	2013-11-04 21:03:44 UTC (rev 7272)
@@ -0,0 +1,22 @@
+// package org.globus.swift.provenance;
+
+import java.io.IOException;
+import org.antlr.runtime.*;
+
+public class TestSPQL {
+	public static void main(String[] args) throws IOException, RecognitionException {
+		// TODO Auto-generated method stub
+		// Create an input character stream from standard in
+		ANTLRInputStream input = new ANTLRInputStream(System.in);
+		// Create an ExprLexer that feeds from that stream
+		SPQLLexer lexer = new SPQLLexer(input);
+		// Create a stream of tokens fed by the lexer 
+		CommonTokenStream tokens = new CommonTokenStream(lexer); 
+		// Create a parser that feeds off the token stream 
+		SPQLParser parser = new SPQLParser(tokens);
+		// Begin parsing at rule prog
+		parser.query();
+		System.out.println();
+	}
+}
+

Added: provenancedb/libs/antlr-3.3-complete.jar
===================================================================
(Binary files differ)


Property changes on: provenancedb/libs/antlr-3.3-complete.jar
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: provenancedb/libs/jgrapht-jdk1.6.jar
===================================================================
(Binary files differ)


Property changes on: provenancedb/libs/jgrapht-jdk1.6.jar
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream




More information about the Swift-commit mailing list