Apache-SPARQL-RDFStore
view release on metacpan or search on metacpan
use strict;
use Module::Build;
my $build = Module::Build->new(
'module_name' => 'Apache::SPARQL::RDFStore',
'dist_author' => 'Alberto Reggiori <alberto@asemantics.com>',
'dist_abstract' => 'A mod_perl handler which implements SPARQL bindings with RDFStore',
'dist_version_from' => 'lib/Apache/SPARQL/RDFStore.pm',
'license' => 'bsd', # see LICENSE file
'requires' => {
'mod_perl' => '>= 1.29',
'LWP::UserAgent' => '> 1.00',
'Apache::SPARQL' => '>= 0.22',
'RDFStore' => '>= 0.51',
'DBI' => '>= 1.00',
'XML::LibXML' => '>= 1.58',
'XML::LibXSLT' => '>= 1.52',
---
name: Apache-SPARQL-RDFStore
version: 0.3
author:
- Alberto Reggiori <alberto@asemantics.com>
abstract: A mod_perl handler which implements SPARQL bindings with RDFStore
license: bsd
requires:
Apache::Request: >= 1.3
Apache::SPARQL: >= 0.22
DBI: >= 1.00
LWP::UserAgent: > 1.00
RDFStore: >= 0.51
XML::LibXML: >= 1.58
XML::LibXSLT: >= 1.52
mod_perl: >= 1.29
NAME
Apache::SPARQL::RDFStore - A mod_perl handler which implements SPARQL
HTTP bindings with RDFStore
SYNOPSIS
<Location /rdfstore>
SetHandler perl-script
PerlHandler Apache::SPARQL::RDFStore
</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%0
D%0ASELECT+%3Fpg%0D%0AWHERE%0D%0A++%28%3Fwho+foaf%3Aname+%22Norm+Walsh%22%29%0D%0A++%28%3Fwho+foaf%3Aweblog+%3Fpg%29%0D%0A");
my $res = $ua->request($req);
DESCRIPTION
Apache::SPARQL::RDFStore is a mod_perl handler which implements SPARQL
HTTP bindings with RDFStore...
MOD_PERL COMPATIBILITY
This handler will work with both mod_perl 1.x and mod_perl 2.x.
AUTHOR
Alberto Reggiori <alberto@asemantics.com>
SEE ALSO
Apache::SPARQL
http://www.w3.org/TR/rdf-sparql-protocol/
lib/Apache/SPARQL/RDFStore.pm view on Meta::CPAN
sub getServiceDescription {
my ($class, $ap) = @_;
return $Apache::SPARQL::Responses{ 'MalformedRequest' };
};
=cut
=head1 NAME
Apache::SPARQL::RDFStore - A mod_perl handler which implements SPARQL HTTP bindings with RDFStore
=head1 SYNOPSIS
<Location /rdfstore>
SetHandler perl-script
PerlHandler Apache::SPARQL::RDFStore
</Location>
lib/Apache/SPARQL/RDFStore.pm view on Meta::CPAN
#
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%0
D%0ASELECT+%3Fpg%0D%0AWHERE%0D%0A++%28%3Fwho+foaf%3Aname+%22Norm+Walsh%22%29%0D%0A++%28%3Fwho+foaf%3Aweblog+%3Fpg%29%0D%0A");
my $res = $ua->request($req);
=head1 DESCRIPTION
Apache::SPARQL::RDFStore is a mod_perl handler which implements SPARQL HTTP bindings with RDFStore...
=head1 MOD_PERL COMPATIBILITY
This handler will work with both mod_perl 1.x and mod_perl 2.x.
=head1 AUTHOR
Alberto Reggiori <alberto@asemantics.com>
=head1 SEE ALSO
( run in 1.624 second using v1.01-cache-2.11-cpan-2398b32b56e )