/usr/share/perl5/RDF/Query/Functions.pm is in librdf-query-perl 2.918-1.
This file is owned by root:root, with mode 0o644.
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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | # RDF::Query::Functions
# -----------------------------------------------------------------------------
=head1 NAME
RDF::Query::Functions - Standard Extension Functions
=head1 VERSION
This document describes RDF::Query::Functions version 2.918.
=head1 DESCRIPTION
This stub module simply loads all other modules named
C<< RDF::Query::Functions::* >>. Each of those modules
has an C<install> method that simply adds coderefs
to C<< %RDF::Query::functions >>.
=head1 METHODS
=over 4
=cut
package RDF::Query::Functions;
use strict;
use warnings;
no warnings 'redefine';
our $BLOOM_FILTER_LOADED;
use Scalar::Util qw(refaddr);
use Log::Log4perl;
use Module::Pluggable
search_path => [ __PACKAGE__ ],
require => 1,
inner => 1,
sub_name => 'function_sets',
;
######################################################################
our ($VERSION, $l);
BEGIN {
$l = Log::Log4perl->get_logger("rdf.query.functions");
$VERSION = '2.918';
}
######################################################################
=item C<< install_function ( $uri, \&func ) >>
=item C<< install_function ( \@uris, \&func ) >>
Install the supplied CODE reference as the implementation for the given function URI(s).
=cut
sub install_function {
my $class = shift;
while (@_) {
my $uris = shift;
my $func = shift;
$RDF::Query::preferred_function_name{ refaddr($func) } = ref($uris) ? $uris->[0] : $uris;
foreach my $uri (ref($uris) ? @$uris : $uris) {
$RDF::Query::functions{$uri} = $func;
}
}
}
foreach my $function_set (__PACKAGE__->function_sets) {
$function_set->install;
}
1;
__END__
=back
=head1 SEE ALSO
L<RDF::Query::Functions::SPARQL>,
L<RDF::Query::Functions::Xpath>,
L<RDF::Query::Functions::Jena>,
L<RDF::Query::Functions::Geo>,
L<RDF::Query::Functions::Kasei>.
=head1 AUTHOR
Gregory Williams <gwilliams@cpan.org>,
Toby Inkster <tobyink@cpan.org>.
=cut
|