script updates
Tara L Andrews [Wed, 28 Dec 2011 02:16:19 +0000 (03:16 +0100)]
script/make_tradition.pl
script/save_to_db.pl

index bb7cb33..9e1e8a7 100755 (executable)
@@ -18,7 +18,7 @@ GetOptions( 'i|in=s'    => \$informat,
             'b|base=s'  => \$inbase,
             'o|out=s'   => \$outformat,
             'l|linear!' => \$linear,
-            'n|name'    => \$name,
+            'n|name=s'    => \$name,
             'h|help'    => \$help,
             'sep=s'            => \$sep,
             'hack'      => \$HACK,
@@ -47,7 +47,7 @@ unless( $outformat =~ /^(graphml|svg|dot|stemma|csv)$/ ) {
 if( $informat =~ /^(KUL|CollateText)$/ && !$inbase ) {
     help( "$informat input needs a base text" );
 }
-
+$sep = "\t" if $sep eq 'tab';
 
 my $input = $ARGV[0];
 
index 497c723..59e5ef4 100644 (file)
@@ -15,7 +15,6 @@ my $kdb = KiokuDB->connect( "dbi:SQLite:dbname=db/traditions.db",
        create => 1,
        typemap => KiokuDB::TypeMap->new(
             isa_entries => {
-                "Graph::Easy::Base" => KiokuDB::TypeMap::Entry::Naive->new,
                 "Graph" => KiokuDB::TypeMap::Entry::Naive->new,
                 "Graph::AdjacencyMap" => KiokuDB::TypeMap::Entry::Naive->new,
             },