Query: rdf::redland::query
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RDF::Redland::Query(3pm) User Contributed Perl Documentation RDF::Redland::Query(3pm)NAMERDF::Redland::Query - Redland RDF Syntax Query ClassSYNOPSISuse 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.CONSTRUCTORSnew QUERY-STRING [BASE-URI [QUERY-LANG-URI [QUERY-LANG]]] Create a new RDF::Redland::Query object for a query string QUERY-STRING with optional base URI BASE-URI IN QUERY language QUERY-LANG or query language URI QUERY-LANG-URI (both can be undef). If QUERY-LANG-URI is omitted, the current directory is used as the base URI. If QUERY-LANG-NAME is undef, the default query language "rdql" is used. If BASE-URI is omitted, no base URI is used.METHODSexecute MODEL Run the query against model MODEL returning a RDF::Redland::QueryResults object or undef on failure.SEE ALSORDF::Redland::QueryResultsAUTHORDave Beckett - http://www.dajobe.org/ perl v5.14.2 2011-02-04 RDF::Redland::Query(3pm)
Similar Topics in the Unix Linux Community |
---|
assign a value to variable |
Query to print numbers in words |
How to remove duplicated lines? |
Printing Terminal Output to a Error File |
Leadership Table Query |