1Attean::Result(3)     User Contributed Perl Documentation    Attean::Result(3)
2
3
4

NAME

6       Attean::Result - SPARQL Result
7

VERSION

9       This document describes Attean::Result version 0.033
10

SYNOPSIS

12         use v5.14;
13         use Attean;
14         my $result = Attean::Result->new(bindings => { name => $literal, homepage => $iri } );
15         my @vars = $result->variables; # ('name', 'homepage')
16         my $term = $result->value('name'); # $term == $literal
17

DESCRIPTION

19       The Attean::Result class represents a SPARQL result (a set of bindings
20       from variable names to terms).  It conforms to the Attean::API::Result
21       role.
22

METHODS

24       "bindings"
25           Returns the HASH reference containing the variable bindings for
26           this result.
27
28       "value( $name )"
29           Returns the term object bound to the $named variable, or undef if
30           the name does not map to a term.
31
32       "variables"
33           Returns a list of the variable names that are bound to terms in
34           this result object.
35
36       "as_string"
37           Returns a string serialization of the variable bindings contained
38           in the result.
39

BUGS

41       Please report any bugs or feature requests to through the GitHub web
42       interface at <https://github.com/kasei/attean/issues>.
43

SEE ALSO

AUTHOR

46       Gregory Todd Williams  "<gwilliams@cpan.org>"
47
49       Copyright (c) 2014--2022 Gregory Todd Williams.  This program is free
50       software; you can redistribute it and/or modify it under the same terms
51       as Perl itself.
52
53
54
55perl v5.36.0                      2022-10-03                 Attean::Result(3)
Impressum