/usr/share/doc/librdf-trine-perl/examples/bin/srx2table is in librdf-trine-perl 1.011-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/perl
use strict;
use warnings;
use RDF::Trine;
my $data;
if (scalar(@ARGV) and -r $ARGV[0]) {
my $file = shift;
$data = do { local($/) = undef; open(my $fh, '<:encoding(UTF-8)', $file) or die $!; <$fh> };
} else {
local($/) = undef;
$data = <>;
}
my $iter = RDF::Trine::Iterator->from_string( $data );
print $iter->as_string;
|