RedlandDave Beckett |
|||||
|
|
Hosted by
![]() since 2005. Redland BindingsLanguagesDemonstrationsData |
Redland librdf Language Bindings - Perl RDF::Redland::Query ClassNAMERDF::Redland::Query - Redland RDF Syntax Query Class SYNOPSISuse 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;
}
DESCRIPTIONThis 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. CONSTRUCTORS
METHODS
SEE ALSOthe RDF::Redland::QueryResults manpage AUTHORDave Beckett - http://www.dajobe.org/ (C) Copyright (C) 2000-2011 Dave Beckett, (C) Copyright (C) 2000-2005 University of Bristol |