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
   multiple  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)


More Linux Commands

manpages/pamfunc.1.html
pamfunc(1) - Apply a simple monadic arithmetic function to a
This program is part of Netpbm(1) pamfunc reads a Netpbm image as input and produces a Netpbm image as output, with the same format, maxval, and dimensions as t

manpages/env.n.html
env(n) Variables used by Tcl _______________________________
The following global variables are created and managed automatically by the Tcl library. Except where noted below, these variables should normally be treated as

manpages/git-reset.1.html
git-reset(1) - Reset current HEAD to the specified state....
In the first and second form, copy entries from &lt;tree-ish&gt; to the index. In the third form, set the current branch head (HEAD) to &lt;commit&gt;, optionally modifying

manpages/tc-htb.8.html
tc-htb(8) - Hierarchy Token Bucket - Linux manual page......
HTB is meant as a more understandable and intuitive replacement for the CBQ qdisc in Linux. Both CBQ and HTB help you to control the use of the outbound bandwid

manpages/Tcl_PkgRequireEx.3.html
Tcl_PkgRequireEx(3) - package version control (Man Page)....
These procedures provide C-level interfaces to Tcls package and version management facilities. Tcl_PkgRequire is equivalent to the package require command, Tcl_

manpages/Tk_DeleteOptionTable.3.html
Tk_DeleteOptionTable(3) - process configuration options.....
These procedures handle most of the details of parsing configuration options such as those for Tk widgets. Given a description of what options are supported, th

manpages/Tcl_ChannelWideSeekProc.3.html
Tcl_ChannelWideSeekProc(3) - procedures for creating and man
Tcl uses a two-layered channel architecture. It provides a generic upper layer to enable C and Tcl programs to perform input and output using the same APIs for

manpages/cyrus_master.8.html
cyrus_master(8) - master Cyrus process - Linux manual page
Master is the process that controls all of the Cyrus processes. This process is responsible for creating all imapd, pop3d, lmtpd and sieved child processes. Thi

manpages/acl_set_fd.3.html
acl_set_fd(3) - set an ACL by file descriptor (Man Page)....
The acl_set_fd() function associates an access ACL with the file referred to by fd. The effective user ID of the process must match the owner of the file or the

manpages/XSetArcMode.3.html
XSetArcMode(3) - GC convenience routines - Linux man page...
The XSetArcMode function sets the arc mode in the specified GC. XSetArcMode can generate BadAlloc, BadGC, and BadValue errors. The XSetSubwindowMode function se

manpages/glPixelStore.3gl.html
glPixelStore(3gl) - set pixel storage modes - Linux man page
glPixelStore sets pixel storage modes that affect the operation of subsequent glDrawPixels and glReadPixels as well as the unpacking of polygon stipple patterns

manpages/sane-hp5400.5.html
sane-hp5400(5) - SANE backend for Hewlett-Packard 54XX scann
The sane-hp5400 library implements a SANE (Scanner Access Now Easy) backend that provides access to the following Hewlett-Packard USB flatbed scanners: ScanJet





We can't live, work or learn in freedom unless the software we use is free.