Debian Codegraph @

README.html

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4 <head>
5 <title>Rasqal RDF Query Library</title>
6 <link rel="meta" type="application/rdf+xml" title="DOAP" href="rasqal.rdf" />
7 </head>
8 <body>
9
10 <h1 style="text-align:center">Rasqal RDF Query Library</h1>
11 <h2 style="text-align:center"><a href="http://www.dajobe.org/">Dave Beckett</a></h2>
12
13
14 <h2>Overview</h2>
15
16 <p><a href="http://librdf.org/rasqal/">Rasqal</a> is a free software
17 / Open Source C library that handles Resource Description Framework
18 (RDF) query language syntaxes, query construction and execution of
19 queries returning results as bindings, boolean, RDF graphs/triples or
20 syntaxes. The supported query languages are SPARQL Query 1.0, SPARQL
21 Query 1.1, SPARQL Update 1.1 (no executing) and the Experimental
22 SPARQL extensions (LAQRS). Rasqal can write binding query results in
23 the SPARQL XML, SPARQL JSON, CSV, TSV, HTML, ASCII tables, RDF/XML
24 and Turtle / N3 and read them in SPARQL XML, CSV, TSV,
25 RDF/XML and Turtle / N3.
26 </p>
27
28 <p>Rasqal was designed to work closely with the
29 <a href="http://librdf.org/">Redland RDF library</a>
30 and the <a href="http://librdf.org/raptor/">Raptor</a>
31 RDF Syntax Library but is entirely separate from both.
32 </p>
33
34 <p>This is a beta quality library - the code is mature, the API is
35 mostly stable but changing slowly. Rasqal supports all of SPARQL 1.0
36 query and most of SPARQL 1.1 query. It is a portable library and has
37 been tested on multiple POSIX systems and architectures. Rasqal has
38 no known memory leaks.
39 </p>
40
41 <p>A summary of the changes can be found in the
42 <a href="NEWS.html">NEWS</a> file and detailed API changes in the
43 <a href="RELEASE.html">release notes</a>.</p>
44
45 <p>Rasqal provides:</p>
46 <ul>
47 <li>An RDF <a href="docs/api/query.html">query</a> construction and access API.</li>
48 <li>Query language support for <a href="http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/">SPARQL 1.0 Query</a>.</li>
49 <li>Query language support for most of <a href="http://www.w3.org/TR/2013/REC-sparql11-query-20130321/">SPARQL 1.1 Query</a>.</li>
50 <li>A query execution engine executing sub-queries, aggregate expressions and grouping.</li>
51 <li>The complete SPARQL 1.1 (draft) built-in function and operator library</li>
52 <li>A query result binding API.</li>
53 <li>Query result bindings formatting into SPARQL XML, SPARQL JSON, CSV, TSV, HTML, ASCII tables, RDF/XML, Turtle / N3 and from SPARQL XML, RDF/XML and Turtle / N3.</li>
54 <li>Triple store querying APIs to support running over external RDF graphs.</li>
55 <li>No memory leaks.</li>
56 <li><a href="roqet.html">roqet</a> standalone command line RDF query utility program</li>
57 </ul>
58
59 <p>Known bugs and issues are recorded in the
60 <a href="http://bugs.librdf.org/">Redland issue tracker</a>.
61 </p>
62
63 <p>Rasqal does not provide an RDF API or triple store, but relies on
64 external libraries implementing the triple store API providing
65 matched RDF data originally from a specified content URI. Rasqal
66 ships with a triple store implementation using the output of an RDF
67 parser from <a href="http://librdf.org/raptor/">Raptor</a>.
68 This can be called using the standalone
69 command line <a href="roqet.html">roqet</a>
70 query utility giving a query language
71 identifier (default sparql), the query string and optionally
72 the data to use unless it is declared in the query string.
73 </p>
74
75 <p>Rasqal is used inside Redland to provide support for query
76 languages, a query API and a result bindings API over graphs stored
77 in indexed Redland triple stores. Since this can index the triples
78 it will be faster than the default rasqal triple store of reading
79 the triples from Raptor into memory when the queries are complex.
80 </p>
81
82
83 <h2>Supported Query Languages</h2>
84
85 <h3>SPARQL Query Language for RDF</h3>
86
87 <p>Rasqal provides complete support for the W3C SPARQL Query Language 1.0
88 developed by the W3C
89 <a href="http://www.w3.org/2001/sw/DataAccess/">RDF Data Access Working Group</a>,
90 as defined in
91 <a href="http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/">SPARQL Query Language for RDF (1.0)</a>, W3C Recommendation 15 January 2008.
92 </p>
93
94 <p>Rasqal implements most of the
95 <a href="http://www.w3.org/TR/2013/REC-sparql11-query-20130321/">SPARQL 1.1 Query Language</a>
96 and
97 <a href="http://www.w3.org/TR/2013/REC-sparql11-update-20130321/">SPARQL 1.1 Update</a>
98 W3C Recommendations 21 March 2013 including aggregates,
99 subqueries, expression in SELECT, assignment, short form for
100 <code>CONSTRUCT</code> and all the new set of builtin functions and
101 operators.</p>
102
103 <p>Unimplemented parts of SPARQL 1.1:</p>
104 <ul>
105 <li><code>BIND</code> scope</li>
106 <li><code>VALUES</code>: part of federated query</li>
107 <li>Decimal and double canonical format details</li>
108 <li><code>EXISTS</code> / <code>NOT EXISTS</code></li>
109 <li>JSON result format reading</li>
110 <li><code>MINUS</code></li>
111 <li><em>Property Paths</em>: These are likely never be supported
112 since it is a lot of work (estimate: 3 months full time) and might
113 need multiple new APIs to talk to the storage layer.</li>
114 <li><code>SERVICE</code>: Part of federated query</li>
115 </ul>
116
117 <p>Out of scope parts of SPARQL 1.1:</p>
118 <ul>
119 <li>Entailment and inference: Rasqal is not an inference engine</li>
120 <li><em>SPARQL Federated Query</em></li>
121 <li><em>SPARQL Update</em> (also called SPARQL Protocol): The Update
122 syntax is parsed with parser name 'sparql-update' but nothing is
123 executed inside Rasqal. Supporting SPARQL Update requires a protocol
124 server that responds to requests to perform operations on a graph
125 store. Rasqal is a query library and does not have an event loop or
126 triple store.
127 <a href="http://www.aelius.com/njh/redstore/">Redstore</a> is a system
128 supporting SPARQL Update and Service Description built with Rasqal by
129 using Redland librdf for graph storage and query.</li>
130 </ul>
131
132 <p>The details on the Rasqal support for SPARQL 1.1 can be found at the
133 <a href="https://github.com/dajobe/redland-testing/blob/master/annotations/sparql11.md">rasqal testing SPARQL 1.1 page</a>
134 which shows the SPARQL 1.1 tests that fail and any diagnosis.
135 </p>
136
137
138
139 <h3>LAQRS Adds to Querying RDF in SPARQL (LAQRS)</h3>
140
141 <p>
142 <a href="http://www.dajobe.org/2007/04/laqrs/">LAQRS</a> is
143 an <b>experimental</b> set of syntax extensions for SPARQL. The
144 syntax and features may change at any time. At present Rasqal
145 provides parsing and API support for alternate update syntaxes,
146 the <code>EXPLAIN</code> keyword, plus executing a few experimental
147 extension functions:
148 <code>NOW()</code> / <code>CURRENT_DATETIME()</code>,
149 <code>FROM_UNIXTIME()</code> and
150 <code>TO_UNIXTIME()</code>.
151 </p>
152
153
154 <h2>Installation and Documentation</h2>
155
156 <p>The public API is described in the
157 <a href="docs/api/index.html">API reference</a>.
158 It is demonstrated in the
159 <a href="roqet.html">roqet</a>
160 utility program which shows how to call the query engine and
161 operate over the query results. When Rasqal is used inside
162 <a href="http://librdf.org/">Redland</a>,
163 the Redland documentation explains
164 how to call the query engine and contains several example programs.
165 </p>
166
167 <p>To build and install Rasqal from sources see the
168 <a href="INSTALL.html">Installation document</a>.
169 </p>
170
171
172 <h2>Sources</h2>
173
174 <p>The packaged sources are available from
175 <a href="http://download.librdf.org/source/">http://download.librdf.org/source/</a>.
176 The development GIT sources can also be
177 <a href="http://github.com/dajobe/rasqal">browsed on GitHub</a>
178 or checked out at git://github.com/dajobe/rasqal.git
179 </p>
180
181 <p>Rasqal requires <a href="http://librdf.org/raptor/">Raptor</a> 2.0.7
182 or newer to build and run, which can be downloaded from the same area
183 as the Rasqal source and binaries.</p>
184
185
186 <h2>License</h2>
187
188 <p>This library is free software / open source software released
189 under the LGPL (GPL) or Apache 2.0 licenses. See
190 <a href="LICENSE.html">LICENSE.html</a> for full details.</p>
191
192
193 <h2>Mailing Lists</h2>
194
195 <p>The
196 <a href="http://librdf.org/lists/">Redland mailing lists</a>
197 discusses the development and use of Rasqal and Redland as well as
198 future plans and announcement of releases.</p>
199
200 <hr />
201
202 <p>Copyright (C) 2003-2014 <a href="http://www.dajobe.org/">Dave Beckett</a><br />Copyright (C) 2003-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p>
203
204 </body>
205 </html>