[Swift-commit] r2988 - provenancedb
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Tue Jun 30 07:38:12 CDT 2009
Author: benc
Date: 2009-06-30 07:38:12 -0500 (Tue, 30 Jun 2009)
New Revision: 2988
Modified:
provenancedb/prepare-provenance-chart
provenancedb/prov-init.sql
provenancedb/prov-to-sql.sh
Log:
CREATEARRAY provenance processing
Modified: provenancedb/prepare-provenance-chart
===================================================================
--- provenancedb/prepare-provenance-chart 2009-06-30 12:37:51 UTC (rev 2987)
+++ provenancedb/prepare-provenance-chart 2009-06-30 12:38:12 UTC (rev 2988)
@@ -39,3 +39,8 @@
cat $1 | grep ' FUNCTIONPARAMETER ' | sed "s/^.*id=\([^ ]*\) input=\([^ ]*\).*\$/$WFID\1 \2/" > function-inputs.txt
+cat $1 | grep ' CREATEARRAY START ' | sed 's/^.* array=\([^ ]*\).*$/\1/' > createarray.txt
+
+cat $1 | grep ' CREATEARRAY MEMBER ' | sed 's/^.* array=\([^ ]*\) index=\([^ ]*\) member=\([^ ]*\).*$/\1 \2 \3/' > createarray-members.txt
+
+
Modified: provenancedb/prov-init.sql
===================================================================
--- provenancedb/prov-init.sql 2009-06-30 12:37:51 UTC (rev 2987)
+++ provenancedb/prov-init.sql 2009-06-30 12:38:12 UTC (rev 2988)
@@ -14,6 +14,8 @@
DROP TABLE known_workflows;
DROP TABLE workflow_events;
DROP TABLE extrainfo;
+DROP TABLE createarray;
+DROP TABLE createarray_member;
-- associates each process with its containing workflow
@@ -128,6 +130,22 @@
value char(128)
);
+-- The above dataset_* tables are the original containment representation
+-- of datasets.
+-- Now here are some tables to represent complex datasets differently, in
+-- terms of accessors and constructors.
+-- It is unclear which is the better representation.
+
+CREATE TABLE createarray
+ ( array_id char(128)
+ );
+
+CREATE TABLE createarray_member
+ ( array_id char(128),
+ ix char(128),
+ member_id char(128)
+ );
+
-- known_workflows stores some information about each workflow log that has
-- been seen by the importer: the log filename, swift version and import
-- status.
Modified: provenancedb/prov-to-sql.sh
===================================================================
--- provenancedb/prov-to-sql.sh 2009-06-30 12:37:51 UTC (rev 2987)
+++ provenancedb/prov-to-sql.sh 2009-06-30 12:38:12 UTC (rev 2988)
@@ -94,6 +94,14 @@
echo "INSERT INTO invocation_procedure_names (execute_id, procedure_name) VALUES ('$compoundid', '$procname');" >> tmp-import.sql
done < compound.event
+while read id ; do
+ echo "INSERT INTO createarray (array_id) VALUES ('$id');" >> tmp-import.sql
+done < createarray.txt
+
+while read arrayid index memberid ; do
+ echo "INSERT INTO createarray_member (array_id, ix, member_id) VALUES ('$arrayid', '$index', '$memberid');" >> tmp-import.sql
+done < createarray-members.txt
+
echo Sending SQL to DB
$SQLCMD < tmp-import.sql
More information about the Swift-commit
mailing list