Scroll to navigation

RDF::QueryX::Lazy(3pm) User Contributed Perl Documentation RDF::QueryX::Lazy(3pm)

NAME

RDF::QueryX::Lazy - yeah, all those PREFIX definitions get boring

SYNOPSIS

 my $query = RDF::QueryX::Lazy->new(<<SPARQL);
 SELECT *
 WHERE {
   ?person foaf:name ?name .
   OPTIONAL { ?person foaf:homepage ?page . }
 }
 SPARQL

DESCRIPTION

This is a fairly trivial subclass of RDF::Query that auto-definesmany prefixes for you, so you can be lazy. It should have most of thecommon 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.

BUGS

Please report any bugs to<http://rt.cpan.org/Dist/Display.html?Queue=RDF-QueryX-Lazy>.

SEE ALSO

RDF::Query.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2011 by Toby Inkster.

This is free software; you can redistribute it and/or modify it underthe same terms as the Perl 5 programming language system itself.

DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIEDWARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OFMERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

2024-03-07 perl v5.38.2