/usr/share/liblinkeddata-perl/write_sqlite-db.pl is in librdf-linkeddata-perl 0.30-1.
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 18 19 20 21 22 | #!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
use strict;
use warnings;
use RDF::Trine::Store::DBI::SQLite;
my ($outname) = $ARGV[0] =~ m/^(.+)\.ttl$/;
my $store = RDF::Trine::Store->new_with_string("DBI;$outname;DBI:SQLite:$outname.db;user;pass");
$store->init;
use RDF::Trine::Parser;
use RDF::Trine::Model;
my $model = RDF::Trine::Model->new($store);
my $parser = RDF::Trine::Parser->new( 'turtle' );
$parser->parse_file_into_model( 'http://localhost', $ARGV[0], $model );
print "Got " . $model->count_statements . " statements.\n";
1;
|