.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "RDF::Redland::Query 3pm" .TH RDF::Redland::Query 3pm "2016-06-22" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" RDF::Redland::Query \- Redland RDF Syntax Query Class .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use RDF::Redland; \& \& ... \& my $query=new RDF::Redland::Query($query_string); # default query language \& my $results=$query\->execute($model); \& # or my $results=$model\->query_execute($query); \& while(!$results\->finished) { \& for (my $i=0; $i < $results\->bindings_count(); $i++) { \& my $name=$results\->binding_name($i); \& my $value=$results\->binding_value($i); \& # ... do something with the results \& } \& $results\->next_result; \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This class represents queries of various syntaxes over an RDF::Redland::Model returning a sequence of results that (currently) bind variable names to RDF::Redland::Node values. .SH "CONSTRUCTORS" .IX Header "CONSTRUCTORS" .IP "new QUERY-STRING [\s-1BASE\-URI\s0 [\s-1QUERY\-LANG\-URI\s0 [\s-1QUERY\-LANG\s0]]]" 4 .IX Item "new QUERY-STRING [BASE-URI [QUERY-LANG-URI [QUERY-LANG]]]" Create a new RDF::Redland::Query object for a query string \fIQUERY-STRING\fR with optional base \s-1URI \s0\fIBASE-URI\fR \&\s-1IN QUERY\s0 language \fIQUERY-LANG\fR or query language \s-1URI \s0\fIQUERY-LANG-URI\fR (both can be undef). If \fIQUERY-LANG-URI\fR is omitted, the current directory is used as the base \s-1URI.\s0 If \fIQUERY-LANG-NAME\fR is undef, the default query language \*(L"rdql\*(R" is used. If \fIBASE-URI\fR is omitted, no base \s-1URI\s0 is used. .SH "METHODS" .IX Header "METHODS" .IP "execute \s-1MODEL\s0" 4 .IX Item "execute MODEL" Run the query against model \fI\s-1MODEL\s0\fR returning a RDF::Redland::QueryResults object or undef on failure. .SH "SEE ALSO" .IX Header "SEE ALSO" RDF::Redland::QueryResults .SH "AUTHOR" .IX Header "AUTHOR" Dave Beckett \- http://www.dajobe.org/