1RDF::Trine::Iterator::BUosoelreaCno(n3t)ributed Perl DocRuDmFe:n:tTartiinoen::Iterator::Boolean(3)
2
3
4

NAME

6       RDF::Trine::Iterator::Boolean - Iterator class for boolean query
7       results
8

VERSION

10       This document describes RDF::Trine::Iterator::Boolean version 1.019
11

SYNOPSIS

13        use RDF::Trine::Iterator::Boolean;
14
15        my $iterator = RDF::Trine::Iterator::Boolean->new( [1] );
16        my $bool = $iterator->get_boolean;
17        if ($bool) {
18               print "Yes.\n";
19        }
20

METHODS

22       Beyond the methods documented below, this class inherits methods from
23       the RDF::Trine::Iterator class.
24
25       "new ( \@results, %args )"
26       "new ( \&results, %args )"
27           Returns a new SPARQL Result interator object. Results must be
28           either an reference to an array containing results or a CODE
29           reference that acts as an iterator, returning successive items when
30           called, and returning undef when the iterator is exhausted.
31
32           $type should be one of: bindings, boolean, graph.
33
34       "is_boolean"
35           Returns true if the underlying result is a boolean value.
36
37       "as_string ( $max_size [, \$count] )"
38           Returns a string serialization of the stream data.
39
40       "as_xml ( $max_size )"
41           Returns an XML serialization of the stream data.
42
43       "print_xml ( $fh, $max_size )"
44           Prints an XML serialization of the stream data to the filehandle
45           $fh.
46
47       "as_json ( $max_size )"
48           Returns a JSON serialization of the stream data.
49
50       "construct_args"
51           Returns the arguments necessary to pass to the stream constructor
52           _new to re-create this stream (assuming the same closure as the
53           first
54

DEPENDENCIES

56       JSON
57
58       Scalar::Util
59

BUGS

61       Please report any bugs or feature requests to through the GitHub web
62       interface at <https://github.com/kasei/perlrdf/issues>.
63

AUTHOR

65       Gregory Todd Williams  "<gwilliams@cpan.org>"
66
68       Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
69       software; you can redistribute it and/or modify it under the same terms
70       as Perl itself.
71
72
73
74perl v5.32.1                      2021-01-27  RDF::Trine::Iterator::Boolean(3)
Impressum