Skip to content

Commit

Permalink
0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Oct 19, 2015
1 parent a4a71a0 commit c5b451f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion META.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 62,7 @@
"web" : "https://github.com/nichtich/wdq"
}
},
"version" : "0.3.3",
"version" : "0.3.4",
"x_contributors" : [
"Marius Hoch <[email protected]>"
]
Expand Down
16 changes: 5 additions & 11 deletions bin/wdq
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 5,7 @@ use Getopt::Long;
use HTTP::Tiny;
use Scalar::Util;

my $VERSION = '0.3.3';
my $VERSION = '0.3.4';

binmode( STDIN, ":encoding(UTF-8)" );
binmode( STDOUT, ":encoding(UTF-8)" );
Expand Down Expand Up @@ -466,16 466,10 @@ sub parse_response {
foreach my $name ( keys %$r ) {
my $v = $r->{$name};
next unless $v->isa('RDF::Trine::Node::Resource');
my $id = do {
if ( $v->uri_value =~ $ENTITY_PATTERN ) {
$ {id};
}
elsif ( $v->uri_value =~ $WIKIDATA_ID_PATTERN ) {
$ {id};
}
}
// next;
$r->{$name} = RDF::Trine::Node::Literal->new($id);
my $id;
$id = $ {id} if $v->uri_value =~ $ENTITY_PATTERN;
$id = $ {id} if $v->uri_value =~ $WIKIDATA_ID_PATTERN;
$r->{$name} = RDF::Trine::Node::Literal->new($id) if $id;
}
$r;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/App/wdq.pm
Original file line number Diff line number Diff line change
@@ -1,7 1,7 @@
package App::wdq;
use v5.14;

our $VERSION = '0.3.3';
our $VERSION = '0.3.4';

1;
__END__
Expand Down

0 comments on commit c5b451f

Please sign in to comment.