1RDF::Redland::Query(3)User Contributed Perl DocumentationRDF::Redland::Query(3)
2
3
4

NAME

6       RDF::Redland::Query - Redland RDF Syntax Query Class
7

SYNOPSIS

9         use RDF::Redland;
10
11         ...
12         my $query=new RDF::Redland::Query($query_string); # default query language
13         my $results=$query->execute($model);
14         # or my $results=$model->query_execute($query);
15         while(!$results->finished) {
16           for (my $i=0; $i < $results->bindings_count(); $i++) {
17             my $name=$results->binding_name($i);
18             my $value=$results->binding_value($i);
19             # ... do something with the results
20           }
21           $results->next_result;
22         }
23

DESCRIPTION

25       This class represents queries of various syntaxes over an
26       RDF::Redland::Model returning a sequence of results that (currently)
27       bind variable names to RDF::Redland::Node values.
28

CONSTRUCTORS

30       new QUERY-STRING [BASE-URI [QUERY-LANG-URI [QUERY-LANG]]]
31           Create a new RDF::Redland::Query object for a query string QUERY-
32           STRING with optional base URI BASE-URI IN QUERY language QUERY-LANG
33           or query language URI QUERY-LANG-URI (both can be undef).  If
34           QUERY-LANG-URI is omitted, the current directory is used as the
35           base URI.  If QUERY-LANG-NAME is undef, the default query language
36           "rdql" is used.  If BASE-URI is omitted, no base URI is used.
37

METHODS

39       execute MODEL
40           Run the query against model MODEL returning a
41           RDF::Redland::QueryResults object or undef on failure.
42

SEE ALSO

44       RDF::Redland::QueryResults
45

AUTHOR

47       Dave Beckett - http://www.dajobe.org/
48
49
50
51perl v5.30.0                      2019-07-26            RDF::Redland::Query(3)
Impressum