RDF::Query::Parser::RDQL(3pm) User Contributed Perl Documentation RDF::Query::Parser::RDQL(3pm)NAME
RDF::Query::Parser::RDQL - An RDQL parser for RDF::Query
VERSION
This document describes RDF::Query::Parser::RDQL version 2.908.
METHODS
"new ( $query_object ) "
Returns a new RDF::Query object.
"parse ( $query ) "
Parses the supplied RDQL query string, returning a parse tree.
REVISION HISTORY
$Log$
Revision 1.5 2006/01/11 06:03:45 greg
- Removed use of Data::Dumper::Simple.
Revision 1.4 2005/05/08 08:26:09 greg
- Added initial support for SPARQL ASK, DESCRIBE and CONSTRUCT queries.
- Added new test files for new query types.
- Added methods to bridge classes for creating statements and blank nodes.
- Added as_string method to bridge classes for getting string versions of nodes.
- Broke out triple fixup code into fixup_triple_bridge_variables().
- Updated FILTER test to use new Geo::Distance API.
Revision 1.3 2005/04/26 02:54:40 greg
- added core support for custom function constraints support
- added initial SPARQL support for custom function constraints
- SPARQL variables may now begin with the '$' sigil
- broke out URL fixups into its own method
- added direction support for ORDER BY (ascending/descending)
- added 'next', 'current', and 'end' to Stream API
Revision 1.2 2005/04/25 00:59:29 greg
- streams are now objects usinig the Redland QueryResult API
- RDF namespace is now always available in queries
- row() now uses a stream when calling execute()
- check_constraints() now copies args for recursive calls (instead of pass-by-ref)
- added ORDER BY support to RDQL parser
- SPARQL constraints now properly use the 'FILTER' keyword
- SPARQL constraints can now use '&&' as an operator
- SPARQL namespace declaration is now optional
Revision 1.1 2005/04/21 02:21:44 greg
- major changes (resurecting the project)
- broke out the query parser into it's own RDQL class
- added initial support for a SPARQL parser
- added support for blank nodes
- added lots of syntactic sugar (with blank nodes, multiple predicates and objects)
- moved model-specific code into RDF::Query::Model::*
- cleaned up the model-bridge code
- moving over to redland's query API (pass in the model when query is executed)
AUTHOR
Gregory Williams <gwilliams@cpan.org>
perl v5.14.2 2012-01-31 RDF::Query::Parser::RDQL(3pm)
Check Out this Related Man Page
librasqal(3) Library Functions Manual librasqal(3)NAME
librasqal - Rasqal RDF query library
SYNOPSIS
#include <rasqal.h>
rasqal_world*world=rasqal_new_world();
rasqal_query_results *results;
raptor_uri *base_uri=raptor_new_uri("http://example.org/foo");
rasqal_query *rq=rasqal_new_query(world,"rdql",NULL);
const char *query_string="select * from <http://example.org/data.rdf>";
rasqal_query_prepare(rq,query_string,base_uri);
results=rasqal_query_execute(rq);
while(!rasqal_query_results_finished(results)) {
for(i=0;i<rasqal_query_results_get_bindings_count(results);i++) {
const char *name=rasqal_query_results_get_binding_name(results,i);
rasqal_literal *value=rasqal_query_results_get_binding_value(results,i);
/* ... */
}
rasqal_query_results_next(results);
}
rasqal_free_query_results(results);
rasqal_free_query(rq);
raptor_free_uri(base_uri);
rasqal_free_world(world);
cc prog.c -o prog `pkg-config rasqal --cflags` `pkg-config rasqal --libs`
DESCRIPTION
The Rasqal library provides a high-level interface to RDF query parsing, query construction, query execution over an RDF graph and query
results manipulation and formatting. The library provides APIs to each of the steps in the process and provides support for handling mul-
tiple query language syntaxes. At present Rasqal supports most of the W3C SPARQL 1.0 Query language, some of SPARQL 1.1 draft and fully
supports RDQL.
Rasqal uses the libraptor(3) library for providing URI handling, WWW content retrieval and other support functions.
API REFERENCE
See the HTML API docs that may be installed system wide at /usr/share/gtk-doc/html/rasqal/ or on the web at
http://librdf.org/rasqal/docs/api/ <http://librdf.org/rasqal/docs/api/>
API CHANGES
See the Raptor API docs changes section at http://librdf.org/rasqal/docs/api/rasqal-changes.html <http://librdf.org/rasqal/docs/api/rasqal-
changes.html>
CONFORMING TO
SPARQL Query Language for RDF, Eric Prud'hommeaux and Andy Seaborne (eds), W3C Recommendation, 15 January 2008
http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/ <http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/>
SPARQL Query Results XML Format, Jeen Broekstra and Dave Beckett (eds), W3C Recommendation, 15 January 2008.
http://www.w3.org/TR/2008/REC-rdf-sparql-XMLres-20080115/ <http://www.w3.org/TR/2008/REC-rdf-sparql-XMLres-20080115/>
RDQL - A Query Language for RDF, Andy Seaborne, W3C Member Submission 9 January 2004 http://www.w3.org/Submission/2004/SUBM-RDQL-20040109/
<http://www.w3.org/Submission/2004/SUBM-RDQL-20040109/>
SEE ALSO roqet(1),libraptor(3)AUTHOR
Dave Beckett - http://purl.org/net/dajobe/ <http://purl.org/net/dajobe/>
2011-01-12 librasqal(3)