| 1 | package PMLTQ::Commands; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | 2 | our $AUTHORITY = 'cpan:MATY'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | 2 | $PMLTQ::Commands::VERSION = '2.0.3'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | # ABSTRACT: PMLTQ command line interface | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | 2 | ▶ | use PMLTQ::Base -strict; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | 2 | ▶ | use Cwd qw/getcwd abs_path/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 2 | ▶ | use File::Basename 'fileparse'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | 2 | ▶ | use File::Spec; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 2 | ▶ | use Getopt::Long (); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | 2 | ▶ | use Hash::Merge 'merge'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | 2 | ▶ | use List::MoreUtils 'apply'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | 2 | ▶ | use PMLTQ::Loader qw/find_modules load_class/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | 2 | ▶ | use YAML::Tiny; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | 2 | ▶ | use File::Basename 'dirname'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | 2 | ▶ | use File::Spec (); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | 2 | ▶ | use File::ShareDir 'dist_dir'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | 2 | my $local_shared_dir = File::Spec->catdir(dirname(__FILE__), File::Spec->updir, File::Spec->updir, File::Spec->updir, 'share'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | 2 | my $shared_dir = eval { dist_dir(__PACKAGE__) }; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | # Assume installation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | 2 | ▶ | if (-d $local_shared_dir or !$shared_dir) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
-d $local_shared_dir or not $shared_dir
MC/DC0%0/2
-d $local_shared_dir or not $shared_dir
-d $local_shared_dir
not $shared_dir
Truth table33%1/3
A or not(B)
A= -d $local_shared_dirB= not $shared_dir
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | 2 | $shared_dir = $local_shared_dir; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | 0 | ▶ | sub shared_dir { $shared_dir } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
shared_dir: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | 0 | ▶ | sub DEFAULT_CONFIG { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
DEFAULT_CONFIG: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | 0 | ▶ | my $base_dir = shift || getcwd(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
shift() || getcwd()
MC/DC0%0/2
shift() || getcwd()
shift()
getcwd()
Truth table0%0/3
A || B
A= shift()B= getcwd()
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | return { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | 0 | data_dir => File::Spec->catdir( $base_dir, 'data' ), | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | output_dir => File::Spec->catdir( $base_dir, 'sql_dump' ), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | resources => File::Spec->catdir( $base_dir, 'resources' ), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | db => { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | host => 'localhost', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | port => 5432 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | isFree => 'false', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | isAllLogged => 'false', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | isPublic => 'false', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | isFeatured => 'false', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | info => { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | fields => 'name' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | 0 | ▶ | sub run { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
run: not called CC=7 SCAR=40.3
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | 0 | my ( $self, $name, @args ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | 0 | ▶ | if ( $name && $name =~ /^\w+$/ && ( $name ne 'help' || $args[0] ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/9
$name and $name =~ /^\w+$/ and $name ne "help" || $args[0]
$name and $name =~ /^\w+$/
$name ne "help" or $args[0]
MC/DC0%0/4
$name and $name =~ /^\w+$/ and $name ne "help" || $args[0]
$name
$name =~ /^\w+$/
$name ne "help"
$args[0]
Truth table0%0/5
A and B and C or D
A= $nameB= $name =~ /^\w+$/C= $name ne "help"D= $args[0]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | 0 | ▶ | $name = shift @args if my $help = $name eq 'help'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | 0 | my $command = _command( "PMLTQ::Command::$name", \@args ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | 0 | ▶ | return $help ? $command->help : $command->run(@args); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | 0 | print "Available commands:\n\t", join( "\n\t", sort { $a cmp $b } _available_commands() ), "\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | 0 | ▶ | sub _available_commands { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_available_commands: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | 0 | ▶ | apply {s/^PMLTQ::Command:://} find_modules('PMLTQ::Command'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | 0 | ▶ | sub _command { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_command: not called CC=3 SCAR=24.8
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | 0 | my ( $module, $args ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | 0 | ▶ | die qq{Unknown command "$module", maybe you need to install it?\n} unless load_class($module); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | 0 | ▶ | die qq{Command doesn't inherit from PMLTQ::Command} unless $module->isa('PMLTQ::Command'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | 0 | my $config = _parse_args($args); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | 0 | return $module->new( config => $config ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | 0 | ▶ | sub _parse_args { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_parse_args: not called CC=7 SCAR=40.3
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | 0 | my $args = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | 0 | my $p = Getopt::Long::Parser->new( config => [qw/pass_through no_ignore_case no_auto_abbrev/] ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | 0 | my $config_file = ''; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | 0 | my $config = {}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | 0 | my $command_line_config = {}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | 0 | my @unprocessed_args = (); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | $p->getoptionsfromarray( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | $args, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | 'c|config=s' => \$config_file, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | 0 | ▶ | '<>' => sub { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=4 SCAR=30.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | 0 | my $arg = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | 0 | my ( $path, $value ) = $arg =~ m/^--([a-z0-9-_]+)=(.*)$/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | 0 | ▶ | unless ($path) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | 0 | push @unprocessed_args, $arg; # push back to args | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | 0 | my @path = split /-/, $path; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | 0 | my $name = pop @path; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | 0 | my $ref = $command_line_config; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | 0 | ▶ | while ( my $part = shift @path ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | 0 | ▶ | $ref->{$part} = {} unless defined $ref->{$part}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | 0 | $ref = $ref->{$part}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | 0 | $ref->{$name} = $value; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | 0 | ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | 0 | ▶ | if ( $config_file ne '--' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | 0 | ▶ | if ($config_file) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | 0 | ▶ | die "Configuration file '$config_file' does not exists or is not readable" unless -r $config_file; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | 0 | $config_file = File::Spec->catfile( getcwd(), 'pmltq.yml' ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | 0 | ▶ | $config_file = undef unless -r $config_file; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | 0 | ▶ | push @$args, @unprocessed_args if @unprocessed_args > 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | 0 | ▶ | $config = _load_config($config_file) if $config_file; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | 0 | return merge( $command_line_config, merge( $config, DEFAULT_CONFIG ) ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | 0 | ▶ | sub _load_config { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_load_config: not called CC=19 SCAR=59.4
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | 0 | my $config_file = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | 0 | my $data; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | my $yaml_str; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | 0 | ▶ | if ( $config_file eq '--' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | 0 | $yaml_str = do { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | 0 | local $/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | 0 | <STDIN>; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | 0 | eval { $data = YAML::Tiny->read_string($yaml_str) }; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | 0 | eval { $data = YAML::Tiny->read($config_file) }; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | 0 | ▶ | if ( $@ && $@ =~ m/YAML_LOAD_ERR/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 4 branches
Condition0%0/3
$@ and $@ =~ /YAML_LOAD_ERR/
MC/DC0%0/2
$@ and $@ =~ /YAML_LOAD_ERR/
$@
$@ =~ /YAML_LOAD_ERR/
Truth table0%0/3
A and B
A= $@B= $@ =~ /YAML_LOAD_ERR/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | 0 | die "Unable to load config file '$config_file'\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | ▶ | } elsif ( $@ && $@ =~ m/YAML_PARSE_ERR/ ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$@ and $@ =~ /YAML_PARSE_ERR/
MC/DC0%0/2
$@ and $@ =~ /YAML_PARSE_ERR/
$@
$@ =~ /YAML_PARSE_ERR/
Truth table0%0/3
A and B
A= $@B= $@ =~ /YAML_PARSE_ERR/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | 0 | $@ =~ s/\n.*//g; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | 0 | die "Unable to parse config file '$config_file'\n\t$@\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | ▶ | } elsif ( $config_file eq '--' && !$data ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$config_file eq "--" and not $data
MC/DC0%0/2
$config_file eq "--" and not $data
$config_file eq "--"
not $data
Truth table0%0/3
A and not(B)
A= $config_file eq "--"B= not $data
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | 0 | die "Unable to parse config from STDIN:\n$yaml_str\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | } elsif ( !$data ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | 0 | die "Unable to open config file '$config_file'\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | 0 | my $config = $data->[0]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | 0 | my $base_dir = $config->{base_dir}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | 0 | ▶ | unless ($base_dir) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | 0 | ( undef, $base_dir, undef ) = fileparse($config_file); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | 0 | $base_dir = abs_path($base_dir); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | 0 | ▶ | $config->{db} = {} unless $config->{db}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | 0 | ▶ | $config->{db}->{name} = $config->{treebank_id} if ( $config->{treebank_id} && !$config->{db}->{name} ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$config->{"treebank_id"} and not $config->{"db"}{"name"}
MC/DC0%0/2
$config->{"treebank_id"} and not $config->{"db"}{"name"}
$config->{"treebank_id"}
not $config->{"db"}{"name"}
Truth table0%0/3
A and not(B)
A= $config->{"treebank_id"}B= not $config->{"db"}{"name"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | 0 | for ( grep { $config->{$_} } qw/data_dir resources output_dir/ ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | 0 | $config->{$_} = abs_path( File::Spec->rel2abs( $config->{$_}, $base_dir ) ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | 0 | ▶ | if ( $config->{layers} ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | 0 | for my $lr ( @{ $config->{layers} } ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | $lr->{'related-schema'} = | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | 0 | [ map { abs_path( File::Spec->rel2abs( $_, $config->{resources} ) ) } @{ $lr->{'related-schema'} } ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | 0 | ▶ | if $lr->{'related-schema'}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | $lr->{filelist} = abs_path( File::Spec->rel2abs( $lr->{filelist}, $base_dir ) ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | 0 | ▶ | if $lr->{filelist} && !File::Spec->file_name_is_absolute( $lr->{filelist} ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$lr->{"filelist"} and not "File::Spec"->file_name_is_absolute($lr->{"filelist"})
MC/DC0%0/2
$lr->{"filelist"} and not "File::Spec"->file_name_is_absolute($lr->{"filelist"})
$lr->{"filelist"}
not "File::Spec"->file_name_is_absolute($lr->{"filelist"})
Truth table0%0/3
A and not(B)
A= $lr->{"filelist"}B= not "File::Spec"->file_name_is_absolute($lr->{"filelist"})
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | 0 | return merge( $config, DEFAULT_CONFIG($base_dir) ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | 2 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | =encoding utf8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | Usage: pmltq COMMAND [OPTIONS] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | pmltq version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | pmltq configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | pmltq init schema1.xml schema2.xml | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | pmltq convert | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | pmltq load | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | pmltq initdb | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | pmltq delete | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | pmltq webload | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | pmltq webdelete | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | pmltq webtreebank | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | pmltq webverify | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | Options (for all commands): | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | -c, --config Config file, by default commands will look | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | for config file called C<pmltq.yml> in the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | current directory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | =head1 COMMANDS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | These commands are available by default. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | =head2 configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | $ pmltq convert | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | Uses L<PMLTQ::Command::configuration> to to get current configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | =head2 convert | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | $ pmltq convert | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | Uses L<PMLTQ::Command::convert> to convert data in the C<data_dir> based on | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | layers configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | =head2 delete | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | $ pmltq delete | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | Uses L<PMLTQ::Command::delete> to delete the database for current treebank | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | =head2 init | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | $ pmltq init resources/schema1.xml resources/schema2.xml | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | Uses L<PMLTQ::Command::init> to generate initial configuration file skeleton | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | based on given schemas. This command can help you quickly bootstrap the layers | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | =head2 initdb | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | $ pmltq initdb | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | Uses L<PMLTQ::Command::initdb> to create and initialize new database for given | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | treebank | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | =head2 load | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | $ pmltq load | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | Uses L<PMLTQ::Command::load> to load the data generated by C<convert> command | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | =head2 query | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | Uses L<PMLTQ::Command::query> to run a query on given treebank. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | =head2 verify | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | Uses L<PMLTQ::Command::verify> to check if database exists and contains some | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | data. For now the checking is very simple | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | =head2 version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | Uses L<PMLTQ::Command::version> to display current PMLTQ version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | =head2 webdelete | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | Uses L<PMLTQ::Command::webdelete> to delete treebank from web interface | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | =head2 webload | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | Uses L<PMLTQ::Command::webload> to load treebank to web interface | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | =head2 webtreebank | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | Uses L<PMLTQ::Command::webtreebank> to get list of treebanks or single treebank info | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | =head2 webverify | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | Uses L<PMLTQ::Command::webverify> to verify treebank visibility in web interface | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | =head1 CONFIG FILE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | =head2 Options | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | =over 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | =item C<treebank_id> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | ID of the treebank. Can contain only [a-zA-Z0-9_]. It will be default for the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | database name and treebank name in web interface. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | =item C<data_dir> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | Directory where the data are (this is also base directory for data layers) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | Defaults: B<data> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | =item C<resources> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | Base directory for PML schemas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | Defaults: B<resources> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | =item C<output_dir> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 297 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 298 | Directory for all sql dump files. The files generated by C<convert> and used by C<load> command | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 299 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 300 | Defaults: B<sql_dump> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 301 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 302 | =item C<db> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 303 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 304 | =over 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 305 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 306 | =item C<name> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 307 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 308 | Database name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 309 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 310 | Defaults: B<C<treebank_id>> if defined | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 311 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 312 | =item C<host> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 313 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 314 | Database server hostname or IP address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 315 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 316 | Defaults: B<localhost> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 317 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 318 | =item C<port> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 319 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 320 | Database port | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 321 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 322 | Defaults: B<5432> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 323 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 324 | =item C<user>, C<password> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 325 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 326 | Database credentials | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 327 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 328 | =back | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 330 | =item C<sys_db> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 331 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 332 | Name of the 'system database' used for administration commands such as | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 333 | C<CREATE> and C<DROP>. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 334 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 335 | =item C<layers> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 336 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 337 | The configuration of treebank's layers and references for each layer. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 338 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 339 | =over 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 340 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 341 | =item C<name> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 342 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 343 | Schema root name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 344 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 345 | =item C<data> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 346 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 347 | A C<glob> path name matching pattern relative to C<data_dir> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 348 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 349 | =item C<path> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 350 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 351 | A path name matching pattern relative to PML-TQ server data directory | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 352 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 353 | =item C<related-schema> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 354 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 355 | List of related schemas that contain node types required in this layer's | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 356 | reference configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 357 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 358 | =item C<references> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 359 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 360 | This is key-value hash where key is path to the member of the node structure | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 361 | and value is node type or '-' (dash) if you intend to ignore that particular | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 362 | reference. If the node type is not in the current layer schema you have to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 363 | prefix node type with the schema name and the appropriate schema have to be | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 364 | listed in C<related-schema> list. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 365 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 366 | Examples: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 367 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 368 | references: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 369 | path/attr1: '-' #--> ignore this reference | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 370 | path/attr2: ref-node #--> reference node type 'ref-node' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 371 | path/attr3: schema:other-node #--> reference node type 'other-node' in schema 'schema' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 372 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 373 | =back | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 374 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 375 | =item C<title> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 376 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 377 | Treebank title visible at the web. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 378 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 379 | =item C<homepage> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 380 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 381 | Treebank homepage url. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 382 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 383 | =item C<description> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 384 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 385 | Treebank description visible at the web. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 386 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 387 | =item C<isFree> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 388 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 389 | Boolean value (C<true>, C<false>) sets if the logging in is not required for querying treebank. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 390 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 391 | Defaults: B<false> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 392 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 393 | =item C<isAllLogged> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 394 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 395 | Boolean value (C<true>, C<false>) sets if treebank is queryable for all logged in users. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 396 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 397 | Defaults: B<false> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 398 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 399 | =item C<isPublic> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 400 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 401 | Boolean value (C<true>, C<false>) sets if the treebank is visible for not logged users. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 402 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 403 | Defaults: B<false> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 404 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 405 | =item C<isFeatured> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 406 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 407 | Boolean value (C<true>, C<false>) sets if the treebank is featured. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 408 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 409 | Defaults: B<false> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 410 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 411 | =item C<web_api> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 412 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 413 | =over 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 414 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 415 | =item C<dbserver> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 416 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 417 | Name of database server setted in web interface. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 418 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 419 | =item C<url> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 420 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 421 | Link to PML-TQ web service. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 422 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 423 | =item C<user>, C<password> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 424 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 425 | Web API credentials of user with admin privileges. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 426 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 427 | =back | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 428 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 429 | =item C<manuals> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 430 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 431 | List of manuals | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 432 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 433 | =over 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 434 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 435 | =item C<title>, C<url> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 436 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 437 | Title and link to manual | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 438 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 439 | =back | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 440 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 441 | =item C<tags> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 442 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 443 | List of tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 444 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 445 | =item C<language> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 446 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 447 | Language code | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 448 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 449 | =item C<test_query> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 450 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 451 | =over 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 452 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 453 | =item C<result_dir> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 454 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 455 | Directory where should be saved results of test queries (SVG and text files) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 456 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 457 | =item C<queries> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 458 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 459 | =over 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 460 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 461 | =item C<filename> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 462 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 463 | Name of the file where the results should be saved | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 464 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 465 | =item C<query> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 466 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 467 | PML-TQ query | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 468 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 469 | =back | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 470 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 471 | =back | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 472 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 473 | =back | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 474 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 475 | =head2 Change values using CLI | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 476 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 477 | You can use command line parameters to modify any configuration options. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 478 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 479 | For example you can use | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 480 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 481 | pmltq load --output_dir='/some/path' --data_dir='some/other/path' --db-name='abc' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 482 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 483 | Dash C<-> in the parameter's name means dive into the hash, so C<--db-name='abc'> is | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 484 | going to change C<db: name: 'abc'> while C<--db_name='abc'> would just set configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 485 | option C<db_name: 'abc'>. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 486 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 487 | =head2 Commands and options | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 488 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 489 | Following table shows which options are used in commands. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 490 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 491 | =over 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 492 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 493 | =item B<*> required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 494 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 495 | =item B<+> optional (defaults or nothing is used) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 496 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 497 | =item B<-> not used | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 498 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 499 | =back | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 501 | =begin html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 502 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 503 | <table> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 504 | <tr><td></td><th>convert</th><th>delete</th><th>init</th><th>initdb</th><th>load</th><th>verify</th><th>webdelete</th><th>webload</th><th>webverify</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 505 | <tr><td>treebank_id</td><th>*</th><th>*</th><th>-</th><th>*</th><th>*</th><th>*</th><th>*</th><th>*</th><th>*</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 506 | <tr><td>data_dir</td><th>+</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 507 | <tr><td>resources</td><th>+</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 508 | <tr><td>output_dir</td><th>+</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th><th>-</th><th>-</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 509 | <tr><td>db-name</td><th>-</th><th>+</th><th>-</th><th>+</th><th>+</th><th>+</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 510 | <tr><td>db-host</td><th>-</th><th>+</th><th>-</th><th>+</th><th>+</th><th>+</th><th>-</th><th>-</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 511 | <tr><td>db-port</td><th>-</th><th>+</th><th>-</th><th>+</th><th>+</th><th>+</th><th>-</th><th>-</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 512 | <tr><td>db-user</td><th>-</th><th>-</th><th>-</th><th>*</th><th>*</th><th>*</th><th>-</th><th>-</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 513 | <tr><td>db-password</td><th>-</th><th>-</th><th>-</th><th>*</th><th>*</th><th>*</th><th>-</th><th>-</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 514 | <tr><td>sys_db</td><th>-</th><th>*</th><th>-</th><th>*</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 515 | <tr><td>layers</td><th>*</th><th>-</th><th>-</th><th>-</th><th>*</th><th>-</th><th>-</th><th>*</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 516 | <tr><td>title</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>*</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 517 | <tr><td>homepage</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 518 | <tr><td>description</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 519 | <tr><td>isFree</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 520 | <tr><td>isPublic</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 521 | <tr><td>isFeatured</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 522 | <tr><td>web_api-dbserver</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>*</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 523 | <tr><td>web_api-url</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>*</th><th>*</th><th>*</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 524 | <tr><td>web_api-user</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>*</th><th>*</th><th>*</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 525 | <tr><td>web_api-password</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>*</th><th>*</th><th>*</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 526 | <tr><td>manuals</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 527 | <tr><td>tags</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 528 | <tr><td>language</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th><th>-</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 529 | <tr><td>test_query-result_dir</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 530 | <tr><td>test_query-queries</td><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>-</th><th>+</th></tr> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 531 | </table> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 532 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 533 | =end html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 534 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 535 | =head2 Example: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 536 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 537 | data_dir: /pmltq/data/dir/ # directory where the data are (this is also base directory for data layers) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 538 | resources: /pmltq/resources/ # main directory with PML schemas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 539 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 540 | treebank_id: tbid | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 541 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 542 | db: # typical DB auth stuff | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 543 | name: treebank_db_name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 544 | host: localhost | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 545 | port: 5432 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 546 | user: pmltq | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 547 | password: pwd | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 548 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 549 | layers: # description of all data layers | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 550 | - name: adata | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 551 | data: ./relative/to/data_dir/**/*.a.gz | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 552 | related-schema: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 553 | - adata_schema.xml | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 554 | references: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 555 | t-node/val_frame.rf: '-' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 556 | t-a/aux.rf: 'adata:a-node' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 557 | t-node/coref_gram.rf: t-node | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 558 | - name: tdata | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 559 | data: **/*.t.gz | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 560 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 561 | web_api: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 562 | user: webuser | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 563 | password: pwd | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 564 | url: 'https://serviceurl.com/' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 565 | dbserver: myserver | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 566 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 567 | title: 'Treebank name' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 568 | description: 'Short trebank descrioprion' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 569 | language: cs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 570 | tags: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 571 | - mytag1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 572 | - mytag2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 573 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 574 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||