Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

librasqal(3) [debian 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)

Check Out this Related Man Page

libraptor2(3)						     Library Functions Manual						     libraptor2(3)

NAME
libraptor2 - Raptor RDF syntax library 2.0 SYNOPSIS
#include <raptor2.h> world=raptor_new_world(); raptor_parser *p=raptor_new_parser(world,rdfxml); raptor_set_statement_handler(p,NULL,print_triples); raptor_uri *file_uri=raptor_new_uri(world,http://example.org/); raptor_parser_parse_file(p,file_uri,base_uri); raptor_parser_parse_uri(p,uri,NULL); raptor_free_parser(p); raptor_free_uri(file_uri); raptor_free_world(world); cc prog.c -o prog `pkg-config raptor2 --cflags` `pkg-config raptor2 --libs` DESCRIPTION
The Raptor library provides a high-level interface to a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into syntaxes. The supported parsing syntaxes include RDF/XML, N-Triples, Turtle, TRiG, RSS tag soup (including all RSS and Atoms), GRDDL, RDF/JSON, RDFa and the serializing syntaxes include RDF/XML (3 varieties), N-Quads, N-Triples, Turtle, RSS 1.0, Atom 1.0, GraphViz DOT and RDF/JSON. The RDF/XML parser can use either expat or libxml XML parsers for providing the SAX event stream. The library functions are arranged in an object-oriented style with constructors, destructors and method calls. The statements and error messages are delivered via callback func- tions. Raptor also contains classes to support the RDF graph triples: a statement object containing term objects and support for RDF URI-Refer- ences for both parsing them and resolving / retrieval of URIs. It some utility classes such as an I/O Stream abstraction for supporting reading and writing to and from a variety of locations, AVL Trees, String buffers and Sequences. Raptor uses Unicode strings for RDF literals and URIs and preserves them throughout the library. It uses the UTF-8 encoding of Unicode at the API for passing in or returning Unicode strings. It is intended that the preservation of Unicode for URIs supports Internationalized Resource Identifiers (IRIs). API REFERENCE
See the HTML API docs that may be installed system wide at /usr/share/gtk-doc/html/raptor2/ or on the web at http://librdf.org/raptor/api/ <http://librdf.org/raptor/api/> API CHANGES
See the Raptor API docs changes section at http://librdf.org/raptor/api/raptor-changes.html <http://librdf.org/raptor/api/raptor- changes.html> and the upgrading information when converting from libraptor(1) code at http://librdf.org/raptor/UPGRADING.html <http://librdf.org/raptor/UPGRADING.html> CONFORMING TO
RDF/XML Syntax (Revised), Dave Beckett (ed.) W3C Recommendation, http://www.w3.org/TR/rdf-syntax-grammar/ <http://www.w3.org/TR/rdf- syntax-grammar/> N-Triples, in RDF Test Cases, Jan Grant and Dave Beckett (eds.) W3C Recommendation, http://www.w3.org/TR/rdf-testcases/#ntriples <http://www.w3.org/TR/rdf-testcases/#ntriples> Turtle - Terse RDF Triple Language, Dave Beckett, http://www.dajobe.org/2004/01/turtle/ <http://www.dajobe.org/2004/01/turtle/> RSS 0.91 spec revision 3, Dan Libby, Netscape, http://my.netscape.com/publish/formats/rss-spec-0.91.html <http://my.netscape.com/publish/formats/rss-spec-0.91.html> RDF Site Summary (RSS) 1.0, http://purl.org/rss/1.0/spec <http://purl.org/rss/1.0/spec> Atom 1.0 syndication format, RFC 4287, http://www.ietf.org/rfc/rfc4287.txt <http://www.ietf.org/rfc/rfc4287.txt> Gleaning Resource Descriptions from Dialects of Languages (GRDDL), Dan Connolly (ed.), W3C Recommendation, 2007-09-11, http://www.w3.org/TR/2007/REC-grddl-20070911/ <http://www.w3.org/TR/2007/REC-grddl-20070911/> RDFa in XHTML: Syntax and Processing, Ben Adida, Mark Birbeck, Shane McCarron, Steven Pemberton (eds.) W3C Recommendation, 2008-10-14, http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/ <http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/> SEE ALSO
rapper(1) AUTHOR
Dave Beckett - http://www.dajobe.org/ <http://www.dajobe.org/> 2010-08-16 libraptor2(3)
Man Page