1RDF::Trine::Iterator::SUAsXeHranCdolnetrr(i3b)uted PerlRDDoFc:u:mTernitnaet:i:oInterator::SAXHandler(3)
2
3
4
6 RDF::Trine::Iterator::SAXHandler - SAX Handler for parsing SPARQL XML
7 Results format
8
10 This document describes RDF::Trine::Iterator::SAXHandler version 1.019
11
13 This module's API and functionality should be considered unstable. In
14 the future, this module may change in backwards-incompatible ways, or
15 be removed entirely. If you need functionality that this module
16 provides, please get in touch <http://www.perlrdf.org/>.
17
19 use RDF::Trine::Iterator::SAXHandler;
20 my $handler = RDF::Trine::Iterator::SAXHandler->new();
21 my $p = XML::SAX::ParserFactory->parser(Handler => $handler);
22 $p->parse_file( $string );
23 my $iter = $handler->iterator;
24
26 Beyond the methods documented below, this class inherits methods from
27 the XML::SAX::Base class.
28
29 "new ( [ \&handler ] )"
30 Returns a new XML::SAX handler object. If &handler is supplied, it
31 will be called with a variable bindings object as each is parsed,
32 bypassing the normal process of collecting the results for
33 retrieval via an iterator object.
34
35 "iterator"
36 Returns the RDF::Trine::Iterator object after parsing is complete.
37
38 "iterator_class"
39 Returns the iterator class appropriate for the parsed results
40 (either ::Iterator::Boolean or ::Iterator::Bindings).
41
42 "iterator_args"
43 Returns the arguments suitable for passing to the iterator
44 constructor after the iterator data.
45
46 "pull_result"
47 Returns the next result from the iterator, if available (if it has
48 been parsed yet). Otherwise, returns the empty list.
49
51 Please report any bugs or feature requests to through the GitHub web
52 interface at <https://github.com/kasei/perlrdf/issues>.
53
55 Gregory Todd Williams "<gwilliams@cpan.org>"
56
58 Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
59 software; you can redistribute it and/or modify it under the same terms
60 as Perl itself.
61
62
63
64perl v5.36.0 2023-01-20RDF::Trine::Iterator::SAXHandler(3)