RDF::QueryX::Lazy - yeah, all those PREFIX definitions get boring
my $query = RDF::QueryX::Lazy->new(<<SPARQL); SELECT * WHERE { ?person foaf:name ?name . OPTIONAL { ?person foaf:homepage ?page . } } SPARQL
This is a fairly trivial subclass of RDF::Query that auto-defines many prefixes for you, so you can be lazy. It should have most of the common ones in there.
Oh yeah, and if you want, you can pass a key 'lazy' in the RDF::Query %options hash with additional prefix mappings.
%options
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=RDF-QueryX-Lazy.
RDF::Query.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2011 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install RDF::QueryX::Lazy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::QueryX::Lazy
CPAN shell
perl -MCPAN -e shell install RDF::QueryX::Lazy
For more information on module installation, please visit the detailed CPAN module installation guide.