[Swift-commit] r7511 - in SwiftApps/gocat: . log

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Sat Jan 25 19:07:41 CST 2014


Author: ketan
Date: 2014-01-25 19:07:41 -0600 (Sat, 25 Jan 2014)
New Revision: 7511

Added:
   SwiftApps/gocat/README
Modified:
   SwiftApps/gocat/log/GlobusCatalog-log.txt
   SwiftApps/gocat/tagwrap.sh
Log:
adding readme and small fixes

Added: SwiftApps/gocat/README
===================================================================
--- SwiftApps/gocat/README	                        (rev 0)
+++ SwiftApps/gocat/README	2014-01-26 01:07:41 UTC (rev 7511)
@@ -0,0 +1,38 @@
+==Required==
+
+1. Install CLI of GO Catalog following instructions from here: https://docs.google.com/document/d/1cR8vcX1UTWKIsG3JSeQQ0tEmSDCeNRitXQ7ZuYwtqT0/edit
+
+Briefly, do the following:
+
+1. Install Globus Catalog client:
+
+    git clone https://github.com/globusonline/catalog-client
+    cd catalog-client
+    python setup.py install --user
+
+2. Install Globus Transfer API:
+
+    git clone https://github.com/globusonline/transfer-api-client-python
+    cd transfer-api-client-python
+    python setup.py install --user
+
+3. Make sure you have an account on GO catalog. For testing, you may use the following username/password:
+    ketancmaheshwari/test123
+
+4. Test the installation as follows:
+    cd catalog-client/globusonline/catalog/client/examples
+    sh test_command_line.sh
+
+You'll be prompted to enter your username and password for first time. GO remembers it.
+
+To get started with catalog wrapper tagwrap.sh set the following environment variables:
+
+1. catloc
+2. catid
+
+For example on my mac OSX:
+
+export catloc=/Users/ketan/catalog-client/globusonline/catalog/client/examples
+export catid=48
+
+catid is the catalog id and will be different depending upon which catalog you are working with.

Modified: SwiftApps/gocat/log/GlobusCatalog-log.txt
===================================================================
--- SwiftApps/gocat/log/GlobusCatalog-log.txt	2014-01-25 16:21:43 UTC (rev 7510)
+++ SwiftApps/gocat/log/GlobusCatalog-log.txt	2014-01-26 01:07:41 UTC (rev 7511)
@@ -97,3 +97,46 @@
 python /scratch/local/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeemug"}
 python /scratch/local/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_annotation_def 48 make text
 python /scratch/local/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 92 {"make":"target"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeemug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeemug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 105 {"color":"white"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeemug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeemug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 106 {"size":"16oz"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeemug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeemug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 107 {"material":"clay"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 108 {"color":"white"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 109 {"size":"16oz"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 110 {"material":"clay"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_annotation_def 48 attrx text
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 111 {"attrx":"white"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_annotation_def 48 attry text
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 113 {"attry":"16oz"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_annotation_def 48 attrz text
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 115 {"attrz":"clay"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 117 {"attrx":"white"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 118 {"attry":"16oz"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 119 {"attrz":"clay"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py -text query_datasets 48 name EQUAL cofeejug
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_dataset 48 {"name":"cofeejug"}
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py create_annotation_def 48 at text
+python /Users/ketan/catalog-client/globusonline/catalog/client/examples/catalog.py add_dataset_annotation 48 120 {"at":"white"}

Modified: SwiftApps/gocat/tagwrap.sh
===================================================================
--- SwiftApps/gocat/tagwrap.sh	2014-01-25 16:21:43 UTC (rev 7510)
+++ SwiftApps/gocat/tagwrap.sh	2014-01-26 01:07:41 UTC (rev 7511)
@@ -3,13 +3,13 @@
 # Usage: $0 <dataset_name> <tagname>=<value>
 #e.g. sh tagwrap.sh cofeemug color=white size=16oz material=clay
 # Required: Env variable catloc pointing to the directory containing catalog.py
-if [ $# -le 2 ]
+
+if [ $# -le 1 ]
 then
  echo "Usage: $0 <dataset_name> <tagnamei1>=<value1> <tagname2>=<valu2> ..."
  exit 1
 fi
 
-catid=48
 dsetname=$1
 shift
 




More information about the Swift-commit mailing list