Apache-SPARQL
view release on metacpan or search on metacpan
use strict;
use Module::Build;
my $build = Module::Build->new(
'module_name' => 'Apache::SPARQL',
'dist_author' => 'Alberto Reggiori <alberto@asemantics.com>',
'dist_abstract' => 'A mod_perl handler base class for SPARQL query service using HTTP bindings',
'dist_version_from' => 'lib/Apache/SPARQL.pm',
'license' => 'bsd', # see LICENSE file
'requires' => {
'mod_perl' => '>= 1.29',
'LWP::UserAgent' => '> 1.00',
&apache_request()
},
'create_readme' => 1,
'create_makefile_pl' => 'passthrough' );
---
name: Apache-SPARQL
version: 0.22
author:
- Alberto Reggiori <alberto@asemantics.com>
abstract: A mod_perl handler base class for SPARQL query service using HTTP bindings
license: bsd
requires:
Apache::Request: >= 1.3
LWP::UserAgent: > 1.00
mod_perl: >= 1.29
provides:
Apache::SPARQL:
file: lib/Apache/SPARQL.pm
version: 0.22
generated_by: Module::Build version 0.2608
NAME
Apache::SPARQL - mod_perl handler base class to implement a SPARQL query
service using HTTP bindings.
SYNOPSIS
<Location /rdfstore>
SetHandler perl-script
PerlHandler Apache::SPARQL
</Location>
#
my $ua = LWP::UserAgent->new();
my $req = HTTP::Request->new(GET => "http://pim.example/rdfstore?query=PREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0ASELECT+%3Fpg%0D%0AWHERE%0D%0A++%28%3Fwho+foaf%3Aname+%22Norm+Walsh%22%29%0D%0A++%28%3Fwho+foaf%3Aweblog+%3Fpg...
my $res = $ua->request($req);
DESCRIPTION
Apache::SPARQL is a mod_perl handler base class to implement a SPARQL
query service using HTTP bindings.
IMPORTANT
This package is a base class and not expected to be invoked directly.
Please use one of the backends handlers instead.
SUPPPORTED BACKENDS
Apache::SPARQL::RDFStore
MOD_PERL COMPATIBILITY
This handler will work with both mod_perl 1.x and mod_perl 2.x.
lib/Apache/SPARQL.pm view on Meta::CPAN
sub _header_out {
my ($class, $ap, $field, $value) = @_;
( $class->_mp2 ) ? $ap->headers_out()->{$field} = $value: $ap->header_out($field,$value);
};
=cut
=head1 NAME
Apache::SPARQL - mod_perl handler base class to implement a SPARQL query service using HTTP bindings.
=head1 SYNOPSIS
<Location /rdfstore>
SetHandler perl-script
PerlHandler Apache::SPARQL
</Location>
#
my $ua = LWP::UserAgent->new();
my $req = HTTP::Request->new(GET => "http://pim.example/rdfstore?query=PREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0ASELECT+%3Fpg%0D%0AWHERE%0D%0A++%28%3Fwho+foaf%3Aname+%22Norm+Walsh%22%29%0D%0A++%28%3Fwho+foaf%3Aweblog+%3Fpg%29%...
my $res = $ua->request($req);
=head1 DESCRIPTION
Apache::SPARQL is a mod_perl handler base class to implement a SPARQL query service using HTTP bindings.
=head1 IMPORTANT
This package is a base class and not expected to be invoked
directly. Please use one of the backends handlers instead.
=head1 SUPPPORTED BACKENDS
Apache::SPARQL::RDFStore
( run in 2.139 seconds using v1.01-cache-2.11-cpan-2398b32b56e )