| 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 - Release Notes</title> |
| 6 | </head> |
| 7 | <body> |
| 8 | |
| 9 | <h1>Rasqal RDF Query Library - Release Notes</h1> |
| 10 | |
| 11 | <h2 id="rel0_9_33"><a name="rel0_9_33">Rasqal 0.9.33 changes</a></h2> |
| 12 | |
| 13 | <p>Issues Fixed:</p> |
| 14 | <ul> |
| 15 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=546">0000546</a>: Can't take query from URI when using -p</li> |
| 16 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=568">0000568</a>: Filter expression with division does not work</li> |
| 17 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=583">0000583</a>: CONSTRUCT halts at a template triple with unbound variable</li> |
| 18 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=588">0000588</a>: roqet: select from SERVICE returns all NULLs</li> |
| 19 | </ul> |
| 20 | |
| 21 | <h3>SPARQL changes</h3> |
| 22 | |
| 23 | <p>Fixed <code>BASE</code> to override any API base URI.</p> |
| 24 | |
| 25 | |
| 26 | <h3>Datetime class changes</h3> |
| 27 | |
| 28 | <p>Fixed storing timezone minutes correctly.</p> |
| 29 | |
| 30 | |
| 31 | <h3>Graph pattern class changes</h3> |
| 32 | |
| 33 | <p>Added new getter functions |
| 34 | <code>rasqal_graph_pattern_get_triples()</code>, |
| 35 | <code>rasqal_literal_get_type()</code> |
| 36 | and <code>rasqal_literal_get_language()</code> |
| 37 | from <a href="https://github.com/dajobe/rasqal/pull/1">Pull Request #1</a> |
| 38 | by Cosmin Basca. Thanks. |
| 39 | </p> |
| 40 | |
| 41 | |
| 42 | <h3>Query engine changes</h3> |
| 43 | |
| 44 | <p>Fixed the aggregation total evaluation of <code>AVG</code>.</p> |
| 45 | |
| 46 | <p>Fixed <code>STRBEFORE</code> and <code>STRAFTER</code> evaluation |
| 47 | to match languages if present and add the needle language to the |
| 48 | result.</p> |
| 49 | |
| 50 | <p>Fixed <code>CONCAT()</code> evaluation to return the correct types |
| 51 | and languages.</p> |
| 52 | |
| 53 | <p>Sorting now uses sort utility function |
| 54 | <code>raptor_sort_r()</code> with context args provided by Raptor |
| 55 | 2.0.15+ or an internal simple (not so performant) replacement, if too |
| 56 | old.</p> |
| 57 | |
| 58 | |
| 59 | <h3>Query result class changes</h3> |
| 60 | Can write variable bindings query results in <a href="http://contextknowledgesystems.org/CKS.html">mKR relation</a> CSV format.<br /> |
| 61 | |
| 62 | <h3>Query result class changes</h3> |
| 63 | |
| 64 | <p>Made internal changes to support reading and writing boolean |
| 65 | result formats. That means |
| 66 | <code>rasqal_query_results_formatter_read()</code> may now return |
| 67 | boolean results if the formatter supports it, such as SPARQL XML. |
| 68 | </p> |
| 69 | |
| 70 | <p>Added <code>rasqal_new_query_results_from_string()</code> to make |
| 71 | a query results from a string (with optional length). The results |
| 72 | format is guessed from the input data - base_uri and string content |
| 73 | using <code>rasqal_world_guess_query_results_format_name()</code>. |
| 74 | </p> |
| 75 | |
| 76 | <p>Added <code>rasqal_query_results_formats_check2()</code> |
| 77 | deprecating <code>rasqal_query_results_formats_check()</code>. |
| 78 | The API change is due to the return value; the result is now |
| 79 | non-0 if the format exists. |
| 80 | </p> |
| 81 | |
| 82 | <p>Added <code>rasqal_new_query_results2()</code> deprecating |
| 83 | <code>rasqal_new_query_results()</code> removing the now |
| 84 | ignored <code>vars_table</code> parameter. A query result |
| 85 | now manages it's own variables table.</p> |
| 86 | |
| 87 | <h3>Results class changes</h3> |
| 88 | |
| 89 | <p>Fixed returning the correct variables count for reading SPARQL XML |
| 90 | results sets. This caused some queries to fail if the projected |
| 91 | variables count did not match the count in the result set. |
| 92 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=588">Issue #0000588</a> |
| 93 | </p> |
| 94 | |
| 95 | <h3>Variables table class changes</h3> |
| 96 | |
| 97 | <p>Added <code>rasqal_variables_table_add2()</code> deprecating |
| 98 | <code>rasqal_variables_table_add()</code>. This takes a more |
| 99 | sensible argument style with copying the input parameters name and |
| 100 | value, and allowing name length to be optionally given. This results |
| 101 | in smaller calling code and better ownership semantics. |
| 102 | </p> |
| 103 | |
| 104 | <h3>Utility changes</h3> |
| 105 | |
| 106 | <p><code>roqet(1)</code> now supports using a URI or local file to |
| 107 | send to a SPARQL protocol service URI. |
| 108 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=546">Issue #0000546</a> |
| 109 | </p> |
| 110 | |
| 111 | <h3>Other changes</h3> |
| 112 | |
| 113 | <p>Fixes to make Rasqal build in Travis CI, testing against newest |
| 114 | and oldest raptors.</p> |
| 115 | |
| 116 | <p>Use <code>__FUNCTION__</code> (c99) replacing |
| 117 | <code>__func__</code> (c90) in debug macros.</p> |
| 118 | |
| 119 | <p>Fixes in |
| 120 | <a href="https://github.com/dajobe/rasqal/pull/3">Pull Request #3</a> |
| 121 | for building with icc from Sebastian Freundt. Thanks.</p> |
| 122 | |
| 123 | <p>Many code quality fixes from clang and coverity primarily in error |
| 124 | path cleanups (out of memory cases) and dead code.</p> |
| 125 | |
| 126 | <p>Updated the fix-flex and fix-bison scripts to remove dead |
| 127 | code that clang and coverity complain about.</p> |
| 128 | |
| 129 | <p>Added new C testrunner utility to run the tests to eventually |
| 130 | replace the (perl) improve and check-sparql scripts. |
| 131 | </p> |
| 132 | |
| 133 | <p>Fixed some API changelog mistakes.</p> |
| 134 | |
| 135 | <p>Updated gcc / clang warning args used (-Wxxxx) and made multiple |
| 136 | minor code fixes such as replacing %d with %u in debug messages or |
| 137 | adding missing default: to switches even when all cases were |
| 138 | covered.</p> |
| 139 | |
| 140 | <p>Added many more internal casts to make -Wconversion happier when |
| 141 | enabled.</p> |
| 142 | |
| 143 | |
| 144 | <h2 id="rel0_9_32"><a name="rel0_9_32">Rasqal 0.9.32 changes</a></h2> |
| 145 | |
| 146 | <p>Issues Fixed:</p> |
| 147 | <ul> |
| 148 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=558">0000558</a>: sparql11-update causes fallback to sparql10</li> |
| 149 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=560">0000560</a>: "--with-pcre-config" documented but not supported</li> |
| 150 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=561">0000561</a>: 'make check' fails; possibly because raptor2 built in separate directory</li> |
| 151 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=564">0000564</a>: Rasqal fails with linker error for armv7 cross-compilation: duplicate symbol _main</li> |
| 152 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=567">0000567</a>: Segfault based on documentation recommendation</li> |
| 153 | </ul> |
| 154 | |
| 155 | <h3>SPARQL changes</h3> |
| 156 | |
| 157 | <p>Fixed the SPARQL 1.0 and SPARQL 1.1 syntax feature checking so |
| 158 | that language <code>sparql11-update</code> allows all SPARQL 1.1 |
| 159 | syntax features to be used. |
| 160 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=558">Issue #0000558</a> |
| 161 | </p> |
| 162 | |
| 163 | <p>Updated the SPARQL parser to use and require Bison 3.0 (for |
| 164 | maintainer, building from GIT sources). |
| 165 | </p> |
| 166 | |
| 167 | <p>Updated the SPARQL lexer for Bison 3.0. |
| 168 | </p> |
| 169 | |
| 170 | |
| 171 | <h3>API changes</h3> |
| 172 | |
| 173 | <p>Made <code>rasqal_new_query()</code> match the documentation in |
| 174 | accepting a <code>NULL</code> name. |
| 175 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=567">Issue #0000567</a> |
| 176 | </p> |
| 177 | |
| 178 | |
| 179 | <h3>Configuration changes</h3> |
| 180 | |
| 181 | <p>Make ossp work as a UUID library option. |
| 182 | <code>--with-uuid-library=ossp</code> and automatic discovery of ossp |
| 183 | UUID now work. Fixed the inclusion of OSSP's uuid.h header.</p> |
| 184 | |
| 185 | <p>Fix the searching for the pcre-config and libgcrypt-config |
| 186 | configuration utilities. This probably never worked unless the |
| 187 | envariables form (<code>PCRE_CONFIG</code> and |
| 188 | <code>LIBGCRYPT_CONFIG</code>) were set. |
| 189 | </p> |
| 190 | |
| 191 | <p>Added a new internal <code>to-ntriples</code> utility to remove all |
| 192 | use of <code>rapper(1)</code> so that the raptor utilities do not |
| 193 | need to be available for running tests with 'make check'. |
| 194 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=561">Issue #0000561</a> |
| 195 | </p> |
| 196 | |
| 197 | <p>Make <code>--with-libgcrypt-config</code> work. |
| 198 | </p> |
| 199 | |
| 200 | <p>Make <code>--with-pcre-config</code> work. |
| 201 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=560">Issue# 0000560</a> |
| 202 | </p> |
| 203 | |
| 204 | <p>Fix noisy mhash_dir addition error; it was always added the cflags |
| 205 | and includes even when mhash_dir was blank.</p> |
| 206 | |
| 207 | <p>Improve raptor missing / too old error message.</p> |
| 208 | |
| 209 | <h3>Other changes</h3> |
| 210 | |
| 211 | <p>Mention libmtwist near <code>--with-random-approach.</code> |
| 212 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=561">Issue #0000561</a> |
| 213 | </p> |
| 214 | |
| 215 | <h3>Internal changes</h3> |
| 216 | |
| 217 | <p>Add more STANDALONE if/ifndef STANDALONE blocks around internal |
| 218 | code or functions used in tests.</p> |
| 219 | |
| 220 | <p>Make <code>rasqal_xsd_check_double_format()</code> an internal |
| 221 | non-static symbol. |
| 222 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=564">Issue #0000564</a> |
| 223 | </p> |
| 224 | |
| 225 | |
| 226 | <h2 id="rel0_9_31"><a name="rel0_9_31">Rasqal 0.9.31 changes</a></h2> |
| 227 | |
| 228 | <p>Issues Fixed:</p> |
| 229 | <ul> |
| 230 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=527">0000527</a>: segmentation fault in roqet when making a SPARQL SERVICE query that returns an HTTP error</li> |
| 231 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=536">0000536</a>: configure accepts bogus values for --with-xml2-config</li> |
| 232 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=537">0000537</a>: configure pkg-config checks not overridable</li> |
| 233 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=538">0000538</a>: work around MSVC 2008's inexcusable lack of stdint.h header</li> |
| 234 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=539">0000539</a>: win32_rasqal_config.h doesn't work on MSVC2008</li> |
| 235 | </ul> |
| 236 | |
| 237 | |
| 238 | <h3><code>roqet(1)</code> utility changes</h3> |
| 239 | |
| 240 | <p><code>roqet(1)</code> gains a new operating mode: reading query |
| 241 | result files in a given format and generating them in different |
| 242 | format. This means it can be used to convert result formats. |
| 243 | Use this mode with the <code>-t RESULT-FILE</code> major option |
| 244 | and <code>-R INPUT-RESULT-FORMAT</code> to set the input format. |
| 245 | <code>-r OUTPUT-RESULT-FORMAT</code> can be used to set the output |
| 246 | format.</p> |
| 247 | <pre> |
| 248 | # Convert a SPARQL TSV result to XML |
| 249 | $ roqet -t result.tsv -R tsv -r xml |
| 250 | |
| 251 | # Convert a SPARQL XML result (default input format) to TSV |
| 252 | $ roqet -t result.srx -r tsv |
| 253 | </pre> |
| 254 | |
| 255 | <p>Tidied and improved the help and error messages.</p> |
| 256 | |
| 257 | <p>The utility now supports <code>-r simple</code> / <code>--results |
| 258 | simple</code> as it says in the documentation.</p> |
| 259 | |
| 260 | <p>The debug result format now prints 'row:' when writing. (This |
| 261 | format has always promised it may change).</p> |
| 262 | |
| 263 | |
| 264 | <h3>Query result changes</h3> |
| 265 | |
| 266 | <p>Added support for reading the |
| 267 | <a href="http://www.w3.org/TR/2013/REC-sparql11-results-csv-tsv-20130321/">SPARQL 1.1 Query Results CSV and TSV Formats</a> |
| 268 | W3C Recommendation, 21 March 2013. Writing support already existed. |
| 269 | This is a modular addition so the APIs that handle reading results |
| 270 | automatically get this support.</p> |
| 271 | |
| 272 | <p>Added <code>rasqal_query_results_type_label()</code> to get a |
| 273 | string label for a <code>rasqal_query_results_type</code>.</p> |
| 274 | |
| 275 | |
| 276 | <h3>Query engine changes</h3> |
| 277 | |
| 278 | <p>Internal work to support executing the SERVICE graph pattern.</p> |
| 279 | |
| 280 | <p>Query engine can execute the new <code>VALUES</code> graph |
| 281 | pattern.</p> |
| 282 | |
| 283 | <p>SPARQL lexer and parser handles <code>VALUES</code> replacing the |
| 284 | old <code>BINDINGS</code> syntax.</p> |
| 285 | |
| 286 | <p>Fixed crash when a SERVICE returns no rowsource. |
| 287 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=527">Issue #0000527</a> |
| 288 | </p> |
| 289 | |
| 290 | <p>Added proper validation of xsd:double and xsd:float literal format.</p> |
| 291 | |
| 292 | <p>Correctly handle <code>GROUP BY</code> over no data - returning |
| 293 | one row with all bindings missing.</p> |
| 294 | |
| 295 | <p>Literal languages are now normalized to lowercase (RDF Concepts)</p> |
| 296 | |
| 297 | |
| 298 | <h3>API changes</h3> |
| 299 | |
| 300 | <p><code>rasqal_prefix_id()</code> now uses a q rather than _ to help |
| 301 | raptor N-Triples 2008 conformance.</p> |
| 302 | |
| 303 | <p>Improved SPARQL 1.1 query formatter to handle <code>VALUES</code> |
| 304 | forms and to print in a prettier form with better indenting.</p> |
| 305 | |
| 306 | <p><code>rasqal_graph_pattern_op</code> gains |
| 307 | <code>RASQAL_GRAPH_PATTERN_OPERATOR_VALUES</code></p> |
| 308 | |
| 309 | <p><code>rasqal_new_rowsource_from_handler()</code> now allows a NULL |
| 310 | query so that rowsources can be fully independent of a query, such as |
| 311 | when building from a syntax string or other independent object.</p> |
| 312 | |
| 313 | <p><code>rasqal_new_rowsequence_rowsource()</code> now allows an empty |
| 314 | sequence of rows.</p> |
| 315 | |
| 316 | |
| 317 | <h3>Portability changes</h3> |
| 318 | |
| 319 | <p>Win32 build fix patches from Michael Stahl: |
| 320 | Fixes Issues |
| 321 | <a href="http://bugs.librdf.org/mantis/view.php?id=539">#0000539</a> |
| 322 | and |
| 323 | <a href="http://bugs.librdf.org/mantis/view.php?id=538">#0000538</a> |
| 324 | </p> |
| 325 | |
| 326 | |
| 327 | <h3>Configuration and build changes</h3> |
| 328 | |
| 329 | <p>Added new internal convienience library |
| 330 | <a href="https://github.com/dajobe/libsv">libsv</a> |
| 331 | providing support for reading CSV and TSV files (and others |
| 332 | potentially). Required for the updated support for reading SPARQL |
| 333 | CSV and TSV result formats. |
| 334 | </p> |
| 335 | |
| 336 | <p>Added new librasqalcmdline convienience library to share code |
| 337 | between <code>roqet(1)</code> and <code>check-query</code> (under |
| 338 | development, not installed).</p> |
| 339 | |
| 340 | <p>Build internal libmtwist, libgetopt (new) as libtool convienience |
| 341 | libraries to stop automake moans about subdir-objects.</p> |
| 342 | |
| 343 | <p><code>configure</code> was fixed to correctly find and use OSSP |
| 344 | libuuid even in the presence of half installed / broken UUID systems |
| 345 | like on OSX where just the headers are present.</p> |
| 346 | |
| 347 | <p>Fixes for building with parallel make such as <code>make -jN</code></p> |
| 348 | |
| 349 | <p>Fixed alignments and error paths found via clang.</p> |
| 350 | |
| 351 | <p><code>configure</code> now uses PKG_CHECK_MODULES() to enable |
| 352 | overriding discovery of pkg-config if needed. |
| 353 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=537">Issue #0000537</a> |
| 354 | </p> |
| 355 | |
| 356 | <p>Fix crash if <code>xml2-config(1)</code> when pointed at a non |
| 357 | executable file. Patch from Michael Stahl |
| 358 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=536">Issue #0000536</a> |
| 359 | </p> |
| 360 | |
| 361 | <p><code>configure</code> ensures CPPFLAGS can be passed through |
| 362 | without destruction. This helps |
| 363 | <a href="https://wiki.debian.org/Hardening">Debian hardening</a> |
| 364 | </p> |
| 365 | |
| 366 | <p>Removed the need for Perl XML::DOM to be installed in order for |
| 367 | 'make test' to run via <code>check-sparql</code>. This requires |
| 368 | the <code>roqet(1)</code> new '-'t mode. |
| 369 | </p> |
| 370 | |
| 371 | <p>Add a <code>configure</code> check for the debugging |
| 372 | <code>__func__</code> so that on systems where it does not exist the |
| 373 | debug macros work. It may or may not be a macro, so it cannot be |
| 374 | tested with #ifdef in the CPP.</p> |
| 375 | |
| 376 | <p>Improved the <code>configure</code> check for Flex to allow it to |
| 377 | be missing for non-maintainer mode.</p> |
| 378 | |
| 379 | |
| 380 | <h3>Other changes</h3> |
| 381 | |
| 382 | <p>Flex code generation updates - now recommend flex 2.5.36.</p> |
| 383 | |
| 384 | <p>Fixes in tests data for N-Triples conformance that is checked by |
| 385 | newer Raptor.</p> |
| 386 | |
| 387 | |
| 388 | |
| 389 | <h2 id="rel0_9_30"><a name="rel0_9_30">Rasqal 0.9.30 changes</a></h2> |
| 390 | |
| 391 | <p>Removed RDQL support as promised. So long and thanks for all the |
| 392 | queries. Use SPARQL instead. |
| 393 | </p> |
| 394 | |
| 395 | <p>Issues Fixed:</p> |
| 396 | <ul> |
| 397 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=506">0000506</a>: configure.ac has bash -specific (non-POSIX) == syntax</li> |
| 398 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=511">0000511</a>: Add support for OSSP UUID library</li> |
| 399 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=517">0000517</a>: Autoconf errors when checking for several headers and cross-compiling</li> |
| 400 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=523">0000523</a>: mpfr dependency</li> |
| 401 | </ul> |
| 402 | |
| 403 | |
| 404 | <h3>Decimal class changes</h3> |
| 405 | |
| 406 | <p><code>rasqal_xsd_decimal_is_zero()</code> now uses <code>fabs()</code> |
| 407 | and an epsilon approach for C99 decimal mode.</p> |
| 408 | |
| 409 | <p>Make <code>rasqal_xsd_decimal_compare()</code> work for C99 |
| 410 | decimal mode.</p> |
| 411 | |
| 412 | <p><code>rasqal_xsd_decimal_compare()</code> and |
| 413 | <code>rasqal_xsd_decimal_equals()</code> use Knuth's approximate |
| 414 | equality as decribed below. |
| 415 | </p> |
| 416 | |
| 417 | |
| 418 | <h3>Literal class changes</h3> |
| 419 | |
| 420 | <p>Return rdf term type string from |
| 421 | <code>rasqal_literal_get_rdf_term_type()</code> for integer subtypes |
| 422 | (<code>RASQAL_LITERAL_INTEGER_SUBTYPE</code>). |
| 423 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=519">Issue #0000519</a> |
| 424 | (Redland librdf)</p> |
| 425 | |
| 426 | <p><code>rasqal_literal_to_result_term()</code> now returns NULL on |
| 427 | an alloc failure.</p> |
| 428 | |
| 429 | <p><code>rasqal_new_floating_literal()</code> added, deprecating |
| 430 | <code>rasqal_new_float_literal()</code> and takes the float type |
| 431 | as an argument. |
| 432 | </p> |
| 433 | |
| 434 | |
| 435 | <h3>Query engine changes</h3> |
| 436 | |
| 437 | <p>Fix some wrong data size allocs found by clang in Project |
| 438 | rowsource.</p> |
| 439 | |
| 440 | <p>Take more care in promoting literals to float and exceeding the |
| 441 | range; turn them into doubles if that happens.</p> |
| 442 | |
| 443 | <p>Floating and double comparisons and equality use a proper epsilon |
| 444 | check using Knuth's approximate comparison approach, rather than =. |
| 445 | Affects |
| 446 | <code>rasqal_literal_as_boolean()</code>, |
| 447 | <code>rasqal_literal_equals()</code>, |
| 448 | <code>rasqal_xsd_decimal_compare()</code>, |
| 449 | <code>rasqal_xsd_decimal_equals()</code> |
| 450 | and other internal methods. |
| 451 | </p> |
| 452 | |
| 453 | |
| 454 | <h3>Query language changes</h3> |
| 455 | |
| 456 | <p>Updated the SPARQL syntax to support <code>integer^^uri-ref</code>. |
| 457 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=519">Issue #0000519</a> (Redland librdf) |
| 458 | </p> |
| 459 | |
| 460 | <p>Removed RDQL support as promised. So long and thanks for all the queries. |
| 461 | Use SPARQL instead. |
| 462 | </p> |
| 463 | |
| 464 | |
| 465 | <h3>Portability changes</h3> |
| 466 | |
| 467 | <p>Test for <code>mpfr_snprintf()</code> specifically which appeared |
| 468 | in MPFR 2.4.0. |
| 469 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=523">Issue #0000523</a> |
| 470 | </p> |
| 471 | |
| 472 | <p>The Bison minimum version is now 2.0 (from 2004-12-25) until we |
| 473 | hear otherwise.</p> |
| 474 | |
| 475 | <p>Use <code>RASQAL_DISABLE_DEPRECATED</code> to flag out deprecated |
| 476 | implementation code. Call gtkdoc-scan with the deprecated guard. |
| 477 | </p> |
| 478 | |
| 479 | <p>Use <code>#if defined(RASQAL_DEBUG)</code> to help |
| 480 | portability when it's not defined.</p> |
| 481 | |
| 482 | <p>Added good and bad cast macros for checking of type truncation. |
| 483 | Helped remove compiler warnings.</p> |
| 484 | |
| 485 | |
| 486 | <h3>Configuration changes</h3> |
| 487 | |
| 488 | <p>Make <code>configure</code> handle Apple |
| 489 | <code>/usr/bin/flex</code> which adds an extra field so awk |
| 490 | <code>$NF</code> did not work.</p> |
| 491 | |
| 492 | <p><code>configure</code> now supports finding UUID support inside |
| 493 | libc for OSX. |
| 494 | </p> |
| 495 | |
| 496 | <p>Fix some <code>configure</code> portability with non-POSIX bash |
| 497 | syntax and adding some -W flags to autotool calls. |
| 498 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=506">Issue #0000506</a> |
| 499 | </p> |
| 500 | |
| 501 | <p>Updated <code>autogen.sh</code> to abort run if a configuring |
| 502 | program fails, generate NEWS with old timestamp if missing so |
| 503 | automake can run and some small doc and message updates.</p> |
| 504 | |
| 505 | |
| 506 | |
| 507 | <h2 id="rel0_9_29"><a name="rel0_9_29">Rasqal 0.9.29 changes</a></h2> |
| 508 | |
| 509 | <p>Rasqal fully supports SPARQL 1.0 from this release. All the |
| 510 | approved tests pass.</p> |
| 511 | |
| 512 | <p>Requires <a href="http://librdf.org/raptor/">Raptor</a> 2.0.7 or newer.</p> |
| 513 | |
| 514 | <p>RDQL query language support will be removed in the next |
| 515 | release. SPARQL has been available for 4 years and is fully |
| 516 | supported.</p> |
| 517 | |
| 518 | <p>Add support for SPARQL 1.1 draft <code>UUID()</code> and |
| 519 | <code>STRUUID()</code>.</p> |
| 520 | |
| 521 | <p>Issues Fixed:</p> |
| 522 | <ul> |
| 523 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=493">0000493</a>: Offset in sub-select results in no rows at all.</li> |
| 524 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=494">0000494</a>: Temp buffer to small.</li> |
| 525 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=504">0000504</a>: rasqal_regex_replace() is not public</li> |
| 526 | </ul> |
| 527 | |
| 528 | |
| 529 | <h3>Datatype changes</h3> |
| 530 | |
| 531 | <p>Added a new datatype |
| 532 | <code>rasqal_xsd_date</code> class for XSD with literal enum |
| 533 | <code>RASQAL_LITERAL_DATE</code>, constructor |
| 534 | <code>rasqal_new_xsd_date()</code>, destructor |
| 535 | <code>rasqal_free_xsd_datetime()</code> and core methods |
| 536 | <code>rasqal_xsd_date_to_counted_string()</code>, |
| 537 | <code>rasqal_xsd_date_to_string()</code> |
| 538 | <code>rasqal_xsd_date_equals()</code> (returning incomparible) and |
| 539 | <code>rasqal_xsd_date_compare()</code>. |
| 540 | </p> |
| 541 | |
| 542 | <p>The <code>rasqal_xsd_datetime</code> and new date class above both |
| 543 | get the same new fields for comparing datetimes and dates: |
| 544 | <code>time_on_timeline</code> and <code>have_tz</code> to record the |
| 545 | three timezone possibilities: none ('N'), zulu ('Z') or numeric |
| 546 | ('Y'). A "time on timeline" value is calculated on construction |
| 547 | and the field values are not normalized. |
| 548 | </p> |
| 549 | |
| 550 | <p>Added <code>rasqal_xsd_datetime_equals2</code> deprecating |
| 551 | <code>rasqal_xsd_datetime_equals</code> and returning and |
| 552 | incomparible flag to caller. |
| 553 | </p> |
| 554 | |
| 555 | <p>Added <code>rasqal_xsd_datetime_compare2()</code> deprecating |
| 556 | <code>rasqal_xsd_datetime_compare()</code> and returning the |
| 557 | incomparible state between datetimes. The new |
| 558 | <code>rasqal_xsd_date_compare()</code> uses this signature. |
| 559 | </p> |
| 560 | |
| 561 | <p>Added new <code>rasqal_new_xsd_datetime_from_xsd_date()</code> |
| 562 | datetime constructor to build a datetime from a date.</p> |
| 563 | |
| 564 | <p>Correct the buffer size in |
| 565 | <code>rasqal_xsd_datetime_get_seconds_as_decimal()</code> |
| 566 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=494">Issue #0000494</a> |
| 567 | </p> |
| 568 | |
| 569 | |
| 570 | <h3>Graph pattern class changes</h3> |
| 571 | |
| 572 | <p>Added <code>rasqal_query_graph_pattern_visit2()</code> deprecating |
| 573 | <code>rasqal_query_graph_pattern_visit()</code> |
| 574 | </p> |
| 575 | |
| 576 | |
| 577 | <h3>Literal class changes</h3> |
| 578 | |
| 579 | <p>Enum <code>rasqal_op</code> gains new tokens |
| 580 | <code>RASQAL_EXPR_UUID</code> and <code>RASQAL_EXPR_STRUUID</code> |
| 581 | for the new SPARQL 1.1 draft <code>UUID()</code> and |
| 582 | <code>STRUUID</code> built-in functions.</p> |
| 583 | |
| 584 | <p><code>rasqal_literal_divide()</code> result is now a decimal if |
| 585 | both args are integer - rule from XPath F&O; |
| 586 | </p> |
| 587 | |
| 588 | <p>Added support for the XSD:Date datatype with a new |
| 589 | <code>rasqal_literal_type</code> enum value |
| 590 | <code>RASQAL_LITERAL_DATE</code>. Updated the literal code including |
| 591 | the constructor <code>rasqal_new_numeric_literal()</code> to |
| 592 | auto-convert to the internal format as well as the core literal |
| 593 | methods. |
| 594 | </p> |
| 595 | |
| 596 | |
| 597 | <h3>Query engine changes</h3> |
| 598 | |
| 599 | <p>The rules for in-scope variables for <code>FILTER</code> were |
| 600 | corrected to match the SPARQL 1.0 semantics. This fixed the last |
| 601 | remaining failure Rasqal had for the SPARQL 1.0 approved test cases. |
| 602 | </p> |
| 603 | |
| 604 | <p><code>DISTINCT</code> now |
| 605 | compares using RDF term comparison not value comparison so now "" is |
| 606 | distinct from ""^^xsd:string. This has a consquence of making RDQL |
| 607 | test B-01 as failing but this is no loss. Relatedly, RDQL support |
| 608 | will be removed in the next release. |
| 609 | </p> |
| 610 | |
| 611 | <p>Handle errors found in aggregation expressions following SPARQL |
| 612 | standard.</p> |
| 613 | |
| 614 | <p>Fix blank node generation when made in a <code>CONSTRUCT</code> to |
| 615 | match SPARQL standard. |
| 616 | </p> |
| 617 | |
| 618 | <p>Make limit and offset check work properly in a subquery. |
| 619 | Fixes |
| 620 | <a href="http://bugs.librdf.org/mantis/view.php?id=493">Issue #0000493</a> |
| 621 | </p> |
| 622 | |
| 623 | <p>Added support for executing SPARQL 1.1 draft <code>UUID()</code> |
| 624 | and <code>STRUUID</code> using either libuuid or internal random API |
| 625 | that backs executing <code>RAND()</code>. |
| 626 | </p> |
| 627 | |
| 628 | <h3>Resilience changes</h3> |
| 629 | |
| 630 | <p>Ran entire SPARQL 1.0 and 1.1 test suite through Rasqal and |
| 631 | valgrind to check for reference loss and memory leaks. Fixed several |
| 632 | issues in newer code.</p> |
| 633 | |
| 634 | <p>Fixed several code issues with unused values found by clang. Or |
| 635 | changed code that was correct to make clang moan less.</p> |
| 636 | |
| 637 | <p>Add code marking of good and bad type casts using macros |
| 638 | <code>RASQAL_GOOD_CAST</code> and <code>RASQAL_BAD_CAST</code> |
| 639 | macros.</p> |
| 640 | |
| 641 | <h3>Other changes</h3> |
| 642 | |
| 643 | <p>The <code>configure</code> test for libgcrypt as a digest backend |
| 644 | now works; it really didn't before now. Added option |
| 645 | <code>--with-libgcrypt-config=PATH</code> to allow selecting the path |
| 646 | to the <code>libgcrypt-config</code>. mhash remains the preferred |
| 647 | hash digest library as it provides more digests and is more commonly |
| 648 | available. |
| 649 | </p> |
| 650 | |
| 651 | <p><code>configure</code> now looks for libuuid with |
| 652 | <code>pkg-config</code> to back the SPARQL 1.1 UUID generation |
| 653 | support. The UUID backend can be selected with new configure |
| 654 | option <code>--uuid-library=NAME</code></p> |
| 655 | |
| 656 | <p>Made <code>rasqal_regex_replace()</code> public with same |
| 657 | signature as the internal API. |
| 658 | Fixes |
| 659 | <a href="http://bugs.librdf.org/mantis/view.php?id=504">Issue #0000504</a> |
| 660 | </p> |
| 661 | |
| 662 | <p>The <code>tests/sparql/check-sparql</code> test runner was updated |
| 663 | to understand more of the manifest vocabulary. |
| 664 | </p> |
| 665 | |
| 666 | <p>Building from GIT now requires automake 1.11.2+ for the |
| 667 | <code>-Wextra-portability</code> option. |
| 668 | </p> |
| 669 | |
| 670 | <p>Added <code>-d none</code> to <code>roqet(1)</code> arguments so |
| 671 | it is possible disable debug output on the command line (default). |
| 672 | </p> |
| 673 | |
| 674 | |
| 675 | <h2 id="rel0_9_28"><a name="rel0_9_28">Rasqal 0.9.28 changes</a></h2> |
| 676 | |
| 677 | <p>Issues Fixed:</p> |
| 678 | <ul> |
| 679 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=466">0000466</a>: zero size calloc does not return object (src/rasqal_row.c)</li> |
| 680 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=467">0000467</a>: Tests fail because diff doesn't accept -u flag</li> |
| 681 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=470">0000470</a>: snprintf portability issues</li> |
| 682 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=471">0000471</a>: Compile error when RASQAL_DEBUG set to > 1</li> |
| 683 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=474">0000474</a>: roqet flags listed in help, but not recognised</li> |
| 684 | </ul> |
| 685 | |
| 686 | |
| 687 | <h3>SPARQL changes</h3> |
| 688 | |
| 689 | <p>The language name '<code>sparql</code>' is now SPARQL 1.1 |
| 690 | </p> |
| 691 | |
| 692 | <p>Added support for SPARQL 1.1 draft string functions |
| 693 | <code>STRBEFORE()</code>, <code>STRAFTER()</code> |
| 694 | and <code>REPLACE()</code>. |
| 695 | </p> |
| 696 | |
| 697 | |
| 698 | <h3>Query engine changes</h3> |
| 699 | |
| 700 | <p>Add parsing and evaluation support for SPARQL 1.1 draft STRBEFORE |
| 701 | (2 args), STRAFTER (2 args) and REPLACE (3 or 4 args). The |
| 702 | evaluation of REPLACE currently fully works for PCRE regex with |
| 703 | Unicode and works for POSIX regex without Unicode.</p> |
| 704 | |
| 705 | <p>Clear <code>errno</code> before calling <code>strtol()</code> and |
| 706 | checking the result. This caused issues when used in threaded |
| 707 | applications, even though Rasqal is not thread-safe. |
| 708 | </p> |
| 709 | |
| 710 | <p>The (psuedo) random number generation now can use a variety of |
| 711 | library random routines, defaulting to a new internal |
| 712 | <a href="https://github.com/dajobe/libmtwist">Mersenne Twister implementation - libmtwist</a>. |
| 713 | The choice of PRNG can be made with |
| 714 | <code>configure --with-random-approach=ALGO</code> to pick from |
| 715 | <code>mtwist</code> (the default), <code>gmp</code> (when GMP is |
| 716 | available and used for decimals), <code>random_r()</code>, |
| 717 | <code>rand_r()</code> then the portable but not so safe: |
| 718 | <code>random()</code> and <code>rand()</code>. |
| 719 | </p> |
| 720 | |
| 721 | |
| 722 | <h3>Expression class changes</h3> |
| 723 | |
| 724 | <p>Enum <code>rasqal_op</code> gains new tokens |
| 725 | <code>RASQAL_EXPR_STRBEFORE</code>, |
| 726 | <code>RASQAL_EXPR_STRAFTER</code> and |
| 727 | <code>RASQAL_EXPR_REPLACE</code> for the new SPARQL 1.1 string expressions. |
| 728 | <code>STRBEFORE()</code>, <code>STRAFTER()</code> |
| 729 | and <code>REPLACE()</code> respectively. |
| 730 | </p> |
| 731 | |
| 732 | <p>Added <code>rasqal_new_4op_expression()</code> to construct 3/4-arg |
| 733 | expressions. |
| 734 | </p> |
| 735 | |
| 736 | |
| 737 | <h3>Query format and query result format changes</h3> |
| 738 | |
| 739 | <p>Added the |
| 740 | <a href="http://www.w3.org/ns/formats/">W3C Format URIs</a> |
| 741 | to the JSON, XML, CSV and TSV SPARQL result formats. (Nicholas J Humfrey) |
| 742 | </p> |
| 743 | |
| 744 | <p>Corrected the SPARQL query output for LIMIT and OFFSET</p> |
| 745 | |
| 746 | <p>Handle <code><literal></literal></code> as |
| 747 | empty literal when reading in XML query results.</p> |
| 748 | |
| 749 | <h3>Other changes</h3> |
| 750 | |
| 751 | <p>Use a more comprehensive <code>configure</code> build and run test |
| 752 | for <code>ceil()</code>, <code>floor()</code> and |
| 753 | <code>round()</code> to prevent GCC optimizing it away and getting |
| 754 | the wrong answer when checking whether to link with -lm |
| 755 | </p> |
| 756 | |
| 757 | <p>Removed the obsolete -w option from the <code>roqet --help</code> |
| 758 | message which was removed from code some time ago. |
| 759 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=474">Issue 0000474</a>. |
| 760 | </p> |
| 761 | |
| 762 | <p>Prevent a gcc 4K stack size warning in a few tests. |
| 763 | </p> |
| 764 | |
| 765 | <p>Reorganized the regex code to a new regex module, adding the new |
| 766 | function <code>rasqal_regex_replace()</code> for regex search and |
| 767 | replace (all) backing SPARQL 1.1 <code>REPLACE()</code></p> |
| 768 | |
| 769 | <p>Several internal fixes for compiling with RASQAL_DEBUG > 1 |
| 770 | (Lauri Aalto) |
| 771 | Fixes |
| 772 | <a href="http://bugs.librdf.org/mantis/view.php?id=471">Issue #0000471</a> |
| 773 | </p> |
| 774 | |
| 775 | |
| 776 | <p>Remove several internal uses of <code>snprintf()</code> for simple |
| 777 | integer formatting. |
| 778 | </p> |
| 779 | |
| 780 | <p>The check-sparql utility used during 'make check' now sets the |
| 781 | DIFF envariable for check tests to allow use off GNU Diff. |
| 782 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=467">Issue #0000467</a> |
| 783 | (Peter O'Gorman / pogma) |
| 784 | </p> |
| 785 | |
| 786 | <p>Code style changes for calling <code>calloc()</code>.</p> |
| 787 | |
| 788 | <p>Do not <code>calloc()</code> with 0 count for a result row - not portable. |
| 789 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=466">Issue #0000466</a> |
| 790 | (Peter O'Gorman / pogma) |
| 791 | </p> |
| 792 | |
| 793 | <p>The <code>check_query</code> utility (which is still not complete) |
| 794 | can now handle comparing query results when sorting is involved. |
| 795 | </p> |
| 796 | |
| 797 | |
| 798 | |
| 799 | <h2 id="rel0_9_27"><a name="rel0_9_27">Rasqal 0.9.27 changes</a></h2> |
| 800 | |
| 801 | <p>Issues Fixed:</p> |
| 802 | <ul> |
| 803 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=127">0000127</a>: <code>UNION</code> graph pattern support in query engine</li> |
| 804 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=423">0000423</a>: SPARQL <code>UNION</code> with shared variables fails</li> |
| 805 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=434">0000434</a>: <code>OPTIONAL</code> and named graphs don't mix</li> |
| 806 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=454">0000454</a>: xsd:nonNegativeInteger is parsed as <code>RASQAL_LITERAL_QNAME</code> instead of <code>RASQAL_LITERAL_[INTEGER|UDT|INTEGER_SUBTYPE]</code></li> |
| 807 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=459">0000459</a>: Making a query that binds to a variable with the same name as a bnode fails</li> |
| 808 | </ul> |
| 809 | |
| 810 | |
| 811 | <h3>SPARQL changes</h3> |
| 812 | |
| 813 | <p>The parser now supports the optional <code>SILENT</code> keyword |
| 814 | for <code>SERVICE</code>.</p> |
| 815 | |
| 816 | <p>The parser now supports the <code>CONSTRUCT WHERE</code> |
| 817 | abbreviation, expanding the WHERE triples into a triple template |
| 818 | with the same triples. |
| 819 | </p> |
| 820 | |
| 821 | |
| 822 | <h3>Query engine changes</h3> |
| 823 | |
| 824 | <p>sub-<code>SELECT</code>s are now supported including those that |
| 825 | contain sorting, grouping, limiting and offset as well as projection. |
| 826 | </p> |
| 827 | |
| 828 | <p><code>CONSTRUCT</code> works when working over a query with |
| 829 | optionals. It previously stopped returning results at the first unbound |
| 830 | variable value.</p> |
| 831 | |
| 832 | <p><code>OPTIONAL</code>, sub-graph pattern groups |
| 833 | and <code>UNION</code> fully execute correctly. Fixes were made to |
| 834 | the variable scoping and join operations.</p> |
| 835 | |
| 836 | <p>A lot of refactoring was done to provide the structure to enable |
| 837 | sub-<code>SELECT</code> to be turned into a query algebra structure |
| 838 | and executed. |
| 839 | </p> |
| 840 | |
| 841 | <p>An entirely new variable scoping algorithm was implemented to |
| 842 | properly compute where a variable is assigned; the assumption was |
| 843 | removed that a variable with a given name can only be bound in one |
| 844 | place. |
| 845 | </p> |
| 846 | |
| 847 | <p>Several bugs were fixed in the join implementation which affected |
| 848 | the sub-graph pattern grouping (natural join) and optional (left |
| 849 | join). |
| 850 | </p> |
| 851 | |
| 852 | <p>Pulled new internal function |
| 853 | <code>rasqal_query_results_formatter_get_read_rowsource()</code> out |
| 854 | of <code>rasqal_service_execute()</code> to provide the structure for |
| 855 | executing <code>SERVICE</code> queries in the query engine. |
| 856 | </p> |
| 857 | |
| 858 | |
| 859 | <h3>Literal class changes</h3> |
| 860 | |
| 861 | <p><code>rasqal_new_numeric_literal_from_long()</code> added to make an |
| 862 | integer or decimal literal depending if it fits in range. |
| 863 | </p> |
| 864 | |
| 865 | <p><code>rasqal_xsd_decimal_get_long()</code> added to convert an |
| 866 | arbitrary precision decimal to a C long with an overflow error flag. |
| 867 | </p> |
| 868 | |
| 869 | <p>xsd:integer subtypes are stored and printed correctly. |
| 870 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=454">Issue #0000454</a>. |
| 871 | </p> |
| 872 | |
| 873 | |
| 874 | <h3>Query class changes</h3> |
| 875 | |
| 876 | <p><code>rasqal_query_get_distinct()</code> added to get the distinct |
| 877 | flag from <code>SELECT DISTINCT ...</code> queries. |
| 878 | </p> |
| 879 | |
| 880 | <p><code>rasqal_query_set_wildcard()</code> added to set the '*' flag |
| 881 | for <code>SELECT *</code> queries |
| 882 | </p> |
| 883 | |
| 884 | <p><code>rasqal_query_has_variable2()</code> added with variable type |
| 885 | arg deprecating <code>rasqal_query_has_variable()</code>. Note the |
| 886 | warning about using <code>RASQAL_VARIABLE_TYPE_UNKNOWN</code> is |
| 887 | ambiguous. |
| 888 | </p> |
| 889 | |
| 890 | <p>Deprecated <code>rasqal_query_has_variable()</code> for the |
| 891 | above. Lookup by any type.</p> |
| 892 | |
| 893 | <p><code>rasqal_query_set_variable2()</code> added with type arg |
| 894 | deprecating <code>rasqal_query_set_variable()</code>. Note the |
| 895 | warning about using <code>RASQAL_VARIABLE_TYPE_UNKNOWN</code> is |
| 896 | ambiguous. |
| 897 | </p> |
| 898 | |
| 899 | <p>Deprecated <code>rasqal_query_set_variable()</code> for above. |
| 900 | Lookup by any type.</p> |
| 901 | |
| 902 | |
| 903 | <h3>Query result format changes</h3> |
| 904 | |
| 905 | <p>The CSV and TSV query result formats (names <code>csv</code> |
| 906 | and <code>tsv</code> respectively) were altered to match the editor's draft |
| 907 | <a href="http://www.w3.org/2009/sparql/docs/csv-tsv-results/results-csv-tsv.html">SPARQL 1.1 Query Results CSV and TSV Formats</a> |
| 908 | which includes no header line, no result number and implementing |
| 909 | the specified quoting and end of lines in the specification. |
| 910 | </p> |
| 911 | |
| 912 | |
| 913 | <h3>Variable class changes</h3> |
| 914 | |
| 915 | <p><code>rasqal_variables_table_add_variable()</code> added to add an |
| 916 | existing variable to a variables table. |
| 917 | </p> |
| 918 | |
| 919 | <p><code>rasqal_variables_table_get_by_name()</code> added with |
| 920 | variable type arg.</p> |
| 921 | |
| 922 | <p><code>rasqal_variables_table_contains()</code> added to check |
| 923 | if a variable with the given type and name is in the variables table. |
| 924 | </p> |
| 925 | |
| 926 | <h3><code>roqet(1)</code> utility changes</h3> |
| 927 | |
| 928 | <p>Correctly order the help so the <code>-d/--dump-query</code> value |
| 929 | list appears after the option description. |
| 930 | </p> |
| 931 | |
| 932 | |
| 933 | <h3>Porting changes</h3> |
| 934 | |
| 935 | <p>Several patches were made to aid compiling on MS Windows were |
| 936 | applied based on those made by the |
| 937 | <a href="http://techbase.kde.org/Getting_Started/Build/Windows/emerge">KDE Emerge scripts to build KDE on windows</a>. |
| 938 | This includes a native replacement for the missing gettimeofday() |
| 939 | and timegm() functions. MS Windows remains an unsupported target. |
| 940 | </p> |
| 941 | |
| 942 | <h3>Other changes</h3> |
| 943 | |
| 944 | <p>The minimum Raptor version needed is now 2.0.4 |
| 945 | for the <code>raptor_bnodeid_ntriples_write()</code> function. |
| 946 | </p> |
| 947 | |
| 948 | <p>The test runner was fixed to fail the suite when there are |
| 949 | failures as well as expected failures. |
| 950 | </p> |
| 951 | |
| 952 | <p>Code style change and cleanup for alloc/free macros. New code style:</p> |
| 953 | <ol> |
| 954 | <li><code>var = RASQAL_CALLOC(type, nmem, size)</code><br /> |
| 955 | Prefering:<br /> |
| 956 | <code>var = RASQAL_CALLOC(type, 1, sizeof(*var))</code><br /> |
| 957 | when nmem = 1</li> |
| 958 | <li><code>var = RASQAL_CALLOC(type, size)</code></li> |
| 959 | <li><code>RASQAL_FREE(type, var)</code></li> |
| 960 | </ol> |
| 961 | <p>The consequence here is allocs that mostly fit into 1 line without |
| 962 | so much boilerplate and duplication of types. The |
| 963 | <code>RASQAL_MALLOC</code> and <code>RASQAL_CALLOC</code> macros now |
| 964 | do the cast to the return type. <code>RASQAL_FREE</code> takes the |
| 965 | object type too but always casts arg to void This |
| 966 | </p> |
| 967 | |
| 968 | <p>Code style change for allocating strings:</p> |
| 969 | <ol> |
| 970 | <li><code>len = strlen(); malloc(..., len + 1)</code></li> |
| 971 | <li>and <code>memcmp(..., len + 1)</code></li> |
| 972 | </ol> |
| 973 | |
| 974 | <p>Expanded GCC warnings to take advantage of newer analysis which |
| 975 | found several issues:</p> |
| 976 | <ul> |
| 977 | <li>Use of int for storing string and buffer lengths: replaced many |
| 978 | internal uses with the correct size_t for length computations.</li> |
| 979 | <li>Use of int for storing time: replaced with time_t that may be |
| 980 | larger</li> |
| 981 | <li>Use of <code>void*</code> for pointer differences: replaced |
| 982 | with <code>ptrdiff_t</code> where necessary.</li> |
| 983 | <li>Precision truncation between int and long, size_t.</li> |
| 984 | <li>Precision truncation between float and double.</li> |
| 985 | </ul> |
| 986 | |
| 987 | <p>Made several internal functions to improve the above. There |
| 988 | remain some int / size_t errors in the public API that will need new |
| 989 | API functions to properly fix for 64-bit machines dealing with |
| 990 | strings more than >32bits in length; which should be rare. |
| 991 | </p> |
| 992 | |
| 993 | <p>Reduced Rasqal's call stack size by ensuring all I/O buffers are |
| 994 | dynamically allocated. |
| 995 | </p> |
| 996 | |
| 997 | <p><code>configure</code> now always checks for where <code>ceil()</code>, |
| 998 | <code>floor()</code> and <code>round()</code> can be found: in libc |
| 999 | or libm. |
| 1000 | </p> |
| 1001 | |
| 1002 | <p>The <code>configure</code> default |
| 1003 | for <code>--enable-maintainer-mode</code> no longer enables the |
| 1004 | debugging symbols. These can be added |
| 1005 | with <code>--enable-debug</code> |
| 1006 | </p> |
| 1007 | |
| 1008 | <p>The <code>configure</code> gains an option |
| 1009 | <code>--with-gmp=</code><em>PATH</em> to set the installation path |
| 1010 | of the |
| 1011 | <a href="http://gmplib.org/">GNU Multiple Precision Arithmetic Library (GMP)</a> |
| 1012 | if it is not in the standard lib/include prefix. |
| 1013 | </p> |
| 1014 | |
| 1015 | |
| 1016 | <h2 id="rel0_9_26"><a name="rel0_9_26">Rasqal 0.9.26 changes</a></h2> |
| 1017 | |
| 1018 | <p>Issues Fixed:</p> |
| 1019 | <ul> |
| 1020 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=430">Issue #0000430</a>: Incorrect HTML generated with unknown literal types</li> |
| 1021 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=431">Issue #0000431</a>: Only a limited number of literal datatypes are displayable in a HTML format.</li> |
| 1022 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=436">Issue #0000436</a>: queries involving calculations with large numbers return incorrect results unless scientific notation is used</li> |
| 1023 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=438">Issue #0000438</a>: timegm not available on solaris</li> |
| 1024 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=439">Issue #0000439</a>: warning when variable is not selected makes 4store tests to fail</li> |
| 1025 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=446">Issue #0000446</a>: rasqal may require -lm for floor, ceil, round on some systems and architectures</li> |
| 1026 | </ul> |
| 1027 | |
| 1028 | <h3>SPARQL 1.1 Query draft language changes</h3> |
| 1029 | |
| 1030 | <p>Added support for SPARQL 1.1 message digest functions |
| 1031 | <code>MD5()</code>, <code>SHA1()</code>, <code>SHA224()</code>, |
| 1032 | <code>SHA256()</code>, <code>SHA384()</code> and <code>SHA512()</code></p> |
| 1033 | |
| 1034 | <h3>Query engine changes</h3> |
| 1035 | |
| 1036 | <p>Many internal query engine changes to more accuractly compute |
| 1037 | variable scope, use and binding to better support more complex |
| 1038 | queries with scopes such as <code>UNION</code> (now mostly working) |
| 1039 | and sub-<code>SELECT</code> (execution is not yet supported). |
| 1040 | </p> |
| 1041 | |
| 1042 | <p>Added <code>rasqal_world_set_warning_level()</code> to set the |
| 1043 | query warning level in the 0...100 range where 0 is no warnings, 50 |
| 1044 | is the default and 100 is all warnings. |
| 1045 | </p> |
| 1046 | |
| 1047 | <p>Query errors now fail with regular errors not fatal errors that |
| 1048 | <code>abort()</code>. Query parsing errors are not work killing the |
| 1049 | process. Also adjusted some error paths to prevent reporting 2 |
| 1050 | errors at once. |
| 1051 | </p> |
| 1052 | |
| 1053 | <p><code>rasqal_op</code> enumeration gains values |
| 1054 | <code>RASQAL_EXPR_MD5</code>, <code>RASQAL_EXPR_SHA1</code>, |
| 1055 | <code>RASQAL_EXPR_SHA224</code>, <code>RASQAL_EXPR_SHA256</code>, |
| 1056 | <code>RASQAL_EXPR_SHA384</code> and <code>RASQAL_EXPR_SHA512</code> |
| 1057 | for message digest expressions corresponding to SPARQL 1.1 message |
| 1058 | digest functions. |
| 1059 | </p> |
| 1060 | |
| 1061 | <p>Added message digest support either built with internal MD5 and |
| 1062 | SHA1 which are always available, or with libmhash which provides the |
| 1063 | full list of message digests that SPARQL 1.1 requires (and is |
| 1064 | optimized). |
| 1065 | </p> |
| 1066 | |
| 1067 | <p>Make <code>ROUND()</code> work with XSD Decimal when compiled |
| 1068 | against <a href="http://gmplib.org/">GNU MP</a>. |
| 1069 | </p> |
| 1070 | |
| 1071 | <p>Check for overflow when converting a string to int and if |
| 1072 | resulting long won't fit in an int, turn it into a decimal. |
| 1073 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=436">Issue #0000436</a>. |
| 1074 | </p> |
| 1075 | |
| 1076 | <p>Removed Query Engine V1 that was long disabled. |
| 1077 | <code>configure</code> loses |
| 1078 | the <code>--with-query-engine-version</code> option. |
| 1079 | </p> |
| 1080 | |
| 1081 | |
| 1082 | <h3>Query results formatter class changes</h3> |
| 1083 | |
| 1084 | <p>Fixed HTML query results generating invalid HTML. |
| 1085 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=430">Issue #0000430</a> |
| 1086 | </p> |
| 1087 | |
| 1088 | <p>Support writing additional literal types in HTML query results. |
| 1089 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=431">Issue #0000431</a> |
| 1090 | </p> |
| 1091 | |
| 1092 | <p>The JSON query result format now accepts the |
| 1093 | <code>application/sparql-results+json</code> mime type, as specified |
| 1094 | in the |
| 1095 | <a href="http://www.w3.org/TR/rdf-sparql-json-res/">Serializing SPARQL Query Results in JSON</a> |
| 1096 | W3C WG Note. |
| 1097 | </p> |
| 1098 | |
| 1099 | |
| 1100 | <h3><code>roqet(1)</code> utility changes</h3> |
| 1101 | |
| 1102 | <p>Added options <code>-W</code> |
| 1103 | / <code>--warnings</code> <em>level</em> (default 50) to set the |
| 1104 | warning level and <code>-E</code> to ignore errors. |
| 1105 | </p> |
| 1106 | |
| 1107 | |
| 1108 | <h3>Other changes</h3> |
| 1109 | |
| 1110 | <p><code>configure</code> gains a <code>--enable-debug</code> option |
| 1111 | to enable or disable the debugging messages. Useful for when |
| 1112 | building using <code>autogen.sh</code> from GIT. |
| 1113 | </p> |
| 1114 | |
| 1115 | <p>Removed internal test/debug 'redland' triples store that has not |
| 1116 | worked for some time. Removed the <code>--with-triples-source</code> |
| 1117 | and <code>--with-redland-config</code> options from <code>configure</code>. |
| 1118 | </p> |
| 1119 | |
| 1120 | <p>Add a portable version of <code>timegm()</code> when it is not |
| 1121 | present in the system (such as Solaris). |
| 1122 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=438">Issue #0000438</a>. |
| 1123 | </p> |
| 1124 | |
| 1125 | <p>Added <code>configure</code> tests |
| 1126 | for <code>ceil()</code>, <code>floor()</code> |
| 1127 | and <code>round()</code> that look for them in libc or libm. |
| 1128 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=446">Issue #0000446</a>. |
| 1129 | </p> |
| 1130 | |
| 1131 | <p>Fixed up several code paths with problems found |
| 1132 | by <a href="http://clang.llvm.org/">clang</a>, mostly unused |
| 1133 | variables, unnecessary calculations but a couple of bad accesses. |
| 1134 | </p> |
| 1135 | |
| 1136 | |
| 1137 | <h2 id="rel0_9_25"><a name="rel0_9_25">Rasqal 0.9.25 changes</a></h2> |
| 1138 | |
| 1139 | <p>Issues Fixed:</p> |
| 1140 | <ul> |
| 1141 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=421">Issue #0000421</a>: Use raptor_syntax_description_validate() to validate Query Results formats</li> |
| 1142 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=427">Issue #0000427</a>: INSERT/DELETE with """ quoting doesn't quite work</li> |
| 1143 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=428">Issue #0000428</a>: @lang doesn't work with """:</li> |
| 1144 | </ul> |
| 1145 | |
| 1146 | |
| 1147 | <h3>SPARQL 1.1 Query draft language changes</h3> |
| 1148 | |
| 1149 | <p>Added support for SPARQL 1.1 numeric functions <code>ABS()</code>, |
| 1150 | <code>ROUND()</code>, <code>CEIL()</code> and <code>FLOOR()</code>. |
| 1151 | </p> |
| 1152 | |
| 1153 | <p>Added support for SPARQL 1.1 <code>BIND(expr as ?var)</code> |
| 1154 | using existing <code>RASQAL_GRAPH_PATTERN_OPERATOR_LET</code>. |
| 1155 | </p> |
| 1156 | |
| 1157 | <p>Added support for SPARQL 1.1 <code>CLEAR</code> and |
| 1158 | <code>DROP</code> to use optional <code>SILENT</code> keyword. |
| 1159 | </p> |
| 1160 | |
| 1161 | <p>Added support for SPARQL 1.1 <code>RAND()</code> along with a |
| 1162 | query API feature for user setting of the random seed.</p> |
| 1163 | |
| 1164 | <p>Added support for SPARQL 1.1 TZ()</p> |
| 1165 | |
| 1166 | <p>Fixed SPARQL 1.1 <code>ENCODE_FOR_URI()</code> to not preserve |
| 1167 | language and datatype of input. |
| 1168 | </p> |
| 1169 | |
| 1170 | <p>Fixed support for SPARQL 1.1 <code>BNODE()</code> to work with no |
| 1171 | argument given. |
| 1172 | </p> |
| 1173 | |
| 1174 | <p>Fixed SPARQL 1.1 <code>GROUP BY</code> to allow an optional |
| 1175 | <code>AS ?var</code>. |
| 1176 | </p> |
| 1177 | |
| 1178 | <p>Fixed support for """-quoted and '''-quoted strings not over-quoting |
| 1179 | and adding support for optional language. |
| 1180 | Fixes |
| 1181 | <a href="http://bugs.librdf.org/mantis/view.php?id=427">Issue #0000427</a> |
| 1182 | and |
| 1183 | <a href="http://bugs.librdf.org/mantis/view.php?id=428">Issue #0000428</a>. |
| 1184 | </p> |
| 1185 | |
| 1186 | |
| 1187 | <h3>DateTime class changes</h3> |
| 1188 | |
| 1189 | <p>Added <code>rasqal_xsd_datetime_get_tz_as_counted_string()</code> |
| 1190 | to get back the timezone string component of a datetime. |
| 1191 | </p> |
| 1192 | |
| 1193 | |
| 1194 | <h3>Datatype class changes</h3> |
| 1195 | |
| 1196 | <p><code>rasqal_xsd_format_double()</code> now correctly formats |
| 1197 | numbers that have no trailing 0s. |
| 1198 | </p> |
| 1199 | |
| 1200 | |
| 1201 | <h3>Decimal class changes</h3> |
| 1202 | |
| 1203 | <p>Added <code>rasqal_xsd_decimal_abs()</code>, |
| 1204 | <code>rasqal_xsd_decimal_round()</code>, |
| 1205 | <code>rasqal_xsd_decimal_ceil()</code> and |
| 1206 | <code>rasqal_xsd_decimal_floor()</code> to support the ABS(), |
| 1207 | ROUND(), CEIL() and FLOOR() functions for decimals. |
| 1208 | </p> |
| 1209 | |
| 1210 | |
| 1211 | <h3>Expression class changes</h3> |
| 1212 | |
| 1213 | <p>rasqal_op gains |
| 1214 | <code>RASQAL_EXPR_ABS</code>, |
| 1215 | <code>RASQAL_EXPR_ROUND</code>, |
| 1216 | <code>RASQAL_EXPR_CEIL</code> and |
| 1217 | <code>RASQAL_EXPR_FLOOR</code> for numeric operations, |
| 1218 | <code>RASQAL_EXPR_RAND</code> for SPARQL 1.1 <code>RAND()</code> |
| 1219 | and <code>RASQAL_EXPR_TZ</code> for SPARQL 1.1 TZ() timezone accessor. |
| 1220 | </p> |
| 1221 | |
| 1222 | <p>Added an evaluation context structure |
| 1223 | <code>rasqal_evaluation_context</code> for the information needed to |
| 1224 | evaluate any <code>rasqal_expression</code> tree. This makes |
| 1225 | expression evaluation independent of a query, but still tied to a |
| 1226 | rasqal world and (via variables) a variables table. Added constructor |
| 1227 | <code>rasqal_new_evaluation_context()</code> to set the locator and |
| 1228 | flags, destructor <code>rasqal_free_evaluation_context()</code>, |
| 1229 | method <code>rasqal_evaluation_context_set_base_uri()</code> to |
| 1230 | set/reset the shared reference to the context base URI |
| 1231 | and method <code>rasqal_evaluation_context_set_rand_seed()</code> |
| 1232 | to set the random seed for the evaluation. |
| 1233 | </p> |
| 1234 | |
| 1235 | <p>Added <code>rasqal_expression_evaluate2()</code> taking just an |
| 1236 | expression and an evaluation context. |
| 1237 | </p> |
| 1238 | |
| 1239 | <p><code>rasqal_expression_evaluate()</code> is deprecated for the |
| 1240 | above. |
| 1241 | </p> |
| 1242 | |
| 1243 | <p>Added new method |
| 1244 | <code>rasqal_xsd_datetime_get_tz_as_counted_string()</code> for |
| 1245 | executing <code>RASQAL_EXPR_TZ</code> for SPARQL 1.1 TZ(). |
| 1246 | </p> |
| 1247 | |
| 1248 | |
| 1249 | <h3>Query Engine changes</h3> |
| 1250 | |
| 1251 | <p>Initialise seed for RAND() from either a mixture of system sources |
| 1252 | or from a value set by user. The user value can be set with new |
| 1253 | query feature <code>RASQAL_FEATURE_RAND_SEED</code>. Uses |
| 1254 | <code>rasqal_evaluation_context_set_rand_seed()</code> on the query's |
| 1255 | internal evaluation context. |
| 1256 | </p> |
| 1257 | |
| 1258 | <p>Enable <code>rasqal_query_set_store_results()</code> to actually |
| 1259 | work after a query prepare. |
| 1260 | </p> |
| 1261 | |
| 1262 | <p>Handle evaluation of <code>FILTER</code> over an empty inner graph |
| 1263 | pattern such as in a query like <code>ASK WHERE { FILTER ( TRUE ) }</code> |
| 1264 | </p> |
| 1265 | |
| 1266 | <p>Ignore errors in executing SPARQL 1.1 project expression |
| 1267 | <code>AS</code> variables. |
| 1268 | </p> |
| 1269 | |
| 1270 | <p>Update <code>rasqal_literal_as_boolean()</code>, |
| 1271 | <code>rasqal_literal_as_integer</code> and |
| 1272 | <code>rasqal_literal_as_floating</code> when evaluating NULL to |
| 1273 | return a type error not an assertion failure or abort (in debug |
| 1274 | mode). |
| 1275 | </p> |
| 1276 | |
| 1277 | <p>Change internal error handling to separate a NULL return from an |
| 1278 | error return when evaluating expressions. Updated lots of callers of |
| 1279 | expression evaluation to handle a NULL expression response. Needed |
| 1280 | since now NULL is a valid expression evalution in some cases; like |
| 1281 | STRLANG() on non-simple literals. |
| 1282 | </p> |
| 1283 | |
| 1284 | <p>Updated to use <code>rasqal_evaluation_context</code> for |
| 1285 | expression evaluation. |
| 1286 | </p> |
| 1287 | |
| 1288 | <p>Handle support executing empty graph patterns such as in queries |
| 1289 | like <code>SELECT (expr AS ?var) WHERE {}</code> which just evaluates |
| 1290 | <code>expr</code> and returns a single row with a single result. |
| 1291 | </p> |
| 1292 | |
| 1293 | |
| 1294 | <h3>Query Result Formatter class changes</h3> |
| 1295 | |
| 1296 | <p>Handle NULL values for RDF and Tables results. |
| 1297 | </p> |
| 1298 | |
| 1299 | |
| 1300 | <h3>Other changes</h3> |
| 1301 | |
| 1302 | <p>Added <code>rasqal_world_get_query_language_description()</code> |
| 1303 | to get a description of a query language replacing and deprecating |
| 1304 | <code>rasqal_languages_enumerate()</code>. |
| 1305 | </p> |
| 1306 | |
| 1307 | <p>More fixes to check-query test script. |
| 1308 | </p> |
| 1309 | |
| 1310 | <p>Make GPL V2 or newer explicit in LICENSE.html. |
| 1311 | </p> |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | <h2 id="rel0_9_24"><a name="rel0_9_24">Rasqal 0.9.24 Changes</a></h2> |
| 1316 | |
| 1317 | |
| 1318 | <h3>SPARQL 1.1 Update draft Language changes</h3> |
| 1319 | |
| 1320 | <p>Added support for <code>CLEAR</code> and <code>DROP</code> |
| 1321 | applying to more than one graph. The options are now: just default |
| 1322 | graph with <code>DEFAULT</code>, all named graphs with |
| 1323 | <code>NAMED</code> and all graphs with <code>ALL</code>. |
| 1324 | </p> |
| 1325 | |
| 1326 | <p>Added support for optional <code>SILENT</code> flag before most |
| 1327 | update operations. |
| 1328 | </p> |
| 1329 | |
| 1330 | <p>Added support for <code>ADD</code>, <code>MOVE</code> and |
| 1331 | <code>COPY</code> operations which both operate between two graphs - |
| 1332 | either named or default. The source graph is stored in the update |
| 1333 | structure <code>graph_uri</code> field and the destination graph in |
| 1334 | the <code>document_uri</code> field; the names have no meaning here |
| 1335 | since both are graphs and a NULL value signifies the default graph. |
| 1336 | </p> |
| 1337 | |
| 1338 | <p>Added support for <code>DELETE WHERE {}</code> writing the triple |
| 1339 | results into the <code>delete_templates</code> field of the update |
| 1340 | structure. |
| 1341 | </p> |
| 1342 | |
| 1343 | <p>Added support for multiple update operations in one 'query' |
| 1344 | separated by ';'. |
| 1345 | </p> |
| 1346 | |
| 1347 | <p><code>GROUP_CONCAT()</code> now sets the |
| 1348 | <code>RASQAL_EXPR_FLAG_AGGREGATE</code> rasqal_expression flag |
| 1349 | like the other builtin aggregate expressions. |
| 1350 | </p> |
| 1351 | |
| 1352 | |
| 1353 | <h3>Query Engine changes</h3> |
| 1354 | |
| 1355 | <p>Fixed a few memory leaks in aggregate operation with |
| 1356 | <code>GROUP</code> and with <code>HAVING</code>. |
| 1357 | </p> |
| 1358 | |
| 1359 | |
| 1360 | <h3>Literal API changes</h3> |
| 1361 | |
| 1362 | <p>Fixed a memory leak with datetime literals. |
| 1363 | </p> |
| 1364 | |
| 1365 | |
| 1366 | <h3>Update API changes</h3> |
| 1367 | |
| 1368 | <p><code>rasqal_update_type</code> gains new enum values |
| 1369 | <code>RASQAL_UPDATE_TYPE_ADD</code>, |
| 1370 | <code>RASQAL_UPDATE_TYPE_MOVE</code> and |
| 1371 | <code>RASQAL_UPDATE_TYPE_COPY</code> for the SPARQL 1.1 Update ADD, |
| 1372 | MOVE and COPY operations respectively. |
| 1373 | </p> |
| 1374 | |
| 1375 | <p>Added enum <code>rasqal_update_graph_applies</code> to specify |
| 1376 | scope that update applies to beyond one graph to either just the |
| 1377 | default graph, to all named graphs or to all graphs. Applies to |
| 1378 | CLEAR and DROP operations only |
| 1379 | </p> |
| 1380 | |
| 1381 | |
| 1382 | <h3>Other changes</h3> |
| 1383 | |
| 1384 | <p>Make all object destructors simply return on a NULL object |
| 1385 | pointer. This was already done but with different code styles. |
| 1386 | </p> |
| 1387 | |
| 1388 | |
| 1389 | <h2 id="rel0_9_23"><a name="rel0_9_23">Rasqal 0.9.23 Changes</a></h2> |
| 1390 | |
| 1391 | <p>Fixed Issues:</p> |
| 1392 | <ul> |
| 1393 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=407">0000407</a>: ORDER BY does not appear to handle undefined values correctly</li> |
| 1394 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=414">0000414</a>: Type of operation->insert_templates depends on Update syntax</li> |
| 1395 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=415">0000415</a>: Graph pattern operator not correctly filled out in SPARQL 1.1 Updates</li> |
| 1396 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=417">0000417</a>: SELECT DISTINCT sometimes returns duplicates</li> |
| 1397 | </ul> |
| 1398 | |
| 1399 | |
| 1400 | <h3>Graph pattern class changes</h3> |
| 1401 | |
| 1402 | <p>Added <code>rasqal_graph_pattern_get_flattened_triples()</code> to |
| 1403 | flatten a recursive basic/graph graph pattern |
| 1404 | to a sequence of triples or triple patterns (have variables). |
| 1405 | </p> |
| 1406 | |
| 1407 | <h3>SPARQL Query Language changes</h3> |
| 1408 | |
| 1409 | <p>Fix the parsing of SPARQL 1.1 Update draft INSERT and DELETE to |
| 1410 | return sequences of triples in the insert_templates and |
| 1411 | delete_templates fields as documented. It would previously sometimes |
| 1412 | return that but mostly return a sequence of recursive graph patterns. |
| 1413 | </p> |
| 1414 | |
| 1415 | <p>When a syntax error happens due to use of a language feature, do |
| 1416 | proper error handling (no aborting) and clean up parsing resources. |
| 1417 | </p> |
| 1418 | |
| 1419 | |
| 1420 | |
| 1421 | <h2 id="rel0_9_22"><a name="rel0_9_22">Rasqal 0.9.22 Changes</a></h2> |
| 1422 | |
| 1423 | <blockquote> |
| 1424 | <p><b>WARNING: ABI AND API CHANGED IN THIS RELEASE.</b></p> |
| 1425 | |
| 1426 | <p>This means: functions, enums and types were added, removed and changed.</p> |
| 1427 | |
| 1428 | <p>Consequently the shared library major soname version has changed from 2 to 3.</p> |
| 1429 | |
| 1430 | </blockquote> |
| 1431 | |
| 1432 | <p>The main changes in this release were to add more draft SPARQL 1.1 |
| 1433 | features and to use Raptor V2.</p> |
| 1434 | |
| 1435 | <p>Rasqal now depends on Raptor V2. Raptor V1 is not supported. The |
| 1436 | minimum Raptor2 version is 2.0.0. |
| 1437 | </p> |
| 1438 | |
| 1439 | <p>Given the the large dependency change above that requires |
| 1440 | recompiling with some breakage, this release makes an ABI and API |
| 1441 | break. All deprecated functions, types and other deprecated |
| 1442 | functionality have been removed. The libtool library version |
| 1443 | was bumped to 3.0.0. The detailed API changes are described in the |
| 1444 | Changes section of the |
| 1445 | <a href="http://librdf.org/rasqal/docs/api/">Rasqal reference manual</a>. |
| 1446 | </p> |
| 1447 | |
| 1448 | |
| 1449 | <h3>Query Engine Changes</h3> |
| 1450 | |
| 1451 | <p>Query engine initialises start of execution datetime to enable a |
| 1452 | <code>NOW()</code> function to provide a stable value during a single |
| 1453 | execution. |
| 1454 | </p> |
| 1455 | |
| 1456 | |
| 1457 | <h3>Query Language Changes</h3> |
| 1458 | |
| 1459 | <p>Split query language support into more languages with aliases: |
| 1460 | </p> |
| 1461 | <ul> |
| 1462 | <li><code>sparql</code> (and alias <code>sparql10</code>): SPARQL 1.0 query with no 1.1 features.</li> |
| 1463 | <li><code>sparql11-query:</code> SPARQL 1.1 query.</li> |
| 1464 | <li><code>sparql11-update:</code> SPARQL 1.1 update.</li> |
| 1465 | <li><code>sparql11:</code> SPARQL 1.1 with both query and update.</li> |
| 1466 | <li><code>laqrs:</code> LAQRS experimental language with all of above plus experiments.</li> |
| 1467 | </ul> |
| 1468 | |
| 1469 | |
| 1470 | <h3>LAQRS Query Language changes</h3> |
| 1471 | |
| 1472 | <p>Added experimental datetime builtin methods:</p> |
| 1473 | <ul> |
| 1474 | <li><code>NOW()</code> / <code>CURRENT_DATETIME()</code>: Synonyms |
| 1475 | to return an XSD datetime for the current wall clock date and time. |
| 1476 | At the first execution / preparation of the query, the value is set |
| 1477 | as a constant throughout the life of the query execution. |
| 1478 | </li> |
| 1479 | <li><code>FROM_UNIXTIME()</code>: turns an integer value into an XSD DateTime. |
| 1480 | </li> |
| 1481 | <li><code>TO_UNIXTIME()</code>: turns an XSD DateTime into an integer value. |
| 1482 | </li> |
| 1483 | </ul> |
| 1484 | <p>These functions are not opposites and will not roundtrip date |
| 1485 | times since they do not take into consideration leap seconds or |
| 1486 | daylight saving time changes. |
| 1487 | </p> |
| 1488 | |
| 1489 | |
| 1490 | <h3>SPARQL Query Language changes</h3> |
| 1491 | |
| 1492 | <p>Fixed SPARQL 1.1 draft <code>isNUMERIC()</code> which was stored |
| 1493 | wrongly in the parse tree as <code>RASQAL_EXPR_ISLITERAL</code>. |
| 1494 | </p> |
| 1495 | |
| 1496 | <p>Added SPARQL 1.1 draft dateTime accessor builtin functions |
| 1497 | along with expression execution support.</p> |
| 1498 | <ul> |
| 1499 | <li><code>DAY()</code></li> |
| 1500 | <li><code>HOURS()</code></li> |
| 1501 | <li><code>MINUTES()</code></li> |
| 1502 | <li><code>MONTH()</code></li> |
| 1503 | <li><code>SECONDS()</code></li> |
| 1504 | <li><code>TIMEZONE()</code></li> |
| 1505 | <li><code>YEAR()</code></li> |
| 1506 | </ul> |
| 1507 | |
| 1508 | <p>Added SPARQL 1.1 draft string builtin functions |
| 1509 | along with expression execution support.</p> |
| 1510 | <ul> |
| 1511 | <li><code>CONCAT()</code></li> |
| 1512 | <li><code>CONTAINS()</code></li> |
| 1513 | <li><code>ENCODE_FOR_URI()</code></li> |
| 1514 | <li><code>LCASE()</code></li> |
| 1515 | <li><code>STRENDS()</code></li> |
| 1516 | <li><code>STRLEN()</code></li> |
| 1517 | <li><code>STRSTARTS()</code></li> |
| 1518 | <li><code>SUBSTR()</code></li> |
| 1519 | <li><code>UCASE()</code></li> |
| 1520 | </ul> |
| 1521 | |
| 1522 | |
| 1523 | |
| 1524 | <h3>Data Graph class changes</h3> |
| 1525 | |
| 1526 | <p>Removed deprecated <code>rasqal_new_data_graph()</code> |
| 1527 | constructor replaced by <code>rasqal_new_data_graph_from_uri()</code> |
| 1528 | with additional arguments. |
| 1529 | </p> |
| 1530 | |
| 1531 | |
| 1532 | <h3>Datetime class changes</h3> |
| 1533 | |
| 1534 | <p>Added <code>rasqal_xsd_datetime</code> class to the public API |
| 1535 | implementing the XML Schema datatypes (XSD) dateTime with microsecond |
| 1536 | accuracy (where present) and timezone offsets of minutes accuracy. |
| 1537 | The new class has constructors:</p> |
| 1538 | <ul> |
| 1539 | <li><code>rasqal_new_xsd_datetime()</code></li> |
| 1540 | <li><code>rasqal_new_xsd_datetime_from_timeval()</code></li> |
| 1541 | <li><code>rasqal_new_xsd_datetime_from_unixtime()</code></li> |
| 1542 | </ul> |
| 1543 | <p>destructor:</p> |
| 1544 | <ul> |
| 1545 | <li><code>rasqal_free_xsd_datetime()</code></li> |
| 1546 | </ul> |
| 1547 | <p>and methods:</p> |
| 1548 | <ul> |
| 1549 | <li><code>rasqal_xsd_datetime_compare()</code></li> |
| 1550 | <li><code>rasqal_xsd_datetime_equals()</code></li> |
| 1551 | <li><code>rasqal_xsd_datetime_get_as_timeval()</code></li> |
| 1552 | <li><code>rasqal_xsd_datetime_get_as_unixtime()</code></li> |
| 1553 | <li><code>rasqal_xsd_datetime_get_seconds_as_decimal()</code></li> |
| 1554 | <li><code>rasqal_xsd_datetime_get_timezone_as_counted_string()</code></li> |
| 1555 | <li><code>rasqal_xsd_datetime_set_from_timeval()</code></li> |
| 1556 | <li><code>rasqal_xsd_datetime_set_from_unixtime()</code></li> |
| 1557 | <li><code>rasqal_xsd_datetime_to_counted_string()</code></li> |
| 1558 | <li><code>rasqal_xsd_datetime_to_string()</code></li> |
| 1559 | </ul> |
| 1560 | |
| 1561 | |
| 1562 | <h3>Expression class changes</h3> |
| 1563 | |
| 1564 | <p><code>rasqal_expression_evaluate()</code> now evaluates the new |
| 1565 | SPARQL 1.1 draft strings and datetime builtin functions. |
| 1566 | </p> |
| 1567 | |
| 1568 | <p><code>rasqal_op</code> gains new values for SPARQL 1.1 builtin |
| 1569 | functions:</p> |
| 1570 | <ul> |
| 1571 | <li><code>RASQAL_EXPR_CONCAT</code></li> |
| 1572 | <li><code>RASQAL_EXPR_DAY</code></li> |
| 1573 | <li><code>RASQAL_EXPR_HOURS</code></li> |
| 1574 | <li><code>RASQAL_EXPR_MINUTES</code></li> |
| 1575 | <li><code>RASQAL_EXPR_MONTH</code></li> |
| 1576 | <li><code>RASQAL_EXPR_SECONDS</code></li> |
| 1577 | <li><code>RASQAL_EXPR_TIMEZONE</code></li> |
| 1578 | <li><code>RASQAL_EXPR_YEAR</code></li> |
| 1579 | </ul> |
| 1580 | |
| 1581 | <p><code>rasqal_op</code> gains new values for LAQRS experimental |
| 1582 | builtin functions:</p> |
| 1583 | <ul> |
| 1584 | <li><code>RASQAL_EXPR_CURRENT_DATETIME</code></li> |
| 1585 | <li><code>RASQAL_EXPR_FROM_UNIXTIME</code></li> |
| 1586 | <li><code>RASQAL_EXPR_NOW</code></li> |
| 1587 | <li><code>RASQAL_EXPR_TO_UNIXTIME</code></li> |
| 1588 | </ul> |
| 1589 | |
| 1590 | <p><code>rasqal_new_function_expression()</code> constructor gained |
| 1591 | <code>params</code> and <code>flags</code> arguments to handle |
| 1592 | aggregate expressions. This was renamed from |
| 1593 | <code>rasqal_new_function_expression2()</code>. |
| 1594 | </p> |
| 1595 | |
| 1596 | <p>Removed deprecated <code>rasqal_new_function_expression2()</code> |
| 1597 | replaced by <code>rasqal_new_function_expression()</code> with same |
| 1598 | arguments. |
| 1599 | </p> |
| 1600 | |
| 1601 | <p>Added constructor <code>rasqal_new_expr_seq_expression()</code> |
| 1602 | replacing <code>rasqal_new_coalesce_expression()</code> and taking an |
| 1603 | op argument to use for different expression operations. |
| 1604 | </p> |
| 1605 | |
| 1606 | <p>Removed method <code>rasqal_new_coalesce_expression()</code> |
| 1607 | replaced by <code>rasqal_new_expr_seq_expression()</code> with |
| 1608 | additional op argument. |
| 1609 | </p> |
| 1610 | |
| 1611 | <p><code>rasqal_expression_evaluate()</code> evalutes experimental |
| 1612 | LAQRS datetime builtin methods <code>NOW()</code>, |
| 1613 | <code>CURRENT_DATETIME()</code>, <code>FROM_UNIXTIME()</code> and |
| 1614 | <code>TO_UNIXTIME()</code>. |
| 1615 | </p> |
| 1616 | |
| 1617 | <p>Fixed <code>RASQAL_EXPR_DATATYPE</code> expression execution to |
| 1618 | return the result rather than the function argument. |
| 1619 | </p> |
| 1620 | |
| 1621 | |
| 1622 | <h3>Literal class changes</h3> |
| 1623 | |
| 1624 | <p>Support XSD dateTime literals. <code>rasqal_literal</code> value |
| 1625 | union gains a datetime field.</p> |
| 1626 | |
| 1627 | <p>Added new constructor |
| 1628 | <code>rasqal_new_datetime_literal_from_datetime()</code> to make a |
| 1629 | datetime literal.</p> |
| 1630 | |
| 1631 | <p><code>rasqal_literal_set_typed_value()</code> turns xsd:dateTime |
| 1632 | literals into <code>rasqal_xsd_datetime</code> objects. |
| 1633 | </p> |
| 1634 | |
| 1635 | <p><code>rasqal_literal_equals_flags()</code> and |
| 1636 | <code>rasqal_literal_compare()</code> now use <code>rasqal_datetime</code> |
| 1637 | equality and comparison methods. |
| 1638 | </p> |
| 1639 | |
| 1640 | <p>Added new accessor <code>rasqal_literal_as_counted_string()</code> |
| 1641 | get the string version of its and its length, letting the caller |
| 1642 | avoid strlen() on the result. |
| 1643 | </p> |
| 1644 | |
| 1645 | |
| 1646 | <h3>Query class changes</h3> |
| 1647 | |
| 1648 | <p>Added method <code>rasqal_query_get_result_type()</code> |
| 1649 | to get the expected result type based on the query structure. |
| 1650 | </p> |
| 1651 | |
| 1652 | <p>Added method <code>rasqal_query_set_store_results</code> to enable |
| 1653 | storing results of an execution.</p> |
| 1654 | |
| 1655 | |
| 1656 | <p>Removed deprecated methods: |
| 1657 | <code>rasqal_query_set_fatal_error_handler()</code> |
| 1658 | <code>rasqal_query_set_error_handler()</code> |
| 1659 | <code>rasqal_query_set_warning_handler()</code> |
| 1660 | replaced by using |
| 1661 | <code>rasqal_world_set_log_handler()</code> calling a |
| 1662 | raptor_log_handler. |
| 1663 | </p> |
| 1664 | |
| 1665 | <p>Removed deprecated methods: |
| 1666 | <code>rasqal_query_set_default_generate_bnodeid_parameters()</code> |
| 1667 | <code>rasqal_query_set_generate_bnodeid_handler()</code> |
| 1668 | that have moved to methods on the rasqal_world object: |
| 1669 | <code>rasqal_world_set_default_generate_bnodeid_parameters()</code> and |
| 1670 | <code>rasqal_world_set_generate_bnodeid_handler()</code> respectively. |
| 1671 | </p> |
| 1672 | |
| 1673 | <p><code>rasqal_query_add_data_graph()</code> was altered to take a |
| 1674 | single <code>rasqal_data_graph</code> argument instead of uri, name |
| 1675 | and flags. This was renamed from <code>rasqal_query_add_data_graph2()</code>. |
| 1676 | </p> |
| 1677 | |
| 1678 | <p>Removed |
| 1679 | <code>rasqal_query_add_data_graph2()</code> replaced by |
| 1680 | <code>rasqal_query_add_data_graph()</code> with same arguments. |
| 1681 | </p> |
| 1682 | |
| 1683 | |
| 1684 | <h3>Query Results class changes</h3> |
| 1685 | |
| 1686 | <p>Added support for query result rewinding, if the results |
| 1687 | were stored in execution via <code>rasqal_query_set_store_results()</code>, |
| 1688 | new method <code>rasqal_query_results_rewind()</code> may be called |
| 1689 | to reset back to the initial binding result. |
| 1690 | </p> |
| 1691 | |
| 1692 | <p>Added <code>rasqal_query_results_get_row_by_offset()</code> to |
| 1693 | access stored query result rows if storing results was enabled by |
| 1694 | <code>rasqal_query_set_store_results()</code>. |
| 1695 | </p> |
| 1696 | |
| 1697 | <p>Enum <code>rasqal_query_results_type</code> gains value |
| 1698 | <code>RASQAL_QUERY_RESULTS_UNKNOWN</code> for when a query result |
| 1699 | type is unknown or yet to be determined. |
| 1700 | </p> |
| 1701 | |
| 1702 | <p>Added method <code>rasqal_query_results_get_type()</code> |
| 1703 | to get the query result type. |
| 1704 | </p> |
| 1705 | |
| 1706 | <p><code>rasqal_query_results_read()</code> was altered to take a |
| 1707 | name, mime_type, format_uri, base_uri args instead of format_uri, |
| 1708 | base_uri. This was renamed from <code>rasqal_query_results_read2()</code>. |
| 1709 | </p> |
| 1710 | |
| 1711 | <p>Removed <code>rasqal_query_results_read2()</code> |
| 1712 | replaced by <code>rasqal_query_results_read()</code> with the same arguments. |
| 1713 | </p> |
| 1714 | |
| 1715 | <p><code>rasqal_query_results_write()</code> was altered to take a |
| 1716 | name, mime_type, format_uri, base_uri args instead of format_uri, |
| 1717 | base_uri. This was renamed from <code>rasqal_query_results_write2()</code>. |
| 1718 | </p> |
| 1719 | |
| 1720 | <p>Removed <code>rasqal_query_results_write2()</code> |
| 1721 | replaced by <code>rasqal_query_results_write()</code> with same arguments. |
| 1722 | </p> |
| 1723 | |
| 1724 | |
| 1725 | <h3>Query Results Formatter class changes</h3> |
| 1726 | |
| 1727 | <p>Added new constructor |
| 1728 | <code>rasqal_new_query_results_formatter_for_content()</code> |
| 1729 | to get a query result formatter based on guessing from format URI, name, |
| 1730 | mime type, some initial content or an identifier using |
| 1731 | <code>rasqal_world_guess_query_results_format_name()</code>. |
| 1732 | </p> |
| 1733 | |
| 1734 | <p>Removed <code>rasqal_new_query_results_formatter2()</code> |
| 1735 | constructor replaced by |
| 1736 | <code>rasqal_new_query_results_formatter()</code> constructor. |
| 1737 | </p> |
| 1738 | |
| 1739 | <p>Removed deprecated |
| 1740 | <code>rasqal_new_query_results_formatter_by_mime_type()</code> |
| 1741 | replaced by |
| 1742 | <code>rasqal_new_query_results_formatter_for_content()</code> with |
| 1743 | additional arguments. |
| 1744 | </p> |
| 1745 | |
| 1746 | <p>Added world method |
| 1747 | <code>rasqal_world_guess_query_results_format_name()</code> to guess |
| 1748 | format based on format URI, mime type, some initial content or an |
| 1749 | identifier.</p> |
| 1750 | |
| 1751 | <p>Added guessing based on identifier/filename suffix for the 'rdf' |
| 1752 | (.rdf), 'turtle' (.ttl, .n3) and 'xml' (.srx) formatters. |
| 1753 | </p> |
| 1754 | |
| 1755 | <p>Added reading support for the existing 'rdfxml' and 'turtle' query |
| 1756 | result formatters to make both of these read/write formatters. |
| 1757 | </p> |
| 1758 | |
| 1759 | <p>Added |
| 1760 | <code>rasqal_world_get_query_results_format_description()</code> to |
| 1761 | get the list of query results format syntaxes using a |
| 1762 | <code>raptor_syntax_description</code> structure. This replaced and |
| 1763 | deprecates the <code>rasqal_query_results_formats_enumerate()</code> |
| 1764 | and <code>rasqal_query_results_formatter_get_mime_type()</code> |
| 1765 | methods.</p> |
| 1766 | |
| 1767 | <p>This change allows the query result formats to be identified and |
| 1768 | discovered by multiple names (aliases) and URI strings when using the |
| 1769 | <code>rasqal_new_query_results_formatter2()</code> constructor. |
| 1770 | </p> |
| 1771 | |
| 1772 | <p><code>rasqal_new_query_results_formatter()</code> constructor was |
| 1773 | altered to take name, format type, format URI args instead of just |
| 1774 | name, format URI. This was renamed from |
| 1775 | <code>rasqal_new_query_results_formatter2()</code>. |
| 1776 | </p> |
| 1777 | |
| 1778 | <p><code>rasqal_query_results_formats_check()</code> was altered to |
| 1779 | take name, format URI, mime_type flags instead of name, uri and |
| 1780 | type. This was renamed from <code>rasqal_query_results_formats_check2()</code>. |
| 1781 | </p> |
| 1782 | |
| 1783 | <p>Removed <code>rasqal_query_results_formats_check2()</code> |
| 1784 | replaced by <code>rasqal_query_results_formats_check()</code> with |
| 1785 | the same arguments. |
| 1786 | </p> |
| 1787 | |
| 1788 | <p>Removed <code>rasqal_query_results_formats_enumerate()</code> replaced by |
| 1789 | <code>rasqal_world_get_query_results_format_description()</code> |
| 1790 | using static syntax description approach. |
| 1791 | </p> |
| 1792 | |
| 1793 | <p>Removed <code>rasqal_query_results_formatter_get_mime_type()</code> |
| 1794 | replaced by using fields of <code>raptor_syntax_description</code> structure |
| 1795 | returned by <code>rasqal_world_get_query_results_format_description()</code>. |
| 1796 | </p> |
| 1797 | |
| 1798 | |
| 1799 | <h3>Variable class changes</h3> |
| 1800 | |
| 1801 | <p>Removed deprecated constructors |
| 1802 | <code>rasqal_new_variable_typed()</code> |
| 1803 | <code>rasqal_new_variable()</code> replaced by the |
| 1804 | <code>rasqal_variables_table_add()</code> method on a variables table |
| 1805 | to create and add a variable in a context. |
| 1806 | </p> |
| 1807 | |
| 1808 | |
| 1809 | <h3>Other changes</h3> |
| 1810 | |
| 1811 | <p>Replaced all uses of <code>strcpy()</code> with |
| 1812 | <code>memcpy()</code> and known lengths. |
| 1813 | </p> |
| 1814 | |
| 1815 | <p>Refactored huge <code>rasqal_expression_evaluate()</code> switch |
| 1816 | and case code into sub-methods preparing for possible later change to |
| 1817 | a jump table based on expression operation. |
| 1818 | </p> |
| 1819 | |
| 1820 | <p><code>rasqal_xsd_decimal_as_string()</code>: Fix decimal to string |
| 1821 | xsd lexical form details: rounding precision, format details (such as |
| 1822 | 0.0 not 0.0E0) when built with MPFR or GMP instead of the (imprecise) |
| 1823 | <code>double</code> implementation. |
| 1824 | </p> |
| 1825 | |
| 1826 | <p>Fix xsd double lexical form formatting to use capital E. |
| 1827 | </p> |
| 1828 | |
| 1829 | <p>Started creating <code>check-query</code> query test runner utility. |
| 1830 | </p> |
| 1831 | |
| 1832 | |
| 1833 | |
| 1834 | <h2 id="rel0_9_21"><a name="rel0_9_21">Rasqal 0.9.21 Changes</a></h2> |
| 1835 | |
| 1836 | <p>The main changes in this release are to add support for features of |
| 1837 | <a href="http://www.w3.org/TR/2010/WD-sparql11-query-20101014/">SPARQL 1.1 Query</a> |
| 1838 | W3C working draft of 14 October 2010: |
| 1839 | </p> |
| 1840 | <ul> |
| 1841 | <li>Executing grouping of results: <code>GROUP BY</code></li> |
| 1842 | <li>Executing aggregate expressions: <code>AVG</code>, <code>COUNT</code>, <code>GROUP_CONCAT</code>, <code>MAX</code>, <code>MIN</code>, <code>SAMPLE</code>, <code>SUM</code></li> |
| 1843 | <li>Executing filtering of aggregate expressions: <code>HAVING</code></li> |
| 1844 | <li>Parsing of new syntax: <code>BINDINGS</code>, <code>isNUMERIC()</code>, <code>MINUS</code>, sub <code>SELECT</code> and <code>SERVICE</code>.</li> |
| 1845 | </ul> |
| 1846 | |
| 1847 | <p>Fixed Issues:</p> |
| 1848 | <ul> |
| 1849 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=388">0000388</a>: Can only write JSON format for variable binding and boolean results</li> |
| 1850 | </ul> |
| 1851 | |
| 1852 | |
| 1853 | <h3>Query Engine changes</h3> |
| 1854 | |
| 1855 | <p>Support executing new SPARQL 1.1 draft function |
| 1856 | <code>isNUMERIC()</code>.</p> |
| 1857 | |
| 1858 | <p>Support executing built-in aggregate expressions:</p> |
| 1859 | <ul> |
| 1860 | <li><code>AVG(expr)</code></li> |
| 1861 | <li><code>COUNT(*)</code> and <code>COUNT(expr)</code></li> |
| 1862 | <li><code>GROUP_CONCAT(expr)</code> with optional <code>;separator = 'string'</code></li> |
| 1863 | <li><code>MAX(expr)</code></li> |
| 1864 | <li><code>MIN(expr)</code></li> |
| 1865 | <li><code>SAMPLE(expr)</code></li> |
| 1866 | <li><code>SUM(expr)</code></li> |
| 1867 | </ul> |
| 1868 | <p>with and without <code>DISTINCT</code> across the arguments.</p> |
| 1869 | |
| 1870 | <p>Support executing grouping of results with <code>GROUP BY</code> |
| 1871 | (or implicitly if aggregate function was given) and |
| 1872 | <code>HAVING</code> to filter groups. |
| 1873 | </p> |
| 1874 | |
| 1875 | |
| 1876 | <h3>LAQRS Query Language changes</h3> |
| 1877 | |
| 1878 | <p>Explain more carefully that <code>EXPLAIN</code> and |
| 1879 | <code>COALESCE()</code> are LAQRS only and remain experimental. |
| 1880 | </p> |
| 1881 | |
| 1882 | |
| 1883 | <h3>SPARQL Query Language changes</h3> |
| 1884 | |
| 1885 | <p>Separate SPARQL 1.0 and SPARQL 1.1 draft language names giving query |
| 1886 | languages <em>sparql</em> (with alias <em>sparql10</em> for SPARQL |
| 1887 | 1.0), <em>sparql11</em> for SPARQL 1.1 and <em>laqrs</em> for |
| 1888 | experiments. The <em>sparql</em> name without a version currently |
| 1889 | points to SPARQL 1.0 but over time will advance to be SPARQL 1.1 |
| 1890 | </p> |
| 1891 | |
| 1892 | <p>Added support for parsing (not executing) new SPARQL 1.1 draft tokens: |
| 1893 | <code>BINDINGS</code> for variable bindings, <code>UNDEF</code>, |
| 1894 | <code>SERVICE</code> and <code>MINUS</code>. |
| 1895 | </p> |
| 1896 | |
| 1897 | <p>Added support for parsing and executing new SPARQL 1.1 draft |
| 1898 | <code>isNUMERIC()</code> expression. |
| 1899 | </p> |
| 1900 | |
| 1901 | <p>Added support for parsing (not executing) new SPARQL 1.1 draft |
| 1902 | sub-<code>SELECT</code> queries. |
| 1903 | </p> |
| 1904 | |
| 1905 | <p>Support for parsing and executing built-in (not user) aggregate expressions: |
| 1906 | <code>AVG(expr)</code>, |
| 1907 | <code>COUNT(*)</code> and <code>COUNT(expr)</code>, |
| 1908 | <code>GROUP_CONCAT(expr)</code> with optional <code>;separator = 'string'</code>, |
| 1909 | <code>MAX(expr)</code>, |
| 1910 | <code>MIN(expr)</code>, |
| 1911 | <code>SAMPLE(expr)</code> |
| 1912 | and |
| 1913 | <code>SUM(expr)</code> |
| 1914 | with and without <code>DISTINCT</code> across the arguments. |
| 1915 | </p> |
| 1916 | |
| 1917 | <p>Added support for executing grouping of results with <code>GROUP BY</code> |
| 1918 | (or implicitly if aggregate function was given) and <code>HAVING</code> |
| 1919 | to filter groups. |
| 1920 | </p> |
| 1921 | |
| 1922 | |
| 1923 | <h3>Bindings class changes</h3> |
| 1924 | |
| 1925 | <p>Added a class to support for SPARQL 1.1 draft |
| 1926 | <code>BINDINGS</code> in a query specifying a set of variable |
| 1927 | bindings and a sequence of rows of values to bind to them. Intended |
| 1928 | for applying to a SPARQL 1.1 draft query <code>SERVICE</code> |
| 1929 | call.</p> |
| 1930 | |
| 1931 | <p>Added bindings class rasqal_bindings with constructor |
| 1932 | <code>rasqal_new_bindings</code>, destructor |
| 1933 | <code>rasqal_free_bindings()</code> and method |
| 1934 | <code>rasqal_bindings_print()</code> |
| 1935 | </p> |
| 1936 | |
| 1937 | <p>Added accessor methods for getting bindings variables and rows |
| 1938 | <code>rasqal_query_get_bindings_variables_sequence()</code>, |
| 1939 | <code>rasqal_query_get_bindings_variable()</code>, |
| 1940 | <code>rasqal_query_get_bindings_rows_sequence()</code> and |
| 1941 | <code>rasqal_query_get_bindings_row()</code> |
| 1942 | </p> |
| 1943 | |
| 1944 | |
| 1945 | <h3>Data Graph class changes</h3> |
| 1946 | |
| 1947 | <p>Turn a data graph into a reference-counted class and add support |
| 1948 | for specifying the format of a data graph for parsing after |
| 1949 | retrieval.</p> |
| 1950 | |
| 1951 | <p>typedef <code>rasqal_data_graph</code> gains new optional |
| 1952 | format_type, format_name and format_uri fields for describing the |
| 1953 | format of the graph an optional uri field for base URI and |
| 1954 | a usage field. |
| 1955 | </p> |
| 1956 | |
| 1957 | <p>Added constructor |
| 1958 | <code>rasqal_new_data_graph_from_uri()</code> with format_type, |
| 1959 | format_name and format_uri args deprecating rasqal_new_data_graph() |
| 1960 | without them, which always guessed the format. |
| 1961 | </p> |
| 1962 | |
| 1963 | <p>Added constructor |
| 1964 | <code>rasqal_new_data_graph_from_iostream()</code> taking a |
| 1965 | raptor_iostream arg to allow getting data graphs from non-URIs which |
| 1966 | could be strings, memory etc. |
| 1967 | </p> |
| 1968 | |
| 1969 | <p>Added copy constructor |
| 1970 | <code>rasqal_new_data_graph_from_data_graph()</code> for data graphs. |
| 1971 | </p> |
| 1972 | |
| 1973 | |
| 1974 | |
| 1975 | <h3>Expression and literal class changes</h3> |
| 1976 | |
| 1977 | <p>Added support for SPARQL 1.1 draft <code>isNUMERIC()</code> |
| 1978 | expressions. The <code>rasqal_op</code> gains a new |
| 1979 | <code>RASQAL_EXPR_ISNUMERIC</code> value. |
| 1980 | </p> |
| 1981 | |
| 1982 | <p>Added <code>rasqal_expression_op_label()</code> to return |
| 1983 | the label for an expression operation. |
| 1984 | </p> |
| 1985 | |
| 1986 | <p>Added <code>rasqal_expression_compare()</code> to compare |
| 1987 | literals. |
| 1988 | </p> |
| 1989 | |
| 1990 | <p>Added <code>rasqal_expression_is_aggregate()</code> to test if an |
| 1991 | expression is an aggregate one - has an aggregate operation or |
| 1992 | user-defined function. |
| 1993 | </p> |
| 1994 | |
| 1995 | <p>Added <code>rasqal_literal_type_label()</code> to return |
| 1996 | the label for a literal type. |
| 1997 | </p> |
| 1998 | |
| 1999 | |
| 2000 | <h3>Graph pattern class changes</h3> |
| 2001 | |
| 2002 | <p><code>rasqal_graph_pattern_operator</code> enumeration gains |
| 2003 | new values for SPARQL 1.1 draft features: |
| 2004 | <code>RASQAL_GRAPH_PATTERN_OPERATOR_SELECT</code> for sub-SELECT, |
| 2005 | <code>RASQAL_GRAPH_PATTERN_OPERATOR_SERVICE</code> for service binding and |
| 2006 | <code>RASQAL_GRAPH_PATTERN_OPERATOR_MINUS</code> for minus operation |
| 2007 | between graph patterns. |
| 2008 | </p> |
| 2009 | |
| 2010 | <p>Added new constructor <code>rasqal_new_single_graph_pattern()</code> |
| 2011 | for use with service and minus graph patterns. |
| 2012 | </p> |
| 2013 | |
| 2014 | <p>Added <code>rasqal_graph_pattern_get_variable()</code> method to |
| 2015 | get the variable for SPARQL 1.1 draft <code>BIND</code> and LAQRS |
| 2016 | <code>LET</code> graph patterns. |
| 2017 | </p> |
| 2018 | |
| 2019 | <p>Added <code>rasqal_graph_pattern_get_service()</code> method to |
| 2020 | get the service object for SPARQL 1.1 draft <code>SERVICE</code> |
| 2021 | graph pattern. |
| 2022 | </p> |
| 2023 | |
| 2024 | |
| 2025 | <h3>Query class changes</h3> |
| 2026 | |
| 2027 | <p>Added <code>rasqal_query_add_data_graph2()</code> to |
| 2028 | add a previously constructed data graph to a query |
| 2029 | deprecating <code>rasqal_query_add_data_graph()</code> that |
| 2030 | did construct and add in one go. |
| 2031 | </p> |
| 2032 | |
| 2033 | <p>Added <code>rasqal_query_add_data_graphs()</code> to |
| 2034 | add a sequence of data graphs to a query. |
| 2035 | </p> |
| 2036 | |
| 2037 | <p>Added <code>rasqal_query_add_data_graph_from_iostream()</code> |
| 2038 | using new <code>rasqal_new_data_graph_from_iostream()</code>. |
| 2039 | </p> |
| 2040 | |
| 2041 | <p>Note in the docs for <code>rasqal_query_set_limit()</code> and |
| 2042 | <code>rasqal_query_set_offset()</code> that with the new query engine |
| 2043 | approach, you cannot set the limit or offset until the query is |
| 2044 | prepared which is after parsing. |
| 2045 | </p> |
| 2046 | |
| 2047 | |
| 2048 | <h3>Query results class changes</h3> |
| 2049 | |
| 2050 | <p>Add a formatter to write a variable bindings query results in |
| 2051 | Turtle format with the schema used for the W3C DAWG and SPARQL |
| 2052 | Working group test cases. |
| 2053 | </p> |
| 2054 | |
| 2055 | <p><code>rasqal_query_results_formats_check2()</code> added with new |
| 2056 | flags arg for asking for a format to read or write, deprecating |
| 2057 | <code>rasqal_query_results_formats_check()</code> without it. |
| 2058 | </p> |
| 2059 | |
| 2060 | |
| 2061 | <h3>Row class changes</h3> |
| 2062 | |
| 2063 | <p>The <code>rasqal_row</code> gains a <code>group_id</code> field |
| 2064 | for returning group boundaries. Change of groups should be detected |
| 2065 | by a change in IDs between rows. |
| 2066 | </p> |
| 2067 | |
| 2068 | |
| 2069 | <h3>Service class changes</h3> |
| 2070 | |
| 2071 | <p>Added a <code>rasqal_service</code> class for executing remote |
| 2072 | queries against a SPARQL HTTP protocol endpoint and getting back a |
| 2073 | query results set. The data graphs attached get turned into |
| 2074 | <code>default-graph-uri</code> and <code>named-graph-uri</code> URI |
| 2075 | parameters to the request. |
| 2076 | </p> |
| 2077 | |
| 2078 | <p>Added constructor <code>rasqal_new_service()</code>, |
| 2079 | destructor <code>rasqal_free_service()</code> and methods |
| 2080 | <code>rasqal_service_set_www()</code> to set the WWW object |
| 2081 | <code>rasqal_service_set_format()</code> to set the accept |
| 2082 | request header and |
| 2083 | <code>rasqal_service_execute()</code> to execute the query |
| 2084 | returning the results. |
| 2085 | </p> |
| 2086 | |
| 2087 | |
| 2088 | <h3>Triples source class changes</h3> |
| 2089 | |
| 2090 | <p>Add a way for a triples source factory to return meaningful errors |
| 2091 | by adding a new <code>init_triples_source</code> factory method to |
| 2092 | the <code>rasqal_triples_source_factory</code> that takes a |
| 2093 | <code>rasqal_triples_error_handler</code> callback. The |
| 2094 | <code>RASQAL_TRIPLES_SOURCE_FACTORY_MAX_VERSION</code> is now 2 and |
| 2095 | ranges 1 to 2 are supported. |
| 2096 | </p> |
| 2097 | |
| 2098 | <p>Add a way for a triples source to indicate support for optional |
| 2099 | features by adding a <code>support_feature</code> method toe the |
| 2100 | <code>rasqal_triples_source</code> structure. The |
| 2101 | <code>RASQAL_TRIPLES_SOURCE_MAX_VERSION</code> is now 2 and |
| 2102 | ranges 1 to 2 are supported. |
| 2103 | </p> |
| 2104 | |
| 2105 | <p>Added enum <code>rasqal_triples_source_feature</code> with |
| 2106 | value <code>RASQAL_TRIPLES_SOURCE_FEATURE_IOSTREAM_DATA_GRAPH</code> |
| 2107 | to indicate a triple source supports reading data graphs from |
| 2108 | a <code>raptor_iostream</code>. |
| 2109 | </p> |
| 2110 | |
| 2111 | |
| 2112 | <h3>Variable class changes</h3> |
| 2113 | |
| 2114 | <p>Now a reference-counted class.</p> |
| 2115 | |
| 2116 | <p>Deprecated <code>rasqal_new_variable()</code> and |
| 2117 | <code>rasqal_new_variable_typed()</code> for |
| 2118 | <code>rasqal_variables_table_add()</code>. |
| 2119 | </p> |
| 2120 | |
| 2121 | |
| 2122 | <h3>Internal changes</h3> |
| 2123 | |
| 2124 | <p>All destructors accept NULL objects and do nothing. |
| 2125 | </p> |
| 2126 | |
| 2127 | <p>Add a Raptor V2-style raptor_syntax_description data model to |
| 2128 | Rasqal and use it to initialise query languages. It is not currently |
| 2129 | exposed in the API and may not be until Rasqal requires Raptor V2 when |
| 2130 | it can share code. |
| 2131 | </p> |
| 2132 | |
| 2133 | <p>Added an internal <code>rasqal_bindings</code> structure |
| 2134 | for SPARQL 1.1 <code>BINDINGS</code>. |
| 2135 | </p> |
| 2136 | |
| 2137 | <p>Add an internal query results modifiers structure |
| 2138 | rasqsal_solution_modifier class for use in storing group by, having, |
| 2139 | limit, offset information which together SPARQL 1.1 documentationc |
| 2140 | calls modifiers. |
| 2141 | </p> |
| 2142 | |
| 2143 | <p>Added rowsources for grouping, executing aggregated queries across |
| 2144 | groups, having filters per group. Modified the projection rowsource |
| 2145 | to handle aggregation. |
| 2146 | </p> |
| 2147 | |
| 2148 | |
| 2149 | <h3><code>roqet(1)</code> utility changes</h3> |
| 2150 | |
| 2151 | <p>Added support for serializing to graphs or bindings with the same |
| 2152 | Raptor serializer / Rasqal result formatter name such as for example |
| 2153 | 'json'. |
| 2154 | </p> |
| 2155 | |
| 2156 | <p>Added <code>-F NAME</code> option for specifying the data graph |
| 2157 | format; otherwise Raptor uses the guessing mechanism.</p> |
| 2158 | |
| 2159 | <p>Added support for reading a data graph from standard input (stdin) |
| 2160 | when the <code>-D</code> / <code>--data</code> , <code>-G</code> / |
| 2161 | <code>--name</code> or <code>-s</code> / <code>--source</code> |
| 2162 | options are used with value <code>'-'</code>. |
| 2163 | </p> |
| 2164 | |
| 2165 | <p>Added <code>-p</code> / <code>--protocol</code> |
| 2166 | <em>SERVICE-URI</em> option to execute a remote query at a SPARQL |
| 2167 | HTTP protocol URI. This is used with <code>-e</code> <em>query |
| 2168 | string</em> to specify the query to execute remotely. |
| 2169 | </p> |
| 2170 | |
| 2171 | |
| 2172 | <h3>Configuration and build changes</h3> |
| 2173 | |
| 2174 | <p>Use AC_LANG_SOURCE for gcc flag test. |
| 2175 | </p> |
| 2176 | |
| 2177 | <h3>Other changes</h3> |
| 2178 | |
| 2179 | <p>The srxread and srxwrite example programs now build when Rasqal is |
| 2180 | configured and built with raptor V2. |
| 2181 | </p> |
| 2182 | |
| 2183 | |
| 2184 | <h2 id="rel0_9_20"><a name="rel0_9_20">Rasqal 0.9.20 Changes</a></h2> |
| 2185 | |
| 2186 | <p>The main changes in this release are:</p> |
| 2187 | <ul> |
| 2188 | <li>Support more SPARQL 1.1 Query and Update draft syntax and some |
| 2189 | execution semantics for new built-in expressions.</li> |
| 2190 | <li>Support building with Raptor V2 API as well as Raptor V1 API. The Raptor V2 API is only used if <code>--enable-raptor2</code> is given to <code>configure</code>.</li> |
| 2191 | </ul> |
| 2192 | |
| 2193 | <p>Fixed Issues:</p> |
| 2194 | <ul> |
| 2195 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=352">0000352</a>: CONSTRUCT with a LIMIT doesn't limit query results</li> |
| 2196 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=353">0000353</a>: CONSTRUCT with an ORDER always(?) returns an empty graph</li> |
| 2197 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=354">0000354</a>: Comparing xsd:int and xsd:integer fails in SPARQL</li> |
| 2198 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=360">0000360</a>: [PATCH] HTML Table results format</li> |
| 2199 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=374">0000374</a>: Solaris 10 'make check' failures</li> |
| 2200 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=377">0000377</a>: Cannot format results in roqet</li> |
| 2201 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=378">0000378</a>: Crash when cleaning up after a failed query containing unsupported syntax</li> |
| 2202 | </ul> |
| 2203 | |
| 2204 | |
| 2205 | <h3>Query API changes</h3> |
| 2206 | |
| 2207 | <p>Moved generate blank node ID functionality to world class. |
| 2208 | Deprecated |
| 2209 | <code>rasqal_query_set_default_generate_bnodeid_parameters()</code> |
| 2210 | for |
| 2211 | <code>rasqal_world_set_default_generate_bnodeid_parameters()</code>. |
| 2212 | Deprecated <code>rasqal_query_set_generate_bnodeid_handler()</code> |
| 2213 | for new function (with different handler signature) |
| 2214 | <code>rasqal_world_set_generate_bnodeid_handler()</code>. |
| 2215 | </p> |
| 2216 | |
| 2217 | <p>Added <code>rasqal_query_get_having_conditions_sequence()</code> and |
| 2218 | <code>rasqal_query_get_having_condition()</code> for getting access |
| 2219 | to the HAVING expression list in a query. |
| 2220 | </p> |
| 2221 | |
| 2222 | |
| 2223 | <h3>Expression and literal class changes</h3> |
| 2224 | |
| 2225 | <p>Added new literal type <code>RASQAL_LITERAL_INTEGER_SUBTYPE</code> |
| 2226 | to let subtypes of <code>xsd:integer</code> work in data and |
| 2227 | expression evaluation. |
| 2228 | </p> |
| 2229 | |
| 2230 | <p>Add support for SPARQL 1.1 draft <code>FILTER</code> expression |
| 2231 | operators including execution in the expression evaluation and |
| 2232 | writing the expression as SPARQL:</p> |
| 2233 | <table> |
| 2234 | <tr> |
| 2235 | <th>New <code>rasqal_op</code> enum</th> |
| 2236 | <th>SPARQL 1.1 expression</th> |
| 2237 | </tr> |
| 2238 | <tr> |
| 2239 | <td><code>RASQAL_EXPR_IF</code></td> |
| 2240 | <td>IF(condition expression, expr if true, expr if false)</td> |
| 2241 | </tr> |
| 2242 | <tr> |
| 2243 | <td><code>RASQAL_EXPR_URI</code></td> |
| 2244 | <td>URI(uri string)</td> |
| 2245 | </tr> |
| 2246 | <tr> |
| 2247 | <td><code>RASQAL_EXPR_IRI</code></td> |
| 2248 | <td>IRI(iri string)</td> |
| 2249 | </tr> |
| 2250 | <tr> |
| 2251 | <td><code>RASQAL_EXPR_STRLANG</code></td> |
| 2252 | <td>STRLANG(literal string, language string)</td> |
| 2253 | </tr> |
| 2254 | <tr> |
| 2255 | <td><code>RASQAL_EXPR_STRDT</code></td> |
| 2256 | <td>STRDT(literal string, datatype URI)</td> |
| 2257 | </tr> |
| 2258 | <tr> |
| 2259 | <td><code>RASQAL_EXPR_BNODE</code></td> |
| 2260 | <td>BNODE() and BNODE(string)</td> |
| 2261 | </tr> |
| 2262 | <tr> |
| 2263 | <td><code>RASQAL_EXPR_IN</code></td> |
| 2264 | <td>Expr IN ( list )</td> |
| 2265 | </tr> |
| 2266 | <tr> |
| 2267 | <td><code>RASQAL_EXPR_NOT_IN</code></td> |
| 2268 | <td>Expr NOT IN ( list )</td> |
| 2269 | </tr> |
| 2270 | </table> |
| 2271 | |
| 2272 | <p>Added expression evaluation and expression formatting support for |
| 2273 | the above new (non-aggregate) expression operations in: |
| 2274 | <code>rasqal_expression_clear()</code>, |
| 2275 | <code>rasqal_expression_visit()</code>, |
| 2276 | <code>rasqal_expression_write()</code>, |
| 2277 | <code>rasqal_expression_print()</code>, |
| 2278 | <code>rasqal_expression_is_constant()</code> and |
| 2279 | <code>rasqal_query_write_sparql_expression()</code>.</p> |
| 2280 | |
| 2281 | <p>Added <code>rasqal_op</code> enumeration values for built-in |
| 2282 | aggregate functions <code>RASQAL_EXPR_GROUP_CONCAT</code> and |
| 2283 | <code>RASQAL_EXPR_SAMPLE</code> but no expression execution. |
| 2284 | </p> |
| 2285 | |
| 2286 | <p>Added new bitflags <code>rasqal_expression_flags</code> for |
| 2287 | <code>rasqal_expression</code> flags with initial bitflags |
| 2288 | <code>RASQAL_EXPR_FLAG_DISTINCT</code> for distinct (aggregate functions) and |
| 2289 | <code>RASQAL_EXPR_FLAG_AGGREGATE</code> for aggregate functions. |
| 2290 | </p> |
| 2291 | |
| 2292 | <p>Added <code>rasqal_new_function_expression2()</code> for functions |
| 2293 | with parameters and optional bit flags deprecating |
| 2294 | <code>rasqal_new_function_expression()</code>. This is not |
| 2295 | capable of adding a user extension aggregate function. |
| 2296 | </p> |
| 2297 | |
| 2298 | <p>Added new <code>rasqal_new_aggregate_function_expression()</code> |
| 2299 | constructor for making a 1-arg built-in aggregate functions. |
| 2300 | This is not capable of adding a user extension aggregate function. |
| 2301 | </p> |
| 2302 | |
| 2303 | <p>The never used <code>RASQAL_EXPR_GROUP_COND_ASC</code> and |
| 2304 | <code>RASQAL_EXPR_GROUP_COND_DESC</code> are marked as obsolete. |
| 2305 | </p> |
| 2306 | |
| 2307 | <p>Updated documentation for <code>rasqal_expression_visit()</code>, |
| 2308 | <code>rasqal_graph_pattern_visit_fn</code> and |
| 2309 | <code>rasqal_expression_visit_fn</code> typedef to match what the code |
| 2310 | actually does.</p> |
| 2311 | |
| 2312 | <p>Added <code>rasqal_new_group_concat_expression()</code> for |
| 2313 | building SPARQL GROUP_CONCAT() expressions with flags, non-empty list |
| 2314 | of expressions and optional literal separator. |
| 2315 | </p> |
| 2316 | |
| 2317 | |
| 2318 | <h3>SPARQL query language changes</h3> |
| 2319 | |
| 2320 | <p>Support latest |
| 2321 | <a href="http://www.w3.org/TR/2010/WD-sparql11-query-20100601/">SPARQL 1.1 Query W3C working draft of 1 June 2010</a> |
| 2322 | syntax such as:</p> |
| 2323 | |
| 2324 | <p>For SPARQL 1.1 Query, allow <code>DISTINCT</code> optionally before extension function |
| 2325 | expressions with new flag <code>RASQAL_EXPR_FLAG_DISTINCT</code>.</p> |
| 2326 | |
| 2327 | <p>Added draft SPARQL 1.1 Query <code>IF()</code>, <code>URI()</code>, |
| 2328 | <code>IRI()</code>, <code>STRLANG()</code>, <code>STRDT()</code> and |
| 2329 | <code>BNODE()</code> (with optional expression arg) built-in |
| 2330 | expressions.</p> |
| 2331 | |
| 2332 | <p>Added draft SPARQL 1.1 Query <code>IN()</code> and <code>NOT IN()</code> |
| 2333 | operators.</p> |
| 2334 | |
| 2335 | <p>Adjust draft SPARQL 1.1 Query select expression syntax to latest |
| 2336 | version: '(' Expr 'AS' Var ')' with required braces. |
| 2337 | </p> |
| 2338 | |
| 2339 | <p>Added draft SPARQL 1.1 Query aggregate functions |
| 2340 | <code>GROUP_CONCAT()</code> and <code>SAMPLE()</code> |
| 2341 | with new expression enum |
| 2342 | <code>RASQAL_EXPR_GROUP_CONCAT</code> and |
| 2343 | <code>RASQAL_EXPR_SAMPLE</code> as well as formatting to SPARQL and |
| 2344 | placeholder expression handling implementation - no aggregate expression |
| 2345 | evaluation. Supports the optional <code>; SEPARATOR = |
| 2346 | "string"</code> syntax for GROUP_CONCAT(). |
| 2347 | </p> |
| 2348 | |
| 2349 | <p>Add support for draft SPARQL 1.1 Query syntax |
| 2350 | <code>GROUP BY</code> a list of select expressions and |
| 2351 | <code>HAVING</code> with a list of expressions. |
| 2352 | </p> |
| 2353 | |
| 2354 | <p>Add partial support for draft SPARQL 1.1 Query extension (aggregate) |
| 2355 | functions with DISTINCT and parameters. |
| 2356 | </p> |
| 2357 | |
| 2358 | <p>Support latest |
| 2359 | <a href="http://www.w3.org/TR/2010/WD-sparql11-update-20100601/">SPARQL 1.1 Update W3C working draft of 1 June 2010</a> |
| 2360 | syntax such as:</p> |
| 2361 | <ul> |
| 2362 | <li><code>CLEAR GRAPH DEFAULT</code></li> |
| 2363 | <li><code>CLEAR GRAPH <em>uri</em></code></li> |
| 2364 | <li><code>DELETE DATA { ... }</code></li> |
| 2365 | <li><code>DELETE DATA { GRAPH <em>uri</em> { ... } } INSERT DATA { GRAPH <em>uri</em> { ... } }</code></li> |
| 2366 | <li><code>DELETE WHERE { ... }</code></li> |
| 2367 | <li><code>DELETE WHERE { GRAPH <em>uri</em> { ... } }</code></li> |
| 2368 | <li><code>DELETE { ... } WHERE { ... }</code></li> |
| 2369 | <li><code>DROP GRAPH <em>uri</em></code></li> |
| 2370 | <li><code>DROP SILENT GRAPH <em>uri</em></code></li> |
| 2371 | <li><code>INSERT DATA { ... }</code></li> |
| 2372 | <li><code>INSERT { GRAPH <em>uri</em> { ... } } WHERE { ... }</code></li> |
| 2373 | <li><code>LOAD <em>uri</em> INTO DEFAULT</code></li> |
| 2374 | <li><code>LOAD <em>uri</em> INTO <em>uri</em></code></li> |
| 2375 | <li><code>LOAD <em>uri</em></code></li> |
| 2376 | <li><code>WITH <em>uri</em> DELETE { ... } INSERT { ... } USING NAMED <em>uri</em> WHERE { ... }</code></li> |
| 2377 | </ul> |
| 2378 | <p>Not all cases may be covered |
| 2379 | yet since the grammar is hard to implement and may be ambiguous. |
| 2380 | </p> |
| 2381 | |
| 2382 | <h3>LAQRS syntax support</h3> |
| 2383 | |
| 2384 | <p>Start giving deprecated messages for LAQRS <code>SELECT ... AS |
| 2385 | varname</code> (bare variable name) instead of the draft SPARQL 1.1 |
| 2386 | Query <code>SELECT ... AS ?varname</code> with $ or ? symbol. |
| 2387 | </p> |
| 2388 | |
| 2389 | |
| 2390 | <h3>Query engine changes</h3> |
| 2391 | |
| 2392 | <p>Make query result limit and offset work when no <code>ORDER |
| 2393 | BY</code> is part of the query (yes - this is a well-defined count of |
| 2394 | under-defined actual results) with the original query engine. |
| 2395 | Related to |
| 2396 | <a href="http://bugs.librdf.org/mantis/view.php?id=352">Issue#0000352</a>. |
| 2397 | </p> |
| 2398 | |
| 2399 | <p>Add datatype support for <code>xsd:date</code> for value |
| 2400 | normalization and comparisons. |
| 2401 | </p> |
| 2402 | |
| 2403 | <p>Handle when results are sorted before used to build triples via |
| 2404 | <code>CONSTRUCT</code>, which has no practical use since triples are |
| 2405 | not ordered and is less efficient since you have to read all the |
| 2406 | results into memory. Anyway, it works now. |
| 2407 | </p> |
| 2408 | |
| 2409 | |
| 2410 | <h3>Query results formatter class changes</h3> |
| 2411 | |
| 2412 | <p>Added an HTML Table results format (name 'table') by Nicholas J Humfrey |
| 2413 | using patch from |
| 2414 | <a href="http://bugs.librdf.org/mantis/view.php?id=360">Issue#0000360</a>. |
| 2415 | </p> |
| 2416 | |
| 2417 | <p>A NULL base_uri is valid in |
| 2418 | <code>rasqal_query_results_formatter_write()</code></p> |
| 2419 | |
| 2420 | |
| 2421 | <h3>World class changes</h3> |
| 2422 | |
| 2423 | <p>Moved generate blank node ID functionality to |
| 2424 | world class, deprecating the query class methods. |
| 2425 | Added |
| 2426 | <code>rasqal_world_set_default_generate_bnodeid_parameters()</code>, |
| 2427 | <code>rasqal_world_set_generate_bnodeid_handler()</code> with new |
| 2428 | handler typedef <code>rasqal_generate_bnodeid_handler2</code>. |
| 2429 | </p> |
| 2430 | |
| 2431 | |
| 2432 | <h3>Other changes</h3> |
| 2433 | |
| 2434 | <p>Made all rasqal destructors simply return when given a |
| 2435 | <code>NULL</code> object pointer. They mostly did this already. |
| 2436 | </p> |
| 2437 | |
| 2438 | <p>Updated <code>rasqal.spec.in</code> based on fedora spec (not tested) |
| 2439 | </p> |
| 2440 | |
| 2441 | <p>Replace <code>strncpy()</code> with <code>memcpy()</code> since |
| 2442 | the the <code>strncpy()</code> zero-checking and zero-filling |
| 2443 | semantics are never needed. |
| 2444 | </p> |
| 2445 | |
| 2446 | <p>Minimum raptor version is now 1.4.19 so that the |
| 2447 | <code>raptor_world</code> typedef is always available. |
| 2448 | </p> |
| 2449 | |
| 2450 | |
| 2451 | |
| 2452 | <h2 id="rel0_9_19"><a name="rel0_9_19">Rasqal 0.9.19 Changes</a></h2> |
| 2453 | |
| 2454 | <p>The only change to this release is to fix the pkg-config |
| 2455 | <code>rasqal.pc</code> file to to restore the dependency on raptor |
| 2456 | which was accidently deleted. Lesson learnt: do not commit code |
| 2457 | after midnight local time. |
| 2458 | </p> |
| 2459 | |
| 2460 | |
| 2461 | <h2 id="rel0_9_18"><a name="rel0_9_18">Rasqal 0.9.18 Changes</a></h2> |
| 2462 | |
| 2463 | <p>The main changes in this release are:</p> |
| 2464 | <ul> |
| 2465 | <li>Add initial draft parsing and API (NOT execution) support for |
| 2466 | <a href="http://www.w3.org/TR/2010/WD-sparql11-update-20100126/">SPARQL 1.1 Update W3C Working Draft of 2010-01-26</a>.</li> |
| 2467 | <li>Add public APIs (row, results, result formatter, variables table) so that query results can be built, read and written without a query.</li> |
| 2468 | <li>Add API resilience checks for invalid NULL pointer arguments.</li> |
| 2469 | </ul> |
| 2470 | |
| 2471 | |
| 2472 | <p>Fixed Issues:</p> |
| 2473 | <ul> |
| 2474 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=320">0000320</a>: Add a void* user_data field to rasqal_variable</li> |
| 2475 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=323">0000323</a>: Official MIME Type for JSON isn't text/json</li> |
| 2476 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=343">0000343</a>: Mime type for 'table' results format is text/plan</li> |
| 2477 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=345">0000345</a>: MIME Type and URI for TSV and CSV</li> |
| 2478 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=347">0000347</a>: rasqal linking fix</li> |
| 2479 | </ul> |
| 2480 | |
| 2481 | |
| 2482 | <h3>Query API Changes</h3> |
| 2483 | |
| 2484 | <p>A user data <code>void* user_data</code> field was added to the |
| 2485 | <code>rasqal_variable</code> structure to allow application code to |
| 2486 | store additional information.</p> |
| 2487 | |
| 2488 | <p>Added a new <code>rasqal_query_verb</code> enum value for SPARQL |
| 2489 | 1.1 (draft) Update: <code>RASQAL_QUERY_VERB_UPDATE</code> which |
| 2490 | indicates that a sequence of update operations are available in the |
| 2491 | query structure, rather than a query (SELECT, ASK, DESCRIBE). |
| 2492 | </p> |
| 2493 | |
| 2494 | <p>Added a <code>rasqal_update_operation</code> class for holding |
| 2495 | an updates that adds and/or removes triples from a graph (with |
| 2496 | possible conditional where) or does a graph administration |
| 2497 | operation on a grpah. |
| 2498 | </p> |
| 2499 | |
| 2500 | <p>Added an <code>rasqal_update_type</code> enum for the types of |
| 2501 | graph update - clear, drop, delete, insert and, load. |
| 2502 | </p> |
| 2503 | |
| 2504 | <p>Added <code>rasqal_update_type_label()</code> to get a label for |
| 2505 | a rasqal-update_type. |
| 2506 | </p> |
| 2507 | <pre> |
| 2508 | const char* rasqal_update_type_label(rasqal_update_type type); |
| 2509 | </pre> |
| 2510 | |
| 2511 | <p>Added an <code>rasqal_update_flags</code> enum for capturing |
| 2512 | update operations flags such as SPARQL 1.1 Update <code>SILENT</code> |
| 2513 | for silent graph administration operations and <code>DATA</code> for |
| 2514 | bulk insert/delete data, rather than graph pattern templates with |
| 2515 | variables. |
| 2516 | </p> |
| 2517 | |
| 2518 | <p>Added <code>rasqal_query_get_update_operations_sequence()</code> |
| 2519 | to get the sequence of updates from a query. Added |
| 2520 | <code>rasqal_query_get_update_operation()</code> get an individual |
| 2521 | update operation from a query via an index.</p> |
| 2522 | <pre> |
| 2523 | raptor_sequence* rasqal_query_get_update_operations_sequence(rasqal_query* query); |
| 2524 | |
| 2525 | rasqal_update_operation* rasqal_query_get_update_operation(rasqal_query* query, |
| 2526 | int idx); |
| 2527 | </pre> |
| 2528 | |
| 2529 | |
| 2530 | <h3>Query Results Class Changes</h3> |
| 2531 | |
| 2532 | <p><code>rasqal_new_query_results()</code> added to public API to |
| 2533 | construct a standalone query result set without being the result of a |
| 2534 | query execution. (The destructor is already present). Added method |
| 2535 | <code>rasqal_query_results_add_row()</code> to add a row to a query |
| 2536 | result set. |
| 2537 | </p> |
| 2538 | <pre> |
| 2539 | rasqal_query_results* rasqal_new_query_results(rasqal_world* world, |
| 2540 | rasqal_query* query, rasqal_query_results_type type, |
| 2541 | rasqal_variables_table* vars_table); |
| 2542 | |
| 2543 | int rasqal_query_results_add_row(rasqal_query_results* query_results, |
| 2544 | rasqal_row* row); |
| 2545 | </pre> |
| 2546 | |
| 2547 | <p><code>rasqal_query_results_type</code> enum added to public API |
| 2548 | for use with <code>rasqal_new_query_results()</code>. |
| 2549 | </p> |
| 2550 | |
| 2551 | |
| 2552 | <h3>Query Results Formatter Class Changes</h3> |
| 2553 | |
| 2554 | <p>Registered URIs for the CSV and TSV query result formats and fixed |
| 2555 | the mime types for those as well as the JSON format as reported in issues |
| 2556 | <a href="http://bugs.librdf.org/mantis/view.php?id=345">Issue #0000345</a> |
| 2557 | and |
| 2558 | <a href="http://bugs.librdf.org/mantis/view.php?id=323">Issue #0000323</a>. |
| 2559 | </p> |
| 2560 | |
| 2561 | <p>Added <code>rasqal_new_query_results_formatter2()</code> with |
| 2562 | format name, mime type and URI args deprecating |
| 2563 | <code>rasqal_new_query_results_formatter()</code> and |
| 2564 | <code>rasqal_new_query_results_formatter_by_mime_type()</code>. |
| 2565 | </p> |
| 2566 | <pre> |
| 2567 | rasqal_query_results_formatter* rasqal_new_query_results_formatter2(rasqal_world* world, |
| 2568 | const char *name, const char *mime_type, raptor_uri* format_uri); |
| 2569 | </pre> |
| 2570 | |
| 2571 | <p>Added <code>rasqal_query_results_write2()</code> and |
| 2572 | <code>rasqal_query_results_read2()</code> with both name and |
| 2573 | mime_type args deprecating <code>rasqal_query_results_write()</code> |
| 2574 | and <code>rasqal_query_results_read()</code> respectively. |
| 2575 | </p> |
| 2576 | <pre> |
| 2577 | int rasqal_query_results_write2(raptor_iostream *iostr, |
| 2578 | rasqal_query_results *results, const char* name, const char* mime_type, |
| 2579 | raptor_uri *format_uri, raptor_uri *base_uri); |
| 2580 | |
| 2581 | int rasqal_query_results_read2(raptor_iostream *iostr, |
| 2582 | rasqal_query_results *results, const char* name, const char* mime_type, |
| 2583 | raptor_uri *format_uri, raptor_uri *base_uri); |
| 2584 | </pre> |
| 2585 | |
| 2586 | |
| 2587 | <h3>Query Result Row Class</h3> |
| 2588 | |
| 2589 | <p>Export the query result row class to the public API to allow |
| 2590 | creating standalone query results set without a query. |
| 2591 | </p> |
| 2592 | |
| 2593 | <p>Added <code>rasqal_new_row_for_size()</code>, |
| 2594 | <code>rasqal_free_row()</code> to construct and destruct a row and |
| 2595 | <code>rasqal_row_set_value_at()</code> to set row literal values. |
| 2596 | </p> |
| 2597 | |
| 2598 | <pre> |
| 2599 | rasqal_row* rasqal_new_row_for_size(rasqal_world* world, int size); |
| 2600 | |
| 2601 | void rasqal_free_row(rasqal_row* row); |
| 2602 | |
| 2603 | int rasqal_row_set_value_at(rasqal_row* row, int offset, |
| 2604 | rasqal_literal* value); |
| 2605 | </pre> |
| 2606 | |
| 2607 | |
| 2608 | <h3>Variables Table Class</h3> |
| 2609 | |
| 2610 | <p>Added variables table class <code>rasqal_variables_table</code> to |
| 2611 | the public API to allow use in creating a standalone query results. |
| 2612 | </p> |
| 2613 | |
| 2614 | <p>Added <code>rasqal_new_variables_table()</code> and |
| 2615 | <code>rasqal_free_variables_table()</code> to construct and destroy a |
| 2616 | variables table. Added method |
| 2617 | <code>rasqal_variables_table_add()</code> to add a variable to the |
| 2618 | variables table. |
| 2619 | </p> |
| 2620 | <pre> |
| 2621 | rasqal_variables_table* rasqal_new_variables_table(rasqal_world* world); |
| 2622 | |
| 2623 | void rasqal_free_variables_table(rasqal_variables_table* vt); |
| 2624 | |
| 2625 | rasqal_variable* rasqal_variables_table_add(rasqal_variables_table* vt, |
| 2626 | rasqal_variable_type type, const unsigned char *name, |
| 2627 | rasqal_literal *value); |
| 2628 | </pre> |
| 2629 | |
| 2630 | |
| 2631 | <h3>SPARQL Changes</h3> |
| 2632 | |
| 2633 | <p>Added syntax-only and API support (<strong>no execution</strong>) |
| 2634 | for the |
| 2635 | <a href="http://www.w3.org/TR/2010/WD-sparql11-update-20100126/">SPARQL 1.1 Update W3C Working Draft of 2010-01-26</a> |
| 2636 | syntax. These are only available when using the 'laqrs' query |
| 2637 | language name, until SPARQL 1.1 is stable.</p> |
| 2638 | |
| 2639 | <p>Added new lexer support for keywords: WITH, CLEAR, CREATE, SILENT, |
| 2640 | DATA, DROP, LOAD</p> |
| 2641 | |
| 2642 | <p>Added <code>CLEAR</code> and <code>CLEAR GRAPH uri</code></p> |
| 2643 | |
| 2644 | <p>Added <code>DROP GRAPH uri</code></p> |
| 2645 | |
| 2646 | <p>Added <code>INSERT DATA { triples }</code></p> |
| 2647 | |
| 2648 | <p>Added <code>DELETE templates</code> to delete multiple subgraphs.</p> |
| 2649 | |
| 2650 | <p>Added <code>DELETE DATA { triples }</code></p> |
| 2651 | |
| 2652 | <p>Added <code>LOAD uri</code> and <code>LOAD uri INTO graph-uri</code></p> |
| 2653 | |
| 2654 | <p>Added <code>WITH uri DELETE { ... } INSERT { ... } WHERE ...</code> |
| 2655 | update form since other combinations are ambiguous. |
| 2656 | </p> |
| 2657 | |
| 2658 | <p><strong>NOTE:</strong> The older LAQRS experimental INSERT and |
| 2659 | DELETE formats are supported but deprecated.</p> |
| 2660 | |
| 2661 | |
| 2662 | <h3>Query Engine changes</h3> |
| 2663 | |
| 2664 | <p>Nobody reported it, but decimal division was totally broken. Fixed |
| 2665 | it to do division and not add! |
| 2666 | </p> |
| 2667 | |
| 2668 | |
| 2669 | <h3>Other Changes</h3> |
| 2670 | |
| 2671 | <p>Multiple code style updates and code file reorganizing. |
| 2672 | </p> |
| 2673 | |
| 2674 | <p>Link <code>roqet</code> directly with <code>-lraptor</code> to get |
| 2675 | raptor symbols used linked directly, to enable alternate library |
| 2676 | linking approaches to work. Based on the request in |
| 2677 | <a href="http://bugs.librdf.org/mantis/view.php?id=347">Fixes Issue#0000347</a> |
| 2678 | and |
| 2679 | <a href="https://bugzilla.redhat.com/show_bug.cgi?id=564885">Fedora bug 564885</a>. |
| 2680 | </p> |
| 2681 | |
| 2682 | <p>Added checks for the public API methods to ensure NULL pointers |
| 2683 | are not accepted or used. |
| 2684 | </p> |
| 2685 | |
| 2686 | <p>Added example code for constructing a query result set without a query |
| 2687 | </p> |
| 2688 | |
| 2689 | <p>Updated <code>configure</code> and the build system to use silent |
| 2690 | rules for the maintainer (by default), or when |
| 2691 | <code>--enable-silent-rules</code> is passed to |
| 2692 | <code>configure</code>. This feature requires building with automake |
| 2693 | 1.11 which requires autoconf 2.62 or newer when building from GIT. |
| 2694 | </p> |
| 2695 | |
| 2696 | <p><code>autogen.sh</code> script was updated to enforce the |
| 2697 | autotools versions above.</p> |
| 2698 | |
| 2699 | <p>The rasqal.pc file now uses the Requires.private field for raptor; |
| 2700 | it should only be in the link line with<br /> |
| 2701 | <code>pkg-config --static ...</code> is used. |
| 2702 | </p> |
| 2703 | |
| 2704 | <p>Enforce that only raptor versions <1.9.0 are supported. No |
| 2705 | Raptor2 or Raptor2 alpha support yet. |
| 2706 | </p> |
| 2707 | |
| 2708 | |
| 2709 | <h2 id="rel0_9_17"><a name="rel0_9_17">Rasqal 0.9.17 Changes</a></h2> |
| 2710 | |
| 2711 | <blockquote> |
| 2712 | <p><b>WARNING: ABI AND API CHANGED IN THIS RELEASE.</b></p> |
| 2713 | |
| 2714 | <p>This means: functions and structs were removed, modified and added.</p> |
| 2715 | |
| 2716 | <p>Consequently the shared library major soname version has changed from 1 to 2.</p> |
| 2717 | |
| 2718 | </blockquote> |
| 2719 | |
| 2720 | <p>The main change in this release is to add a |
| 2721 | <a href="#query-engine-0917">new query engine</a> |
| 2722 | and to enable it as the default query engine. It supports more |
| 2723 | of the SPARQL query algebra such as groups and optionals. There |
| 2724 | were many other changes and fixes. |
| 2725 | </p> |
| 2726 | |
| 2727 | <p>Fixed Issues: (most of them in query engine 2)</p> |
| 2728 | <ul> |
| 2729 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=077">Issue#0000077</a>: OPTIONAL messes up query results </li> |
| 2730 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=128">Issue#0000128</a>: GROUP graph pattern support in the query engine</li> |
| 2731 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=168">Issue#0000168</a>: Wrong processing of the function "bound" with "OPTIONAL"</li> |
| 2732 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=258">Issue#0000258</a>: Using FILTER with OPTIONAL in SPARQL queries</li> |
| 2733 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=261">Issue#0000261</a>: Some SPARQL queries with multiple OPTIONAL patterns fail to return results</li> |
| 2734 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=271">Issue#0000271</a>: rasqal library does not compile cleanly when using g++ compiler</li> |
| 2735 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=279">Issue#0000279</a>: JSON query binding serializer is returning illegal JSON - extra double quotes before "ordered" and "distinct"</li> |
| 2736 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=305">Issue#0000305</a>: bound gives incoherent results</li> |
| 2737 | </ul> |
| 2738 | |
| 2739 | |
| 2740 | <h3>Rasqal world API changes</h3> |
| 2741 | |
| 2742 | <p>Added methods for setting of an already-opened raptor library to pass |
| 2743 | into rasqal, rather than it creating one itself. |
| 2744 | <code>rasqal_world_open()</code> can then be called to do the actual |
| 2745 | initialisation:</p> |
| 2746 | <pre> |
| 2747 | int rasqal_world_open(rasqal_world* world); |
| 2748 | |
| 2749 | void rasqal_world_set_raptor(rasqal_world* world, |
| 2750 | raptor_world* raptor_world_ptr); |
| 2751 | |
| 2752 | raptor_world *rasqal_world_get_raptor(rasqal_world* world); |
| 2753 | </pre> |
| 2754 | |
| 2755 | <p>Exported new C defines for the library versions: |
| 2756 | <code>RASQAL_VERSION</code> in 6-digit integer MMNNRR format (Major, miNor, Release), |
| 2757 | <code>RASQAL_VERSION_STRING</code> in string "MM.NN.RR" format, |
| 2758 | <code>RASQAL_VERSION_MAJOR</code> for integer major version number, |
| 2759 | <code>RASQAL_VERSION_MINOR</code> for integer minor version number and |
| 2760 | <code>RASQAL_VERSION_RELEASE</code> for integer release number. |
| 2761 | </p> |
| 2762 | |
| 2763 | <p>API CHANGE: |
| 2764 | <code>rasqal_features_enumerate()</code> gains an |
| 2765 | initial rasqal_world argument to become a method of the world class: |
| 2766 | </p> |
| 2767 | <pre> |
| 2768 | int rasqal_features_enumerate(rasqal_world* world, |
| 2769 | const rasqal_feature feature, const char **name, |
| 2770 | raptor_uri **uri, const char **label); |
| 2771 | </pre> |
| 2772 | |
| 2773 | <p>API CHANGE: |
| 2774 | <code>rasqal_feature_from_uri()</code> gains an initial |
| 2775 | rasqal_world argument to become a method of the world class: |
| 2776 | </p> |
| 2777 | <pre> |
| 2778 | rasqal_feature rasqal_feature_from_uri(rasqal_world* world, |
| 2779 | raptor_uri *uri); |
| 2780 | </pre> |
| 2781 | |
| 2782 | |
| 2783 | <h3>Data Graph API changes</h3> |
| 2784 | |
| 2785 | <p>API CHANGE: The <code>rasqal_data_graph</code> structure gains a |
| 2786 | new world reference pointer field. |
| 2787 | </p> |
| 2788 | |
| 2789 | |
| 2790 | <p>API CHANGE: |
| 2791 | <code>rasqal_new_data_graph()</code> gains an initial |
| 2792 | rasqal_world argument: |
| 2793 | </p> |
| 2794 | <pre> |
| 2795 | rasqal_data_graph* rasqal_new_data_graph(rasqal_world* world, |
| 2796 | raptor_uri* uri, raptor_uri* name_uri, int flags); |
| 2797 | </pre> |
| 2798 | |
| 2799 | |
| 2800 | <h3>Expression API changes</h3> |
| 2801 | |
| 2802 | <p> |
| 2803 | <code>rasqal_op</code> enumeration gains values for LAQRS |
| 2804 | (possible SPARQL 1.1) expression operators: |
| 2805 | <code>RASQAL_EXPR_SUM</code>, |
| 2806 | <code>RASQAL_EXPR_AVG</code>, |
| 2807 | <code>RASQAL_EXPR_MIN</code> and |
| 2808 | <code>RASQAL_EXPR_MAX</code>. |
| 2809 | It also gains <code>RASQAL_EXPR_COALESCE</code> for LAQRS experimental |
| 2810 | coalesce expression <code>COALESCE(<em>expression list</em>)</code> |
| 2811 | </p> |
| 2812 | |
| 2813 | |
| 2814 | <p>API CHANGE: |
| 2815 | The <code>rasqal_expression</code> structure gains a new world reference |
| 2816 | pointer field. |
| 2817 | </p> |
| 2818 | |
| 2819 | <p>API CHANGE: |
| 2820 | All <code>rasqal_expression</code> constructors gain an |
| 2821 | initial rasqal_world argument: |
| 2822 | </p> |
| 2823 | <pre> |
| 2824 | rasqal_expression* rasqal_new_0op_expression(rasqal_world* world, |
| 2825 | rasqal_op op); |
| 2826 | rasqal_expression* rasqal_new_1op_expression(rasqal_world* world, |
| 2827 | rasqal_op op, rasqal_expression* arg); |
| 2828 | rasqal_expression* rasqal_new_2op_expression(rasqal_world* world, |
| 2829 | rasqal_op op, rasqal_expression* arg1, rasqal_expression* arg2); |
| 2830 | rasqal_expression* rasqal_new_3op_expression(rasqal_world* world, |
| 2831 | rasqal_op op, rasqal_expression* arg1, rasqal_expression* arg2, |
| 2832 | rasqal_expression* arg3); |
| 2833 | rasqal_expression* rasqal_new_string_op_expression(rasqal_world* world, |
| 2834 | rasqal_op op, rasqal_expression* arg1, rasqal_literal* literal); |
| 2835 | rasqal_expression* rasqal_new_literal_expression(rasqal_world* world, |
| 2836 | rasqal_literal* literal); |
| 2837 | rasqal_expression* rasqal_new_function_expression(rasqal_world* world, |
| 2838 | raptor_uri* name, raptor_sequence* args); |
| 2839 | rasqal_expression* rasqal_new_cast_expression(rasqal_world* world, |
| 2840 | raptor_uri* name, rasqal_expression *value); |
| 2841 | </pre> |
| 2842 | |
| 2843 | <p>API CHANGE: |
| 2844 | <code>rasqal_expression_evaluate()</code> gains an initial |
| 2845 | rasqal_world argument: |
| 2846 | </p> |
| 2847 | <pre> |
| 2848 | rasqal_literal* rasqal_expression_evaluate2(rasqal_world *world, |
| 2849 | raptor_locator *locator, rasqal_expression* e, int flags); |
| 2850 | </pre> |
| 2851 | |
| 2852 | <p>Added <code>rasqal_graph_pattern_get_origin()</code> |
| 2853 | to get the graph from a GRAPH graph pattern: |
| 2854 | </p> |
| 2855 | <pre> |
| 2856 | rasqal_literal* rasqal_graph_pattern_get_origin(rasqal_graph_pattern* gp); |
| 2857 | </pre> |
| 2858 | |
| 2859 | <p>Added <code>rasqal_graph_pattern_set_filter_expression()</code> |
| 2860 | and <code>rasqal_graph_pattern_get_filter_expression()</code> |
| 2861 | methods to set/get an expression for a filter graph pattern:</p> |
| 2862 | <pre> |
| 2863 | int rasqal_graph_pattern_set_filter_expression(rasqal_graph_pattern* gp, |
| 2864 | rasqal_expression* expr); |
| 2865 | |
| 2866 | rasqal_expression* |
| 2867 | rasqal_graph_pattern_get_filter_expression(rasqal_graph_pattern* gp); |
| 2868 | </pre> |
| 2869 | |
| 2870 | |
| 2871 | |
| 2872 | <h3>Graph Pattern API changes</h3> |
| 2873 | |
| 2874 | <p><code>rasqal_graph_pattern_operator</code> enumeration gains |
| 2875 | <code>RASQAL_GRAPH_PATTERN_OPERATOR_FILTER</code> for a filter graph pattern |
| 2876 | and <code>RASQAL_GRAPH_PATTERN_OPERATOR_LET</code> for LAQRS experimental |
| 2877 | assignment 'graph pattern'. |
| 2878 | </p> |
| 2879 | |
| 2880 | <p>API CHANGE: |
| 2881 | Removed functions |
| 2882 | <code>rasqal_graph_pattern_add_constraint()</code>, |
| 2883 | <code>rasqal_graph_pattern_get_constraint_sequence()</code> and |
| 2884 | <code>rasqal_graph_pattern_get_constraint()</code>. |
| 2885 | These are replaced by filter graph pattern with expression - functions |
| 2886 | <code>rasqal_graph_pattern_set_filter_expression</code> and |
| 2887 | <code>rasqal_graph_pattern_get_filter_expression()</code>. |
| 2888 | </p> |
| 2889 | |
| 2890 | |
| 2891 | <h3>LAQRS Changes</h3> |
| 2892 | |
| 2893 | <p>LAQRS is now available in the configuration and does not need to |
| 2894 | be explicitly selected with <code>configure</code>.</p> |
| 2895 | |
| 2896 | <p>Add <code>SUM()</code>, <code>AVG()</code>, <code>MIN()</code> and |
| 2897 | <code>MAX()</code> aggregate expressions to LAQRS. Supported in |
| 2898 | syntax only, not in any of the query engines. |
| 2899 | </p> |
| 2900 | |
| 2901 | <p>Add <code>LET ?var := expression</code> experimental syntax. |
| 2902 | Query engine 2 can execute this.</p> |
| 2903 | |
| 2904 | <p>Add <code>COALESCE(<em>expression list</em>)</code> experimental |
| 2905 | expression to return the first defined expression value in the |
| 2906 | list. Query engines 1 and 2 can execute this.</p> |
| 2907 | |
| 2908 | |
| 2909 | <h3>Literal API changes</h3> |
| 2910 | |
| 2911 | <p>API CHANGE: |
| 2912 | Reordered <code>rasqal_literal_type</code> enumeration |
| 2913 | to match numeric type promotion order: float is now between integer and double. |
| 2914 | Also added |
| 2915 | <code>RASQAL_LITERAL_XSD_STRING</code> for xsd:string typed literals and |
| 2916 | <code>RASQAL_LITERAL_UDT</code> for unknown data typed literals. |
| 2917 | Both were separated out of <code>RASQAL_LITERAL_STRING</code> which |
| 2918 | is now for RDF plain literals and plain/typed turned into RDF terms only |
| 2919 | </p> |
| 2920 | |
| 2921 | <p>Added <code>rasqal_literal_get_rdf_term_type()</code> method to return |
| 2922 | the RDF term type of a literal as a <code>rasqal_literal_type</code> |
| 2923 | - uri, blank node, literal or cannot be represented (e.g. qname or |
| 2924 | internal literal types). |
| 2925 | </p> |
| 2926 | <pre> |
| 2927 | rasqal_literal_type rasqal_literal_get_rdf_term_type(rasqal_literal* l); |
| 2928 | </pre> |
| 2929 | |
| 2930 | <p>Added <code>rasqal_literal_same_term()</code> method to perform |
| 2931 | SPARQL sameTerm() comparison. |
| 2932 | </p> |
| 2933 | <pre> |
| 2934 | int rasqal_literal_same_term(rasqal_literal* l1, rasqal_literal* l2); |
| 2935 | </pre> |
| 2936 | |
| 2937 | <p>Added <code>rasqal_literal_is_rdf_literal()</code> method |
| 2938 | to check if a literal is an RDF literal (not qname or other internal |
| 2939 | types). |
| 2940 | </p> |
| 2941 | <pre> |
| 2942 | int rasqal_literal_is_rdf_literal(rasqal_literal* l); |
| 2943 | </pre> |
| 2944 | |
| 2945 | |
| 2946 | <h3>Prefix API changes</h3> |
| 2947 | |
| 2948 | <p>API CHANGE: |
| 2949 | The <code>rasqal_prefix</code> structure gain a new world reference |
| 2950 | pointer field. |
| 2951 | </p> |
| 2952 | |
| 2953 | <p>API CHANGE: |
| 2954 | <code>rasqal_new_prefix()</code> gains an initial rasqal_world argument: |
| 2955 | </p> |
| 2956 | <pre> |
| 2957 | rasqal_prefix* rasqal_new_prefix(rasqal_world* world, |
| 2958 | const unsigned char* prefix, raptor_uri* uri); |
| 2959 | </pre> |
| 2960 | |
| 2961 | |
| 2962 | <h3>Query API changes</h3> |
| 2963 | |
| 2964 | <p>Added <code>rasqal_query_dataset_contains_named_graph()</code> |
| 2965 | method to check if a named graph is in a dataset:</p> |
| 2966 | <pre> |
| 2967 | int rasqal_query_dataset_contains_named_graph(rasqal_query* query, |
| 2968 | raptor_uri *graph_uri); |
| 2969 | </pre> |
| 2970 | |
| 2971 | |
| 2972 | <h3>Query Formatter Changes</h3> |
| 2973 | |
| 2974 | <p>SPARQL <code>DESCRIBE</code> no longer writes commas between terms. |
| 2975 | </p> |
| 2976 | |
| 2977 | |
| 2978 | <h3>Query Results API changes</h3> |
| 2979 | |
| 2980 | <p>Added <code>rasqal_query_results_get_query()</code> method to get |
| 2981 | the associated query:</p> |
| 2982 | <pre> |
| 2983 | rasqal_query* |
| 2984 | rasqal_query_results_get_query(rasqal_query_results* query_results); |
| 2985 | </pre> |
| 2986 | |
| 2987 | <p>Added <code>rasqal_graph_pattern_variable_bound_in()</code> method |
| 2988 | to check if a graph pattern in a query defines a variable</p> |
| 2989 | <pre> |
| 2990 | int rasqal_graph_pattern_variable_bound_in(rasqal_graph_pattern *gp, |
| 2991 | rasqal_variable *v); |
| 2992 | </pre> |
| 2993 | |
| 2994 | |
| 2995 | <h3>Query Results Formatter Changes</h3> |
| 2996 | |
| 2997 | <p>SPARQL/JSON: Do not emit double " for distinct/ordered flags. |
| 2998 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=279">Issue #0000279</a> |
| 2999 | </p> |
| 3000 | |
| 3001 | <p>Added comma-separated values (CSV), tab-separated values (TSV) and |
| 3002 | text table output formats with names <code>csv</code>, |
| 3003 | <code>tsv</code> and <code>table</code>. |
| 3004 | </p> |
| 3005 | |
| 3006 | |
| 3007 | <h3>RDQL Changes</h3> |
| 3008 | |
| 3009 | <p>Some updates to handle refactored query list of constraint |
| 3010 | expressions switching to a filter graph pattern. RDQL only |
| 3011 | has 0 or 1 such expressions in a single query. |
| 3012 | </p> |
| 3013 | |
| 3014 | |
| 3015 | <h3>SPARQL Changes</h3> |
| 3016 | |
| 3017 | <p>Ensure <em>GroupOrUnionGraphPattern</em> rule constructs the |
| 3018 | sequence of graph patterns in document order. |
| 3019 | </p> |
| 3020 | |
| 3021 | <p><em>OptionalGraphPattern</em> rule is now a list of 1 group graph |
| 3022 | patterns. |
| 3023 | </p> |
| 3024 | |
| 3025 | <p>Fix support for <code><></code> URI literal. |
| 3026 | </p> |
| 3027 | |
| 3028 | <p>Support <code>\b</code>, <code>\f</code>, <code>\'</code> and |
| 3029 | <code>\"</code> escapes in all types of quoted literals. |
| 3030 | </p> |
| 3031 | |
| 3032 | <p>Fixed optional <code>WHERE</code> in parser to match SPARQL |
| 3033 | grammar - optional for <code>DESCRIBE</code>, but required for |
| 3034 | <code>SELECT</code>, <code>CONSTRUCT</code> and <code>ASK</code> |
| 3035 | queries.</p> |
| 3036 | |
| 3037 | |
| 3038 | <h3>Triples Source API changes</h3> |
| 3039 | |
| 3040 | <p>API CHANGE: |
| 3041 | The <code>rasqal_triples_source</code> and |
| 3042 | <code>rasqal_triples_source_factory</code> structures |
| 3043 | gain API version fields that must be set to a known API version. |
| 3044 | </p> |
| 3045 | |
| 3046 | <p>API CHANGE: |
| 3047 | The <code>rasqal_set_triples_source_factory()</code> function for |
| 3048 | registering a triples source factory now take a function with an int |
| 3049 | error return code, and it returns an int now:</p> |
| 3050 | <pre> |
| 3051 | int rasqal_set_triples_source_factory(rasqal_world* world, |
| 3052 | rasqal_triples_source_factory_register_fn register_fn, |
| 3053 | void* user_data); |
| 3054 | </pre> |
| 3055 | |
| 3056 | |
| 3057 | <h3>Variable API changes</h3> |
| 3058 | |
| 3059 | <p>API CHANGE: |
| 3060 | The <code>rasqal_variable</code> structure gains a variables table |
| 3061 | pointer. |
| 3062 | </p> |
| 3063 | |
| 3064 | |
| 3065 | <h3>Other API changes</h3> |
| 3066 | |
| 3067 | <p><code>rasqal_triple_parts</code> adds value |
| 3068 | <code>RASQAL_TRIPLE_NONE</code> for no parts. |
| 3069 | </p> |
| 3070 | |
| 3071 | <p><code>rasqal_compare_flags</code> enumeration gains |
| 3072 | <code>RASQAL_COMPARE_URI</code> - now also provides RDQL string to |
| 3073 | bool comparison. |
| 3074 | </p> |
| 3075 | |
| 3076 | <p>API CHANGE: |
| 3077 | <code>rasqal_new_xsd_decimal()</code> gains an initial rasqal_world argument: |
| 3078 | </p> |
| 3079 | <pre> |
| 3080 | rasqal_xsd_decimal* rasqal_new_xsd_decimal(rasqal_world* world); |
| 3081 | </pre> |
| 3082 | |
| 3083 | <p>Removed <code>rasqal_triple_flags</code> enumeration with unused |
| 3084 | values: <code>RASQAL_TRIPLE_FLAGS_EXACT</code>, |
| 3085 | <code>RASQAL_TRIPLE_FLAGS_OPTIONAL</code> and |
| 3086 | <code>RASQAL_TRIPLE_FLAGS_LAST</code> |
| 3087 | </p> |
| 3088 | |
| 3089 | |
| 3090 | <h3>Configure and Build Changes</h3> |
| 3091 | |
| 3092 | <p>configure now prefers <code>pkg-config raptor</code> to |
| 3093 | <code>raptor-config</code> but will accept both for now. |
| 3094 | <code>pkg-config</code> will not allow compiling against raptor in |
| 3095 | source tree in future. |
| 3096 | </p> |
| 3097 | |
| 3098 | <p>Added <code>--with-query-engine-version</code> to configure |
| 3099 | to allow selecting default query engine version - values 1 or 2. |
| 3100 | This is allowed for people to switch to old engine if necessary |
| 3101 | for some existing query that the new engine cannot handle. This |
| 3102 | option will be removed at some point. |
| 3103 | </p> |
| 3104 | |
| 3105 | <p>Add |
| 3106 | <a href="http://git.lespiau.name/cgit/shave/">SHAVE support</a> |
| 3107 | (<code>git clone git://git.lespiau.name/shave</code> ) |
| 3108 | to <em>"make autotools output sane"</em> which amounts to much less |
| 3109 | verbose messages when compiling. It is now enabled for the |
| 3110 | maintainer. |
| 3111 | </p> |
| 3112 | |
| 3113 | <p><code>rasqal-config(1)</code> is now a wrapper around |
| 3114 | <code>pkg-config rasqal</code>. Consequently <code>--prefix=DIR</code> |
| 3115 | and <code>--libtool-libs</code> are ignored. |
| 3116 | </p> |
| 3117 | |
| 3118 | |
| 3119 | <h3 id="query-engine-0917"><a name="query-engine-0917">Query Engine Changes</a></h3> |
| 3120 | |
| 3121 | <p>An entirely new query execution engine was written. The existing |
| 3122 | query execution engine was refactored out of a mess of |
| 3123 | <code>rasqal_query</code> and <code>rasqal_query_results</code> code |
| 3124 | and data. It is the default query engine as of Rasqal 0.9.17</p> |
| 3125 | |
| 3126 | <p>The query engine to use can be selected at configure time wiht |
| 3127 | <code>--with-query-engine-version</code> to allow switching to old |
| 3128 | engine if necessary for some existing query that the new engine |
| 3129 | cannot handle. This option will be removed at some point. |
| 3130 | </p> |
| 3131 | |
| 3132 | <p>The interface between the query API and the query engine is now |
| 3133 | via the <code>rasqal_rowsource</code> abstraction - an evaluation of |
| 3134 | a query returns a rowsource that generates the result rows of |
| 3135 | variable bindings. |
| 3136 | </p> |
| 3137 | |
| 3138 | <p>Rewrote <code>query_results</code> class to be a pure wrapper |
| 3139 | around the rowsource and variables table, handling such things like |
| 3140 | generating triples (CONSTRUCT) from rows, creating a boolean result |
| 3141 | (ASK) by counting at least 1 result rows and generating syntax |
| 3142 | results using a query results formatter.</p> |
| 3143 | |
| 3144 | <p>Added a new <code>rasqal_query_execution_factory</code> |
| 3145 | abstraction to provide the interface that the query execution engines |
| 3146 | implement to return a rowsource to get the results.</p> |
| 3147 | |
| 3148 | <p>Both query engines can potentially be selected at |
| 3149 | runtime from the query API but <strong>ONLY</strong> when rasqal is |
| 3150 | built for development (<code>configure --enable-maintainer-mode</code>). |
| 3151 | </p> |
| 3152 | <ol> |
| 3153 | <li>If the envariable <code>RASQAL_DEBUG_ENGINE</code> |
| 3154 | is set with value 1 or 2, the query execution engine is chosen. |
| 3155 | </li> |
| 3156 | <li>The <code>roqet(1)</code> utility gains a <code>-g</code> / |
| 3157 | <code>--engine</code> argument. |
| 3158 | </li> |
| 3159 | </ol> |
| 3160 | |
| 3161 | <p><strong>Query engine 1 (existing)</strong>:<br /> |
| 3162 | Existing lazy evaluated engine that is hard |
| 3163 | to refactor. Internally, implemented by functions named |
| 3164 | <code>rasqal_query_engine_1_<em>...</em>()</code>. |
| 3165 | Execution factory instance <code>rasqal_query_engine_1</code> |
| 3166 | </p> |
| 3167 | |
| 3168 | <p><strong>Query engine 2 (new)</strong>:<br /> |
| 3169 | Based on transforming a tree of SPARQL algebra nodes constructed from |
| 3170 | the query, into a tree of rowsource-generating expressions that when |
| 3171 | evaluated at the top, returns the result rows. Each algebra node |
| 3172 | type and each rowsource type has it's own set of module unit tests |
| 3173 | built-in. |
| 3174 | Execution factory instance <code>rasqal_query_engine_algebra</code> |
| 3175 | </p> |
| 3176 | |
| 3177 | <p>Removed query engine core legacy support for <code>CONSTRUCT *</code> - |
| 3178 | never in the SPARQL 1.0 language. |
| 3179 | </p> |
| 3180 | |
| 3181 | <p>Pulled out row sorting code from query engine 1 into a |
| 3182 | rasqal_engine_sort module so it can be used by all query engines. |
| 3183 | </p> |
| 3184 | |
| 3185 | <p>Implemented rowsource abstraction <code>rasqal_rowsource</code> for |
| 3186 | the following types of rowsources:</p> |
| 3187 | <ul> |
| 3188 | <li><em>empty rowsource</em>: always returns no rows</li> |
| 3189 | <li><em>filter rowsource</em>: filter an inner rowsource with an expression - used for SPARQL <code>FILTER</code></li> |
| 3190 | <li><em>graph rowsource</em>: apply a graph variable to an inner rowsource - used for SPARQL <code>GRAPH</code> matching</li> |
| 3191 | <li><em>join rowsource</em>: join two inner rowsources on common variables and an expression. Two types of join supported: left outer join used for SPARQL <code>OPTIONAL</code> and natural join for groups of graph patterns.</li> |
| 3192 | <li><em>project rowsource</em>: pick [project] certain variables from an inner rowsource</li> |
| 3193 | <li><em>query engine execution rowsource</em>: rows generated by a query execution engine</li> |
| 3194 | <li><em>row sequence rowsource</em>: built from a sequence of rows</li> |
| 3195 | <li><em>SPARQL xml rowsource</em>: make rows from SPARQL Results XML syntax</li> |
| 3196 | <li><em>triples rowsource</em>: create a rowsource by binding variables to an RDF graph sort rowsource: sorts the inner rowsource by an order expression - used for SPARQL <code>ORDERBY</code></li> |
| 3197 | <li><em>union rowsource</em>: union/concatenation of two inner rowsources - used for SPARQL <code>UNION</code></li> |
| 3198 | </ul> |
| 3199 | |
| 3200 | <p>Renamed row abstraction from <code>rasqal_query_result_row</code> |
| 3201 | to <code>rasqal_row</code> since it is independent of query results |
| 3202 | and shorter. |
| 3203 | </p> |
| 3204 | |
| 3205 | <p>Use new <code>rasqal_engine_error</code> enumeration for query |
| 3206 | engine/internal errors - OK, FAILED or FINISHED rather than altering |
| 3207 | <code>rasqal_query_results</code> object fields directly. |
| 3208 | </p> |
| 3209 | |
| 3210 | <p>Documented query execution engine internals as autodocs. |
| 3211 | </p> |
| 3212 | |
| 3213 | <p>Added a query algebra abstraction <code>rasqal_algebra</code> with |
| 3214 | node type <code>rasqal_algebra_node_operator</code> based on SPARQL |
| 3215 | algebra operators: BGP, FILTER, JOIN, DIFF, LEFTJOIN, UNION, TOLIST, |
| 3216 | ORDERBY, PROJECT, DISTINCT, REDUCED, SLICE and GRAPH. Some of these |
| 3217 | are not needed by the query execution engines since they are handled |
| 3218 | by the high level query API - such as SLICE (limit and offset) and |
| 3219 | TOLIST (turning results into user data) |
| 3220 | </p> |
| 3221 | |
| 3222 | <p>Added a variables table abstraction <code>rasqal_variables_table</code> |
| 3223 | pulled out of the internal query results and query structures which now |
| 3224 | point to it. Constructor <code>rasqal_new_variables_table()</code>, |
| 3225 | destructor <code>rasqal_free_variables_table()</code> |
| 3226 | and methods <code>rasqal_variables_table_add()</code>, |
| 3227 | <code>rasqal_variables_table_get()</code>, |
| 3228 | <code>rasqal_variables_table_has()</code>, |
| 3229 | <code>rasqal_variables_table_set()</code>, |
| 3230 | <code>rasqal_variables_table_get_value()</code>, |
| 3231 | <code>rasqal_variables_table_get_named_variables_count()</code>, |
| 3232 | <code>rasqal_variables_table_get_anonymous_variables_count()</code>, |
| 3233 | <code>rasqal_variables_table_get_total_variables_count()</code>, |
| 3234 | <code>rasqal_variables_table_get_named_variables_sequence()</code> and |
| 3235 | <code>rasqal_variables_table_get_anonymous_variables_sequence()</code>. |
| 3236 | </p> |
| 3237 | |
| 3238 | <p>Allow queries with no graph pattern to be accepted such as SPARQL |
| 3239 | <code>DESCRIBE <em>uri</em></code> (which the query engine does not |
| 3240 | execute at present but now is at least parsed). |
| 3241 | </p> |
| 3242 | |
| 3243 | <p>Do not warn about unbound variables for variables bound in GRAPH and |
| 3244 | SELECT expressions. |
| 3245 | </p> |
| 3246 | |
| 3247 | <p>Renamed query language-specific factory class for creating query |
| 3248 | structure from SPARQL and RDQL syntaxes from <code>struct |
| 3249 | rasqal_query_engine_factory</code> to |
| 3250 | <code>rasqal_query_language_factory</code> since it is about the |
| 3251 | language, not the engine. |
| 3252 | </p> |
| 3253 | |
| 3254 | <p>Query engine known problems:</p> |
| 3255 | <ul> |
| 3256 | <li>Variable binding/use scope is not calculated correctly.</li> |
| 3257 | <li>Consequently no queries with <code>UNION</code> work correctly.</li> |
| 3258 | <li>Also consequently, some <code>OPTIONAL</code> queries execute and return results when they shouldn't due to scoping of variable rules especially in nested optionals.</li> |
| 3259 | <li><code>DISTINCT</code> uses RDF literal equality not RDF sameTerm equality and thus returns results not to spec.</li> |
| 3260 | <li><code>xsd:date</code> comparison is not date-aware, it uses a simple string equality</li> |
| 3261 | <li><code>REDUCED</code> is not implemented.</li> |
| 3262 | </ul> |
| 3263 | |
| 3264 | <p>Summary of the approved |
| 3265 | <a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/">DAWG SPARQL 1.0 tests</a> |
| 3266 | as of Rasqal SVN r15841</p> |
| 3267 | <pre> |
| 3268 | Fail: 22 (4.99 %) |
| 3269 | algebra 4 |
| 3270 | dataset 3 |
| 3271 | distinct 4 |
| 3272 | graph 2 |
| 3273 | open-world 3 |
| 3274 | optional 4 |
| 3275 | reduced 2 |
| 3276 | Pass: 419 (95.01 %) |
| 3277 | </pre> |
| 3278 | |
| 3279 | <p>The above results in EARL: |
| 3280 | <a href="http://librdf.org/2009/12/13-rasqal/rasqal-0917-earl.rdf">RDF/XML</a> |
| 3281 | and |
| 3282 | <a href="http://librdf.org/2009/12/13-rasqal/rasqal-0917-earl.ttl">Turtle</a> |
| 3283 | </p> |
| 3284 | |
| 3285 | |
| 3286 | <h3>Internal Changes</h3> |
| 3287 | |
| 3288 | <p>Added sparql algebra tests based on the examples in the SPARQL 1.0 Query Language Specification section |
| 3289 | <a href="http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/#convertGraphPattern">12.2.1 Converting Graph Patterns</a> |
| 3290 | </p> |
| 3291 | |
| 3292 | <p> |
| 3293 | Optionally support the experimental raptor V2 API. |
| 3294 | </p> |
| 3295 | |
| 3296 | <p>Lots of resiliency fixes in the case of out of memory - Lauri Aalto. |
| 3297 | </p> |
| 3298 | |
| 3299 | <p>Adjusted internal test suite to use a perl <code>improve</code> |
| 3300 | script that generates and uses an RDF-based manifest. The test |
| 3301 | running is now much more consise when successful. |
| 3302 | </p> |
| 3303 | |
| 3304 | <p>Switch to final DAWG approved testsuite files from |
| 3305 | <a href="http://www.w3.org/2001/sw/DataAccess/tests/r2/">http://www.w3.org/2001/sw/DataAccess/tests/r2/</a> |
| 3306 | at CVS Revision 1.6 1008 |
| 3307 | </p> |
| 3308 | |
| 3309 | |
| 3310 | |
| 3311 | <h2 id="rel0_9_16"><a name="rel0_9_16">Rasqal 0.9.16 Changes</a></h2> |
| 3312 | |
| 3313 | <blockquote> |
| 3314 | <p><b>WARNING: ABI AND API CHANGED IN THIS RELEASE.</b></p> |
| 3315 | |
| 3316 | <p>This means: functions were removed, modified and added.</p> |
| 3317 | |
| 3318 | <p>Consequently the shared library major soname version has changed from 0 to 1.</p> |
| 3319 | |
| 3320 | <p>The header files moved to be installed in |
| 3321 | <em>PREFIX</em>/include/rasqal such as |
| 3322 | <code>/usr/include/rasqal</code> for usual installs.</p> |
| 3323 | </blockquote> |
| 3324 | |
| 3325 | <blockquote> |
| 3326 | <p><strong>NOTE:</strong> In the next release of rasqal, the |
| 3327 | <code>rasqal-config</code> utility that provides the compile and link |
| 3328 | args will be deprecated, generate a warning when run and will turn into a |
| 3329 | wrapper for <code>pkg-config rasqal ...</code> |
| 3330 | It will be removed in a future release.</p> |
| 3331 | </blockquote> |
| 3332 | |
| 3333 | |
| 3334 | <h3>Major Changes (break ABI and API)</h3> |
| 3335 | |
| 3336 | <p>Removed <code>rasqal_init()</code> and <code>rasqal_finish()</code> |
| 3337 | functions.</p> |
| 3338 | |
| 3339 | <p>Added a new <code>rasqal_world</code> object to manage |
| 3340 | library allocations and classes with new library |
| 3341 | constructor/initializing function |
| 3342 | <code>rasqal_world *rasqal_new_world(void)</code> |
| 3343 | and destructor/cleanup function: |
| 3344 | <code>void rasqal_free_world(rasqal_world*)</code> |
| 3345 | </p> |
| 3346 | |
| 3347 | <p>The following functions now take a <code>librdf_world* |
| 3348 | world</code> argument as the first argument: |
| 3349 | <code>rasqal_language_name_check()</code>, |
| 3350 | <code>rasqal_languages_enumerate()</code>, |
| 3351 | <code>rasqal_new_query()</code>, |
| 3352 | <code>rasqal_query_results_formats_check ()</code>, |
| 3353 | <code>rasqal_new_query_results_formatter()</code>, |
| 3354 | <code>rasqal_new_query_results_formatter_by_mime_type()</code>, |
| 3355 | <code>rasqal_new_integer_literal()</code>, |
| 3356 | <code>rasqal_new_typed_literal()</code>, |
| 3357 | <code>rasqal_new_double_literal()</code>, |
| 3358 | <code>rasqal_new_float_literal()</code>, |
| 3359 | <code>rasqal_new_uri_literal()</code>, |
| 3360 | <code>rasqal_new_pattern_literal()</code>, |
| 3361 | <code>rasqal_new_string_literal()</code>, |
| 3362 | <code>rasqal_new_simple_literal()</code>, |
| 3363 | <code>rasqal_new_boolean_literal()</code>, |
| 3364 | <code>rasqal_new_variable_literal()</code>, |
| 3365 | <code>rasqal_new_decimal_literal()</code>, |
| 3366 | <code>rasqal_new_decimal_literal_from_decimal()</code> |
| 3367 | </p> |
| 3368 | |
| 3369 | <p>Removed deprecated |
| 3370 | <code>rasqal_new_floating_literal()</code>, |
| 3371 | <code>rasqal_graph_pattern_get_flags()</code>, |
| 3372 | <code>rasqal_expression_foreach()</code> functions, |
| 3373 | <code>RASQAL_LITERAL_FLOATING</code> macro and |
| 3374 | <code>rasqal_expression_foreach_fn</code> typedef. |
| 3375 | </p> |
| 3376 | |
| 3377 | <p> |
| 3378 | Modified <code>rasqal_triples_match</code> struct to add a |
| 3379 | rasqal_world* world field. |
| 3380 | </p> |
| 3381 | |
| 3382 | <p>There is no more static data such as error pointers, arrays of |
| 3383 | query languages, URI objects; it is all attached to the rasqal_world |
| 3384 | object.</p> |
| 3385 | |
| 3386 | |
| 3387 | <h3>Misc changes</h3> |
| 3388 | |
| 3389 | <p>Fixed memory leaks in lang() expression evaluation. (Lauri Aalto)</p> |
| 3390 | |
| 3391 | <p>Made several low-memory resiliance fixes in query construction and |
| 3392 | execution. (Lauri Aalto)</p> |
| 3393 | |
| 3394 | <p>Library requires raptor 1.4.17 or newer to get the newly public |
| 3395 | raptor SAX2 API for reading SPARQL XML Results format.</p> |
| 3396 | |
| 3397 | <p>Updated mpfr configure check to look for modern functions rather |
| 3398 | than functions that are also in the older gmp-mpfr library too. |
| 3399 | </p> |
| 3400 | |
| 3401 | <p>Only the first error is reported for syntax errors in lex/parse |
| 3402 | of SPARQL and RDQL since the lack of error recovery means that the |
| 3403 | consequent messages are of little use.</p> |
| 3404 | |
| 3405 | <p>Fatal errors in SPARQL and RDQL lexer/parser no longer does an |
| 3406 | abort, but exits via setjmp/longjmp.</p> |
| 3407 | |
| 3408 | |
| 3409 | <h3>Query Engine Changes</h3> |
| 3410 | |
| 3411 | <p>Added internal rowsource class to get rows from an execution |
| 3412 | engine or a syntax (query result formatter).</p> |
| 3413 | |
| 3414 | |
| 3415 | <h3>Graph Pattern Class Changes</h3> |
| 3416 | <p>Modified <code>rasqal_graph_pattern_add_sub_graph_pattern()</code> to |
| 3417 | have an int return value for catching allocation failures. |
| 3418 | </p> |
| 3419 | |
| 3420 | <h3>Query Class Changes</h3> |
| 3421 | <p>Modified <code>rasqal_query_add_variable()</code> and |
| 3422 | <code>rasqal_query_add_prefix()</code> to have int return values for |
| 3423 | catching allocation failures. |
| 3424 | </p> |
| 3425 | |
| 3426 | <h3>Query Results Class Changes</h3> |
| 3427 | |
| 3428 | <p>Updated the internals to allow construction of a query result |
| 3429 | outside the query engine, such as from a syntax. |
| 3430 | </p> |
| 3431 | |
| 3432 | <p>Added <code>rasqal_query_results_read()</code> to read a query |
| 3433 | results from an iostream in some format. |
| 3434 | </p> |
| 3435 | |
| 3436 | <p>Modified <code>rasqal_query_results_formats_enumerate()</code> to add |
| 3437 | a flags argument with |
| 3438 | <code>RASQAL_QUERY_RESULTS_FORMAT_FLAG_READER</code> and |
| 3439 | <code>RASQAL_QUERY_RESULTS_FORMAT_FLAG_WRITER</code> choices to |
| 3440 | choose formats for read or write enumeration.</p> |
| 3441 | |
| 3442 | <p>Removed function |
| 3443 | <code>rasqal_query_results_formats_enumerate_full</code> now handled |
| 3444 | by <code>rasqal_query_results_formats_enumerate()</code>.</p> |
| 3445 | |
| 3446 | <p>Added <code>rasqal_query_results_formatter_read()</code> to read |
| 3447 | query results from a syntax via an iostream.</p> |
| 3448 | |
| 3449 | <h3>Variable Class Changes</h3> |
| 3450 | |
| 3451 | <p>Added <code>rasqal_new_variable_from_variable()</code> copy |
| 3452 | constructor.</p> |
| 3453 | |
| 3454 | |
| 3455 | <h2 id="rel0_9_15"><a name="rel0_9_15">Rasqal 0.9.15 Changes</a></h2> |
| 3456 | |
| 3457 | <h3>General Changes</h3> |
| 3458 | |
| 3459 | <p>Many updates for better SPARQL support. Rasqal 0.9.15 passes over |
| 3460 | 92% of the DAWG SPARQL Test Suite as of 2007-11-13.</p> |
| 3461 | |
| 3462 | <p>Rasqal still does not support either <code>UNION</code> or |
| 3463 | <code>GROUP</code> and <code>OPTIONAL</code> remains buggy. There |
| 3464 | remain a few other minor areas not yet completely supported such as |
| 3465 | XSD <code>date</code> and XSD <code>dateTime</code> equality and |
| 3466 | comparisons. |
| 3467 | </p> |
| 3468 | |
| 3469 | <blockquote> |
| 3470 | <p><b>WARNING: ABI AND API CHANGE in Rasqal 0.9.16. The next |
| 3471 | release of Rasqal will be incompatible with this one.</b></p> |
| 3472 | |
| 3473 | <p>It will have both ABI and API changes that will require source |
| 3474 | updates.</p> |
| 3475 | |
| 3476 | <p>The shared library major soname will change from 0 to 1.</p> |
| 3477 | |
| 3478 | <p>The header files will move to be installed in |
| 3479 | <em>PREFIX</em>/include/rasqal such as |
| 3480 | <code>/usr/include/rasqal</code> for usual installs.</p> |
| 3481 | |
| 3482 | <p>The full details of the API change have not been decided but the |
| 3483 | driving change is that using the library will be done via a new |
| 3484 | Rasqal world object,k will now be used to working like a Redland |
| 3485 | <code>librdf_world</code>. All constructors will take this world |
| 3486 | object as an argument and all static data will be indirected from the |
| 3487 | object. Handlers such as the uri_handler/data and error handlers |
| 3488 | will also move to be set/get via the world object. |
| 3489 | </p> |
| 3490 | |
| 3491 | <p>There are almost certainly other API changes and cleanups that |
| 3492 | will be done, and some possibly some of the data structures may be |
| 3493 | made internal.</p> |
| 3494 | |
| 3495 | </blockquote> |
| 3496 | |
| 3497 | <p>Fixed issues:</p> |
| 3498 | <ul> |
| 3499 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=190">Issue#0000190</a>: Memory leaks in rasqal_literal.c</li> |
| 3500 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=191">Issue#0000191</a>: RAPTOR_API in rasqal.h</li> |
| 3501 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=193">Issue#0000193</a>: SPARQL "ASK" always returns true</li> |
| 3502 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=196">Issue#0000196</a>: Memory leak with RASQAL_REGEX_PCRE</li> |
| 3503 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=197">Issue#0000197</a>: Problem with float comparison in rasqal</li> |
| 3504 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=198">Issue#0000198</a>: rasqal_redland.c compilation errors</li> |
| 3505 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=199">Issue#0000199</a>: SPARQL effective boolean value: empty string literal not false</li> |
| 3506 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=200">Issue#0000200</a>: SPARQL filter scope</li> |
| 3507 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=201">Issue#0000201</a>: SPARQL langMatches patch</li> |
| 3508 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=203">Issue#0000203</a>: API declarations for Symbian portability</li> |
| 3509 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=204">Issue#0000204</a>: SPARQL WHERE is optional</li> |
| 3510 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=219">Issue#0000219</a>: SPARQL BASE makes rasqal query->locator.uri a dangling pointer</li> |
| 3511 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=220">Issue#0000220</a>: Query offset off by one</li> |
| 3512 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=221">Issue#0000221</a>: rasqal_literal_as_integer() with RASQAL_LITERAL_INTEGER literals</li> |
| 3513 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=225">Issue#0000225</a>: SPARQL parser leaks memory on syntax error</li> |
| 3514 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=234">Issue#0000234</a>: autogen.sh $dir quoting</li> |
| 3515 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=235">Issue#0000235</a>: $(EXEEXT) in tests</li> |
| 3516 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=236">Issue#0000236</a>: EOL issues when building svn version on cygwin</li> |
| 3517 | </ul> |
| 3518 | |
| 3519 | |
| 3520 | <h3>SPARQL Query Language Changes</h3> |
| 3521 | |
| 3522 | <p>Many updates to support the SPARQL |
| 3523 | <a href="http://www.w3.org/TR/2007/CR-rdf-sparql-query-20070614/">Candidate Recommendation</a> and |
| 3524 | <a href="http://www.w3.org/TR/2007/PR-rdf-sparql-query-20071112/">Proposed Recommendation</a> versions of the language including:</p> |
| 3525 | <ul> |
| 3526 | <li>Added <code>REDUCED</code> syntax support (no query engine support)</li> |
| 3527 | <li>Added <code>SAMETERM()</code> support.</li> |
| 3528 | <li>Allowing numbers at the start of local names.</li> |
| 3529 | <li>Allowing <code>@</code><em>lang</em> and |
| 3530 | <code>^^</code><em>datatype</em> after triple-quoted literals.</li> |
| 3531 | <li>Make unary + and - work</li> |
| 3532 | <li>Remove <code>CONSTRUCT *</code> that is no longer in the spec</li> |
| 3533 | <li>Removed hexadecimal literals which were never in the spec</li> |
| 3534 | <li>Made queries with the <code>ASK</code> verb work again.</li> |
| 3535 | <li>Made <code>LANG()</code> and <code>DATATYPE()</code> work to |
| 3536 | spec on typed literals.</li> |
| 3537 | <li>Remove warning about optional SPARQL <code>WHERE</code> |
| 3538 | although it is still a dumb idea to have useless keywords.</li> |
| 3539 | </ul> |
| 3540 | |
| 3541 | |
| 3542 | <h3>Query Engine Changes</h3> |
| 3543 | |
| 3544 | <p>Many internal changes were made including refactoring the engine |
| 3545 | core and adding of additional internal documentation for the engine |
| 3546 | functions.</p> |
| 3547 | |
| 3548 | <p>Substantial improvements were made to datatypes support:</p> |
| 3549 | <ul> |
| 3550 | <li>SPARQL / XQuery / XPath numeric type promotion is now supported, |
| 3551 | including derived types of <code>xsd:integer</code> etc.</li> |
| 3552 | <li>Added XSD <code>xsd:decimal</code> implementation either using |
| 3553 | GNU MP, MPFR, C99 <code>_Decimal</code> (but I have yet to find a |
| 3554 | working implementation) or by default and inaccurately, C |
| 3555 | doubles.</li> |
| 3556 | <li>Added XSD <code>xsd:dateTime</code> initial support for validation.</li> |
| 3557 | <li>Numeric operations such as +, -, *, / and ! as well as comparisons |
| 3558 | are now done in the appropriate datatype (which may be a promotion).</li> |
| 3559 | </ul> |
| 3560 | |
| 3561 | <p>Improved the way that literal equality and comparisons work |
| 3562 | especially with respect to datatypes. Triple pattern matching |
| 3563 | (equality) works with RDF terms. SPARQL <code>FILTER</code> literal |
| 3564 | equality and comparisons follow SPARQL rules with possible numeric |
| 3565 | type promotion, then using RDF Term if the types are different. |
| 3566 | <code>ORDER</code> comparison or <code>DISTINCT</code> equality |
| 3567 | checks use RDF Term. RDQL execution uses it's own existing "stringy" |
| 3568 | rules. |
| 3569 | </p> |
| 3570 | |
| 3571 | <p>Set the query base URI.</p> |
| 3572 | |
| 3573 | <p>Make queries that bind the origin (SPARQL <code>GRAPH</code>) |
| 3574 | match correctly against the default graph. |
| 3575 | </p> |
| 3576 | |
| 3577 | <p>Memory reduction in stack usage when evaluation expressions |
| 3578 | (such as SPARQL <code>FILTER</code>s).</p> |
| 3579 | |
| 3580 | |
| 3581 | <h3>Public API changes</h3> |
| 3582 | |
| 3583 | <p>Added <code>rasqal_home_url_string</code> static constant.</p> |
| 3584 | |
| 3585 | <p>Added <code>rasqal_xsd_decimal</code> class and API calls |
| 3586 | described below.</p> |
| 3587 | |
| 3588 | <p>Added a <code>decimal</code> part to the rasqal_literal union |
| 3589 | value for <code>RASQAL_LITERAL_DECIMAL</code> types.</p> |
| 3590 | |
| 3591 | <p>Added a <code>parent_type</code> part to the rasqal_literal when |
| 3592 | the type can be promoted.</p> |
| 3593 | |
| 3594 | <p>Added <code>RASQAL_EXPR_SAMETERM</code> expression</p> |
| 3595 | |
| 3596 | <p>Added <code>RASQAL_COMPARE_RDF</code> and |
| 3597 | <code>RASQAL_COMPARE_URI</code> comparison types for RDF Term |
| 3598 | comparsion rules and allowing URI comparison (without |
| 3599 | <code>STR()</code>) respectively.</p> |
| 3600 | |
| 3601 | <p>Added <code>rasqal_new_typed_literal()</code> to make an RDF typed |
| 3602 | literal from a type and string (no language).</p> |
| 3603 | |
| 3604 | <p>Added <code>rasqal_new_float_literal()</code> for wrapping a C |
| 3605 | <code>float</code> as XSD float.</p> |
| 3606 | |
| 3607 | <p>Added new decimal literal constructor |
| 3608 | rasqal_literal* rasqal_new_decimal_literal_from_decimal(const unsigned char *string, rasqal_ xsd_decimal* decimal) |
| 3609 | </p> |
| 3610 | |
| 3611 | <p>Added <code>rasqal_literal_datatype</code> method to get the datatype |
| 3612 | URI of a literal.</p> |
| 3613 | |
| 3614 | <p>Added <code>rasqal_literal_value</code> method to get the literal |
| 3615 | value of a literal, looking up any variables to their value. |
| 3616 | FIXME should this not involve query results? |
| 3617 | </p> |
| 3618 | |
| 3619 | <p>Added addition <code>rasqal_triple_parts</code> enums: |
| 3620 | <code>RASQAL_TRIPLE_GRAPH</code> for just the named graph part |
| 3621 | <code>RASQAL_TRIPLE_SPO</code> for subject, predicate and objects and |
| 3622 | <code>RASQAL_TRIPLE_SPOG</code> for all parts including named grpah. |
| 3623 | </p> |
| 3624 | |
| 3625 | |
| 3626 | <h3>Decimal Class</h3> |
| 3627 | |
| 3628 | <p>A new <code>rasqal_xsd_decimal</code> class was added to handle |
| 3629 | XSD decimals with accurate decimal arithmetic.</p> |
| 3630 | |
| 3631 | <p>Constructor:</p> |
| 3632 | <pre> |
| 3633 | rasqal_xsd_decimal* rasqal_new_xsd_decimal(void); |
| 3634 | </pre> |
| 3635 | |
| 3636 | <p>Destructor:</p> |
| 3637 | <pre> |
| 3638 | void rasqal_free_xsd_decimal(rasqal_xsd_decimal* dec); |
| 3639 | </pre> |
| 3640 | |
| 3641 | <p>Methods:</p> |
| 3642 | <pre> |
| 3643 | double rasqal_xsd_decimal_get_double(rasqal_xsd_decimal* dec); |
| 3644 | int rasqal_xsd_decimal_set_double(rasqal_xsd_decimal* dec, double d); |
| 3645 | iint rasqal_xsd_decimal_set_string(rasqal_xsd_decimal* dec, const char* string); |
| 3646 | int rasqal_xsd_decimal_set_long(rasqal_xsd_decimal* dec, long l); |
| 3647 | int rasqal_xsd_decimal_print(rasqal_xsd_decimal* dec, FILE* stream); |
| 3648 | char* rasqal_xsd_decimal_as_string(rasqal_xsd_decimal* dec); |
| 3649 | char* rasqal_xsd_decimal_as_counted_string(rasqal_xsd_decimal* dec, size_t* len_p); |
| 3650 | </pre> |
| 3651 | |
| 3652 | <p>Numeric methods (writing to the <code>result</code> argument):</p> |
| 3653 | <pre> |
| 3654 | int rasqal_xsd_decimal_add(rasqal_xsd_decimal* result, |
| 3655 | rasqal_xsd_decimal* a, rasqal_xsd_decimal* b); |
| 3656 | int rasqal_xsd_decimal_subtract(rasqal_xsd_decimal* result, |
| 3657 | rasqal_xsd_decimal* a, rasqal_xsd_decimal* b); |
| 3658 | int rasqal_xsd_decimal_multiply(rasqal_xsd_decimal* result, |
| 3659 | rasqal_xsd_decimal* a, rasqal_xsd_decimal* b); |
| 3660 | int rasqal_xsd_decimal_divide(rasqal_xsd_decimal* result, |
| 3661 | rasqal_xsd_decimal* a, rasqal_xsd_decimal* b); |
| 3662 | int rasqal_xsd_decimal_negate(rasqal_xsd_decimal* result, |
| 3663 | rasqal_xsd_decimal* a); |
| 3664 | </pre> |
| 3665 | |
| 3666 | <p>Comparison methods:</p> |
| 3667 | <pre> |
| 3668 | int rasqal_xsd_decimal_compare(rasqal_xsd_decimal* a, rasqal_xsd_decimal* b); |
| 3669 | int rasqal_xsd_decimal_equals(rasqal_xsd_decimal* a, rasqal_xsd_decimal* b); |
| 3670 | int rasqal_xsd_decimal_is_zero(rasqal_xsd_decimal* d); |
| 3671 | </pre> |
| 3672 | |
| 3673 | |
| 3674 | <h3>Query Results Formatter Class Changes</h3> |
| 3675 | |
| 3676 | <p>Updated to the 4th version of the SPARQL XML Results format by |
| 3677 | removing the <code>ordered</code> and <code>distict</code> |
| 3678 | attributes. Removed support for all the earlier versions 1 to 3.</p> |
| 3679 | |
| 3680 | |
| 3681 | <h3><code>roqet</code> Utility Changes</h3> |
| 3682 | |
| 3683 | <p>Added <code>-D</code> / <code>--data</code> options for specifying |
| 3684 | data URis for the default graph and <code>-G</code> / |
| 3685 | <code>--named</code> for URIs of named graphs (the existing |
| 3686 | <code>-s</code> is a also a synonym for the latter). |
| 3687 | </p> |
| 3688 | |
| 3689 | |
| 3690 | <h3>Other Changes</h3> |
| 3691 | |
| 3692 | <p>Many internal fixes and cleanups after failures so that memory is |
| 3693 | not lost and/or rasqal does not crash. These many changes were |
| 3694 | primarily made by Lauri Aalto.</p> |
| 3695 | |
| 3696 | <p>Several portability fixes for helping with low-memory, embedded |
| 3697 | systems and using a compiler that is not gcc. |
| 3698 | </p> |
| 3699 | |
| 3700 | <p>The SPARQL test runner <code>check-sparql</code> was improved to |
| 3701 | read the SPARQL XML Results format (but not via |
| 3702 | <code>XML::Simple</code> because it is insanely complex and |
| 3703 | counterintuitive), handle DAWG test manifests and generate EARL |
| 3704 | reports. It also has new help and usage messages. |
| 3705 | </p> |
| 3706 | |
| 3707 | |
| 3708 | <h2 id="rel0_9_14"><a name="rel0_9_14">Rasqal 0.9.14 Changes</a></h2> |
| 3709 | |
| 3710 | <h3>General Changes</h3> |
| 3711 | |
| 3712 | <p>Added syntax and API support (but no query engine support) |
| 3713 | for <b>experimental</b> extensions to SPARQL called |
| 3714 | <a href="http://www.dajobe.org/2007/04/laqrs/">LAQRS</a>: |
| 3715 | LAQRS Adds to Querying RDF in SPARQL. |
| 3716 | </p> |
| 3717 | |
| 3718 | <p>Updated the query results formatter to allow better introspection |
| 3719 | of supported formats.</p> |
| 3720 | |
| 3721 | <p>Fixed issues:</p> |
| 3722 | <ul> |
| 3723 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=152">Issue#0000152</a>: Allow <code><_:NAME></code> to work as <code>_:NAME</code> in SPARQL.</li> |
| 3724 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=156">Issue#0000156</a>: Add LAQRS extensions to SPARQL grammar</li> |
| 3725 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=160">Issue#0000160</a>: rasqal_strcasecmp without prototype</li> |
| 3726 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=167">Issue#0000167</a>: Make CONSTRUCT work with LIMIT</li> |
| 3727 | <li><a href="http://bugs.librdf.org/mantis/view.php?id=182">Issue#0000182</a>: Allow '-' in SPARQL language tags (and RDQL)</li> |
| 3728 | </ul> |
| 3729 | |
| 3730 | |
| 3731 | <h3>LAQRS Adds to Querying RDF in SPARQL (LAQRS)</h3> |
| 3732 | |
| 3733 | <p>LAQRS is <b>experimental</b> and Rasqal provides only syntax and |
| 3734 | API support (but no query engine support) for:</p> |
| 3735 | <ul> |
| 3736 | <li><code>DELETE</code> via query verb <code>RASQAL_QUERY_VERB_DELETE</code></li> |
| 3737 | <li><code>EXPLAIN</code> as a keyword allowed before any query. Returned by <code>rasqal_query_get_explain()</code></li> |
| 3738 | <li><code>INSERT</code> via query verb <code>RASQAL_QUERY_VERB_INSERT</code></li> |
| 3739 | <li><code>COUNT()</code> and COUNT(*) via new expressions <code>RASQAL_EXPR_COUNT</code> and <code>RASQAL_EXPR_VARSTAR</code></li> |
| 3740 | <li><code>SELECT </code><em>expression</em> <code>AS</code> <em>variable</em> via the new expression field of rasqal_variable</li> |
| 3741 | <li><code>GROUP BY</code> results via rasqal_query_get_group_conditions_sequence() and rasqal_query_get_group_condition() and new expressions <code>RASQAL_EXPR_GROUP_COND_ASC</code> and <code>RASQAL_EXPR_GROUP_COND_DESC</code></li> |
| 3742 | </ul> |
| 3743 | |
| 3744 | <p>Repeating <b>THERE IS NO QUERY ENGINE SUPPORT FOR ANY OF THE ABOVE</b></p> |
| 3745 | |
| 3746 | <p>LAQRS is not enabled by default in Rasqal (unless using |
| 3747 | maintainer mode or building from Subversion). To enable it, |
| 3748 | configure Rasqal like this:</p> |
| 3749 | <pre> |
| 3750 | $ ./configure '--enable-query-languages=sparql rdql laqrs' |
| 3751 | ... |
| 3752 | |
| 3753 | Rasqal build summary: |
| 3754 | RDF query languages available : rdql sparql |
| 3755 | RDF query languages enabled : sparql rdql laqrs |
| 3756 | Triples source : raptor 1.4.15 |
| 3757 | $ |
| 3758 | </pre> |
| 3759 | |
| 3760 | <p>The API changes for LAQRS are as follows:</p> |
| 3761 | |
| 3762 | <p>Added new query verbs <code>RASQAL_QUERY_VERB_DELETE</code> and |
| 3763 | <code>RASQAL_QUERY_VERB_INSERT</code> |
| 3764 | </p> |
| 3765 | |
| 3766 | <p>Added a constructor to create a constant or 0-operand expression |
| 3767 | (for COUNT):</p> |
| 3768 | <pre> |
| 3769 | rasqal_expression* rasqal_new_0op_expression(rasqal_op op); |
| 3770 | </pre> |
| 3771 | |
| 3772 | <p>Added a query method to get the explain flag:</p> |
| 3773 | <pre> |
| 3774 | int rasqal_query_get_explain(rasqal_query* query); |
| 3775 | </pre> |
| 3776 | |
| 3777 | <p>Added a query method to get the 'group by' condition expressions:</p> |
| 3778 | <pre> |
| 3779 | raptor_sequence* |
| 3780 | rasqal_query_get_group_conditions_sequence(rasqal_query* query); |
| 3781 | |
| 3782 | rasqal_expression* |
| 3783 | rasqal_query_get_group_condition(rasqal_query* query, int idx); |
| 3784 | </pre> |
| 3785 | |
| 3786 | <p>Added <code>rasqal_expression</code> expression types:</p> |
| 3787 | <ul> |
| 3788 | <li><code>RASQAL_EXPR_GROUP_COND_ASC</code> for group condition ascending.</li> |
| 3789 | <li><code>RASQAL_EXPR_GROUP_COND_DESC</code> for group condition descending.</li> |
| 3790 | <li><code>RASQAL_EXPR_COUNT</code> for select <code>COUNT()</code></li> |
| 3791 | <li><code>RASQAL_EXPR_VARSTAR</code> for select <code>COUNT(*)</code></li> |
| 3792 | </ul> |
| 3793 | |
| 3794 | <p><code>rasqal_variable</code> now has |
| 3795 | a <code>rasqal_expression*</code> field <code>expression</code>. |
| 3796 | </p> |
| 3797 | |
| 3798 | |
| 3799 | <h3>Configuration and Build Changes</h3> |
| 3800 | |
| 3801 | <p>The pkgconfig rasqal.pc file and the <code>rasqal-config</code> |
| 3802 | script now separates directly linked shared libraries and indirectly |
| 3803 | linked ones. This prevents unnecessary references to libraries. The |
| 3804 | regular libraries includes -L plus <code>-lrasqal</code> and the |
| 3805 | dynamic and static libraries are available with:</p> |
| 3806 | <ul> |
| 3807 | <li><code>pkgconfig rasqal --static --libs</code></li> |
| 3808 | <li><code>rasqal-config --libs --private-libs</code></li> |
| 3809 | </ul> |
| 3810 | |
| 3811 | <p>So for example to statically link with rasqal, use either:</p> |
| 3812 | <pre> |
| 3813 | $ cc .. -o foo foo.c `pkgconfig rasqal --static --libs` |
| 3814 | |
| 3815 | $ cc .. -o foo foo.c `rasqal-config --libs --private-libs` |
| 3816 | </pre> |
| 3817 | |
| 3818 | |
| 3819 | <h3>Query Results Formatter Changes</h3> |
| 3820 | |
| 3821 | <p>Made it easier to discover and create of query results in a syntax |
| 3822 | by using a MIME Type.</p> |
| 3823 | |
| 3824 | <p>Added query results formatter constructor by required mime type:</p> |
| 3825 | <pre> |
| 3826 | rasqal_query_results_formatter* |
| 3827 | rasqal_new_query_results_formatter_by_mime_type(const char *mime_type); |
| 3828 | </pre> |
| 3829 | <p>Added a method to return the mime type of a selected formatter:</p> |
| 3830 | <pre> |
| 3831 | const char* |
| 3832 | rasqal_query_results_formatter_get_mime_type( |
| 3833 | rasqal_query_results_formatter *formatter); |
| 3834 | </pre> |
| 3835 | |
| 3836 | <p>Added another query results formatter static method to enumerate |
| 3837 | possible results formats, their names, labels and (new) mime type.</p> |
| 3838 | <pre> |
| 3839 | int |
| 3840 | rasqal_query_results_formats_enumerate_full(const unsigned int counter, |
| 3841 | const char **name, const char **label, |
| 3842 | const unsigned char **uri_string, const char **mime_type); |
| 3843 | </pre> |
| 3844 | |
| 3845 | <p>Added a static method to check for support for a query results |
| 3846 | format.</p> |
| 3847 | <pre> |
| 3848 | int rasqal_query_results_formats_check(const char *name, |
| 3849 | raptor_uri* uri, const char *mime_type); |
| 3850 | </pre> |
| 3851 | |
| 3852 | |
| 3853 | <h3>SPARQL Query Language Changes</h3> |
| 3854 | |
| 3855 | <p>Updated for the |
| 3856 | <a href="http://www.w3.org/TR/2007/WD-rdf-sparql-query-20070326/">SPARQL Query Language for RDF</a>, W3C Working Draft 26 March 2007</p> |
| 3857 | <ul> |
| 3858 | <li>Added <code>REDUCED</code> token. This entailed changing the |
| 3859 | distinct flag from a boolean to a mode. |
| 3860 | <code>rasqal_query_get_distinct</code> and |
| 3861 | <code>rasqal_query_set_distinct</code> now takes a mode (0, 1 |
| 3862 | DISTINCT, 2 REDUCED) rather than the former boolean flag. |
| 3863 | There is no query engine support for REDUCED at present. |
| 3864 | </li> |
| 3865 | </ul> |
| 3866 | |
| 3867 | |
| 3868 | <h3>Query Engine Changes</h3> |
| 3869 | |
| 3870 | <p>Added the possibility that a query's native result is a syntax |
| 3871 | (rather than natively bindings, boolean or triples) and added |
| 3872 | a method to check for that:</p> |
| 3873 | <pre> |
| 3874 | int rasqal_query_results_is_syntax(rasqal_query_results* query_results); |
| 3875 | </pre> |
| 3876 | |
| 3877 | <p>Many query engine internal changes, but these remain unsupported: |
| 3878 | OPTIONAL graph pattern (partially working), GROUP graph pattern (no |
| 3879 | support), UNION graph pattern (no support) and new <code>SELECT |
| 3880 | REDUCED</code> (no support). |
| 3881 | </p> |
| 3882 | |
| 3883 | |
| 3884 | <h3><code>roqet</code> Utility Changes</h3> |
| 3885 | |
| 3886 | <p><code>roqet</code> can use -r to generate a chosen result syntax |
| 3887 | for bindings results or triples (using raptor).</p> |
| 3888 | |
| 3889 | <p>roqet now generates namespace declarations for triples when |
| 3890 | serializing output. The result is that they are used when the |
| 3891 | serializer handles them such as generating RDF/XML (Abbreviated) |
| 3892 | or Turtle. |
| 3893 | </p> |
| 3894 | |
| 3895 | |
| 3896 | <h3>Other Changes</h3> |
| 3897 | |
| 3898 | <p><code>rasqal_expression</code> lost the unused |
| 3899 | <code>rasqal_variable*</code> field <code>variable</code> |
| 3900 | </p> |
| 3901 | |
| 3902 | <p>Added exported variables to return the license string |
| 3903 | in <code>rasqal_license_string</code> |
| 3904 | and home page in <code>rasqal_home_url_string</code> |
| 3905 | </p> |
| 3906 | |
| 3907 | |
| 3908 | |
| 3909 | <h2 id="rel0_9_13"><a name="rel0_9_13">Rasqal 0.9.13 Changes</a></h2> |
| 3910 | |
| 3911 | <h3>General Changes</h3> |
| 3912 | |
| 3913 | <p>Added a new <code>rasqal_query_results_formatter</code> class. |
| 3914 | </p> |
| 3915 | |
| 3916 | <p>Many internal query engine changes, mostly to separate query and |
| 3917 | query_results internals so that eventually the run-time execution |
| 3918 | context is entirely separated from the static query structure. |
| 3919 | </p> |
| 3920 | |
| 3921 | <p>Added query features system with one initial feature |
| 3922 | <code>RASQAL_FEATURE_NO_NET</code>.</p> |
| 3923 | |
| 3924 | |
| 3925 | <h3>Configuration and Build Changes</h3> |
| 3926 | |
| 3927 | <p>Allow shell variable <code>LEX</code> to be set to things that |
| 3928 | aren't exactly <code>flex</code> Recommend flex 2.5.33 and update |
| 3929 | configure to point at the main flex site whichq finally gets 2.5.33 |
| 3930 | after 9 years.</p> |
| 3931 | |
| 3932 | <p><code>PKGCONFIG</code> vars not substituted |
| 3933 | correctly in configure.ac. Remove @LDFLAGS from rasqal.pc.in. |
| 3934 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=98">Issue#0000098</a>. |
| 3935 | </p> |
| 3936 | |
| 3937 | <p>Win32 build fixes.Correct win32 static linking of rasqal. |
| 3938 | (Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=100">Issue#0000100</a>) |
| 3939 | and include float.h and <code>#define isnan</code> on win32. |
| 3940 | (Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=111">Issue#0000111</a>). |
| 3941 | </p> |
| 3942 | |
| 3943 | <p>In maintainer mode, add all the supported compiler <code>-W</code> |
| 3944 | warning flags to the CFLAGS. |
| 3945 | </p> |
| 3946 | |
| 3947 | <p>Declare several rasqal functions with GCC printf-formatting |
| 3948 | attributes when using a new enough GCC.</p> |
| 3949 | |
| 3950 | <p>Remove broken debug messages. |
| 3951 | <a href="http://bugs.librdf.org/mantis/view.php?id=131">#0000131</a>. |
| 3952 | </p> |
| 3953 | |
| 3954 | <h3>SPARQL Query Language Changes</h3> |
| 3955 | |
| 3956 | <p>Added labels to grammar tokens using bison to give better error messages.</p> |
| 3957 | |
| 3958 | <p>Fix looking for EOF in an unsigned variable since it may be negative |
| 3959 | on some systems.</p> |
| 3960 | |
| 3961 | <p>The query engine now implements SPARQL <code>GRAPH</code> matching. |
| 3962 | </p> |
| 3963 | |
| 3964 | |
| 3965 | <h3>RDQL Query Language Changes</h3> |
| 3966 | |
| 3967 | <p>Added labels to grammar tokens using bison to give better error messages.</p> |
| 3968 | |
| 3969 | <p>Fix looking for EOF in an unsigned variable since it may be negative |
| 3970 | on some systems.</p> |
| 3971 | |
| 3972 | |
| 3973 | <h3>Query Engine Changes</h3> |
| 3974 | |
| 3975 | <p>The query engine now implements SPARQL <code>GRAPH</code> matching. |
| 3976 | </p> |
| 3977 | |
| 3978 | <p>Merge only all adjacent sequences of basic graph pattern triples, not |
| 3979 | anything with triples such as optional BGP triples. |
| 3980 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=80">Issue#0000080</a>. |
| 3981 | </p> |
| 3982 | |
| 3983 | <p>When an exact triple match is present, do not execute a query forever. |
| 3984 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=94">Issue#0000094</a>. |
| 3985 | </p> |
| 3986 | |
| 3987 | <p> Fail if a variable argument to <code>LANG()</code> has an |
| 3988 | undefined value rather than try to execute a NULL pointer. |
| 3989 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=113">Issue#0000113</a>. |
| 3990 | </p> |
| 3991 | |
| 3992 | <p>Add query / query_results link early so reference counting is done right. |
| 3993 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=95">Issue#0000095</a>. |
| 3994 | </p> |
| 3995 | |
| 3996 | <p>Report failure as well as query finished when an error occurs |
| 3997 | during making results. |
| 3998 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=118">Issue#0000118</a>. |
| 3999 | </p> |
| 4000 | |
| 4001 | <p>Added a hack to check an outer constraint expression. |
| 4002 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=129">Issue#0000129</a>. |
| 4003 | </p> |
| 4004 | |
| 4005 | <p>Free origins (<code>GRAPH</code> nodes) in triples to prevent memory leak. |
| 4006 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=133">Issue#0000133</a>. |
| 4007 | </p> |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | <h3>Query API Changes</h3> |
| 4012 | |
| 4013 | <p>Added a new <code>rasqal_query_results_formatter</code> class to |
| 4014 | format <code>librdf_query_results</code> into a syntax. Also added |
| 4015 | a <code>rasqal_query_results_formats_enumerate()</code> function to |
| 4016 | enumerate all the supported formats. The query results |
| 4017 | method <code>rasqal_query_results_write()</code> was changed to use |
| 4018 | this class internally. |
| 4019 | </p> |
| 4020 | |
| 4021 | <p>Added a new feature system to allow setting parameters on |
| 4022 | the query parser/engine. Initially have one |
| 4023 | feature <code>RASQAL_FEATURE_NO_NET</code> that prevents |
| 4024 | network requests during a query execution. |
| 4025 | Added functions: |
| 4026 | <code>rasqal_features_enumerate</code>, |
| 4027 | <code>rasqal_get_feature_count</code>, |
| 4028 | <code>rasqal_feature_from_uri</code>, |
| 4029 | <code>rasqal_feature_value_type</code>, |
| 4030 | <code>rasqal_query_set_feature</code>, |
| 4031 | <code>rasqal_query_set_feature_string</code>, |
| 4032 | <code>rasqal_query_get_feature</code>, |
| 4033 | <code>rasqal_query_get_feature_string</code>. |
| 4034 | </p> |
| 4035 | |
| 4036 | <p><code>roqet</code> gained a <code>-f</code> |
| 4037 | / <code>--feature</code> option to set query features. |
| 4038 | </p> |
| 4039 | |
| 4040 | |
| 4041 | <h2 id="rel0_9_12"><a name="rel0_9_12">Rasqal 0.9.12 Changes</a></h2> |
| 4042 | |
| 4043 | <h3>General Changes</h3> |
| 4044 | |
| 4045 | <p>Added <a href="http://json.org/">JSON</a> as a query results |
| 4046 | format based on the |
| 4047 | <a href="http://www.w3.org/2001/sw/DataAccess/json-sparql/">Serializing SPARQL Query Results in JSON</a> |
| 4048 | draft. |
| 4049 | </p> |
| 4050 | |
| 4051 | <p>Added query writing to a <code>raptor_iostream</code> which allows |
| 4052 | reading in one query language and writing in another. The only |
| 4053 | useful consequence of this now is that it enables <code>roqet</code> |
| 4054 | to become an RDQL to SPARQL translator.</p> |
| 4055 | |
| 4056 | <p>Rasqal now requires <a href="http://librdf.org/raptor/">raptor</a> |
| 4057 | 1.4.9 or newer. |
| 4058 | </p> |
| 4059 | |
| 4060 | |
| 4061 | <h3>Configuration and Build Changes</h3> |
| 4062 | |
| 4063 | <p>Now using subversion.</p> |
| 4064 | |
| 4065 | |
| 4066 | <h3><code>roqet</code> utility Changes</h3> |
| 4067 | |
| 4068 | <p>Altered the <code>-d</code> (<code>--dump-query</code>) option to |
| 4069 | now take an argument of the query format to dump. The values it can |
| 4070 | take are <code>debug</code>, <code>structure</code> or |
| 4071 | <code>sparql</code>.</p> |
| 4072 | |
| 4073 | <p>To convert a query from RDQL to SPARQL, use:</p> |
| 4074 | <pre> |
| 4075 | roqet -q -i rdql -d sparql -n query.rdql > query.sparql |
| 4076 | </pre> |
| 4077 | |
| 4078 | <p>Added <code>-r json</code> for <a href="http://json.org/">JSON</a> |
| 4079 | query results output based on the draft defined in the |
| 4080 | <a href="http://www.w3.org/2001/sw/DataAccess/json-sparql/">Serializing SPARQL Query Results in JSON</a> draft |
| 4081 | </p> |
| 4082 | |
| 4083 | |
| 4084 | <h3>SPARQL Query Language Changes</h3> |
| 4085 | |
| 4086 | <p>Updated to match |
| 4087 | <a href="http://www.w3.org/TR/2006/CR-rdf-sparql-query-20060406/">SPARQL Query Language for RDF, W3C Candidate Recommendation 6 April 2006</a>. |
| 4088 | All DAWG syntax tests now pass. |
| 4089 | The update includes near alignment with SPARQL grammar term names |
| 4090 | except where the flex/bison approach diverged.</p> |
| 4091 | |
| 4092 | <p>Updated SPARQL tests from DAWG CVS</p> |
| 4093 | |
| 4094 | <p>Finally removed long deprecated <code>ASC[]</code> and |
| 4095 | <code>DESC[]</code> syntax.</p> |
| 4096 | |
| 4097 | |
| 4098 | <h3>RDQL Query Language Changes</h3> |
| 4099 | |
| 4100 | <p>Handle empty regex <code>//</code> |
| 4101 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=71">Issue#0000071</a> |
| 4102 | </p> |
| 4103 | |
| 4104 | |
| 4105 | <h3>Query Engine Changes</h3> |
| 4106 | |
| 4107 | <p>Some updates to handle latest changes to SPARQL grammar.</p> |
| 4108 | |
| 4109 | <p>Added <code>RASQAL_EXPR_REGEX</code> 3-arg operation to match |
| 4110 | the SPARQL <code>regex()</code> 2/3-arg function.</p> |
| 4111 | |
| 4112 | <p>Many internal changes to move more of the query execution state |
| 4113 | from inside <code>rasqal_query</code> to |
| 4114 | inside <code>rasqal_query_results</code> and related structures. |
| 4115 | This is not yet complete but when done, you will be able to execute |
| 4116 | the same query more than once at the same time. |
| 4117 | </p> |
| 4118 | |
| 4119 | |
| 4120 | <h3>Query API Changes</h3> |
| 4121 | |
| 4122 | <p>Added <code>rasqal_query_write</code> to write a query |
| 4123 | structure into a syntax onto a raptor_iostream. Implements |
| 4124 | writing SPARQL format with format URI NULL, |
| 4125 | <a href="http://www.w3.org/TR/rdf-sparql-query/">http://www.w3.org/TR/rdf-sparql-query/</a> |
| 4126 | or |
| 4127 | <a href="http://www.w3.org/TR/2006/CR-rdf-sparql-query-20060406/">http://www.w3.org/TR/2006/CR-rdf-sparql-query-20060406/</a> |
| 4128 | </p> |
| 4129 | |
| 4130 | <p>Added a <a href="http://json.org/">JSON</a> |
| 4131 | SPARQL query results format with format URI identifier |
| 4132 | <a href="http://www.w3.org/2001/sw/DataAccess/json-sparql/">http://www.w3.org/2001/sw/DataAccess/json-sparql/</a> |
| 4133 | based on the draft defined in |
| 4134 | <a href="http://www.w3.org/2001/sw/DataAccess/json-sparql/">http://www.w3.org/2001/sw/DataAccess/json-sparql/</a> |
| 4135 | Implemented document with version |
| 4136 | <code>alt-ser-sparql.rst,v 1.3 2006/02/16 16:03:08 k Exp</code>. |
| 4137 | </p> |
| 4138 | |
| 4139 | <p><code>rasqal_query_get_all_variable_sequence</code> was corrected to match the |
| 4140 | definition - return all variables, not just the bound (<code>SELECT</code>ed) ones. |
| 4141 | Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=79">Issue#00000079</a>. |
| 4142 | </p> |
| 4143 | |
| 4144 | <p>Added <code>rasqal_query_get_anonymous_variable_sequence</code> to return |
| 4145 | only anonymous variables after change above. |
| 4146 | </p> |
| 4147 | |
| 4148 | <p>Added <code>rasqal_graph_pattern_get_index</code> to get the |
| 4149 | absolute index of a graph pattern in a graph. |
| 4150 | </p> |
| 4151 | |
| 4152 | |
| 4153 | <h3>IOstream class Changes</h3> |
| 4154 | |
| 4155 | <p>Added |
| 4156 | <code>rasqal_query_iostream_write_escaped_counted_string</code> and |
| 4157 | <code>rasqal_query_escape_counted_string</code> |
| 4158 | to format an escaped string suitable for using inside a query. |
| 4159 | </p> |
| 4160 | |
| 4161 | |
| 4162 | <h3>Documentation Changes</h3> |
| 4163 | |
| 4164 | <p>Updated <code>roqet.1</code> for --exec option and new usages.</p> |
| 4165 | |
| 4166 | |
| 4167 | <h2 id="rel0_9_11"><a name="rel0_9_11">Rasqal 0.9.11 Changes</a></h2> |
| 4168 | |
| 4169 | <h3>General Changes</h3> |
| 4170 | |
| 4171 | <p>Duplicated <code>SELECT</code> variables are now detected, give a |
| 4172 | warning and are removed. |
| 4173 | </p> |
| 4174 | |
| 4175 | <p>Rasqal now requires <a href="http://librdf.org/raptor/">raptor</a> |
| 4176 | 1.4.8 or newer to get the <em>guess</em> parser that uses URI/name |
| 4177 | and mime type returned from protocol request (if available) to choose |
| 4178 | the correct parser. |
| 4179 | </p> |
| 4180 | |
| 4181 | <p>Added an internal <code>rasqal_map</code> key : value map for use |
| 4182 | with result duplicate detection and ordering. |
| 4183 | </p> |
| 4184 | |
| 4185 | <p>A major source code regoranisation moved all library source code |
| 4186 | to the <code>src/</code> dir, roqet to <code>utils/</code> and other |
| 4187 | documentation to <code>docs/</code>. This should only affect |
| 4188 | packagers, not any functionality.</p> |
| 4189 | |
| 4190 | <p>Many more function documentation were added to the sources for use |
| 4191 | by gtk-doc.</p> |
| 4192 | |
| 4193 | |
| 4194 | <h3>SPARQL Query Language Changes</h3> |
| 4195 | |
| 4196 | <p>Updated to the |
| 4197 | <a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20051123/">SPARQL Query Language for RDF W3C Working Draft 23 November 2005</a>:</p> |
| 4198 | <ul> |
| 4199 | <li>Added <code>isIRI</code> keywords.</li> |
| 4200 | <li>Updated the name definitions to allow initial _ in variable names.</li> |
| 4201 | <li>Changed the decimal and double literal syntax.</li> |
| 4202 | <li>Allow negative numeric literals.</li> |
| 4203 | <li>Change the AND and OR logic when an error is present.</li> |
| 4204 | </ul> |
| 4205 | |
| 4206 | <p>Added a post 2005-11-23 SPARQL WD syntax change: added |
| 4207 | <code>langMatches</code> operator and initial query engine support. |
| 4208 | </p> |
| 4209 | |
| 4210 | <p>Invalid <code>\u</code><em>HHHH</em> and |
| 4211 | <code>\U</code><em>HHHHHHHH</em> hex escapes and floating point |
| 4212 | number formats are detected and warned.</p> |
| 4213 | |
| 4214 | <p>Updates to the query engine make <code>DISTINCT</code> |
| 4215 | and <code>ORDER BY</code> now work, including with <code>LIMIT</code>. |
| 4216 | </p> |
| 4217 | |
| 4218 | <p>The lexer now counts line numbers correctly over multi-line |
| 4219 | comments.</p> |
| 4220 | |
| 4221 | <p>Updated changes to the valid characters allowed in SPARQL names |
| 4222 | for variable, prefix and QNames.</p> |
| 4223 | |
| 4224 | |
| 4225 | <h3>RDQL Query Language Changes</h3> |
| 4226 | |
| 4227 | <p>The lexer now counts line numbers correctly over multi-line |
| 4228 | comments.</p> |
| 4229 | |
| 4230 | |
| 4231 | <h3>Query Engine Changes</h3> |
| 4232 | |
| 4233 | <p>When query result sorting is used with limit |
| 4234 | (SPARQL <code>LIMIT</code>) and offset, they now work correctly, |
| 4235 | performing the limit and offset after ordering the result. This |
| 4236 | matches the SPARQL query result semantics. |
| 4237 | </p> |
| 4238 | |
| 4239 | <p>The query engine now implements distinct results |
| 4240 | (SPARQL <code>DISTINCT</code>) including with ordering |
| 4241 | (SPARQL <code>ORDER BY</code>). |
| 4242 | </p> |
| 4243 | |
| 4244 | <p>More cases with optional graph patterns (SPARQL |
| 4245 | <code>OPTIONAL</code>s) are now executed correctly. |
| 4246 | Note: this does <em>not</em> mean all cases work, there are known |
| 4247 | problems with executing optional clauses.</p> |
| 4248 | |
| 4249 | <p>Added types for <code>xsd:float</code> (C float) |
| 4250 | and <code>xsd:double</code> (C double); <code>xsd:decimal</code> |
| 4251 | (handled as a string) and <code>xsd:datetime</code> (as a string). |
| 4252 | </p> |
| 4253 | |
| 4254 | <p>Fixed (a compare b) between integers and doubles to be the right sign. |
| 4255 | </p> |
| 4256 | |
| 4257 | <p>Do not promote literals early on in comparisons to strings "perl |
| 4258 | style" but do the best type-based comparsion as late as possible. |
| 4259 | </p> |
| 4260 | |
| 4261 | |
| 4262 | <h3>Query API Changes</h3> |
| 4263 | |
| 4264 | <p>Added <code>rasqal_new_double_literal</code>.</p> |
| 4265 | |
| 4266 | <p>Added <code>rasqal_graph_pattern_visit</code> and type for visitor |
| 4267 | function <code>rasqal_graph_pattern_visit_fn</code>. |
| 4268 | </p> |
| 4269 | |
| 4270 | <p>Added <code>rasqal_new_expression_from_expression</code>.</p> |
| 4271 | |
| 4272 | <p>Added <code>rasqal_expression_visit</code> and type for visitor |
| 4273 | function <code>rasqal_expression_visit_fn</code>. |
| 4274 | </p> |
| 4275 | |
| 4276 | <p>Deprecated function <code>rasqal_new_floating_literal</code> replaced by |
| 4277 | new <code>rasqal_new_double_literal</code>. |
| 4278 | </p> |
| 4279 | |
| 4280 | <p>Deprecated function <code>rasqal_expression_foreach</code>, |
| 4281 | replaced by new <code>rasqal_expression_visit</code>. |
| 4282 | </p> |
| 4283 | |
| 4284 | <p>Function <code>rasqal_expression_evaluate</code> gains a flag |
| 4285 | argument of new enum <code>rasqal_compare_flags</code>.</p> |
| 4286 | |
| 4287 | <p>Added enum <code>rasqal_compare_flags</code> flags for |
| 4288 | <code>rasqal_expression_evaluate</code> or |
| 4289 | <code>rasqal_literal_compare</code>. Type |
| 4290 | <code>RASQAL_COMPARE_XQUERY</code> can be used with |
| 4291 | to ask for use of XQuery comparison and type promotions. |
| 4292 | </p> |
| 4293 | |
| 4294 | <p>Added <code>rasqal_literal</code> types: |
| 4295 | <code>RASQAL_LITERAL_DECIMAL</code>, |
| 4296 | <code>RASQAL_LITERAL_DATETIME</code>, |
| 4297 | <code>RASQAL_LITERAL_DOUBLE</code> (replacing deprecated |
| 4298 | <code>RASQAL_LITERAL_FLOATING</code>) and |
| 4299 | <code>RASQAL_LITERAL_FLOAT</code>. Reordered the |
| 4300 | <code>rasqal_literal</code> types in the enum. |
| 4301 | </p> |
| 4302 | |
| 4303 | <p>The enum types in <code>rasqal_literal_type</code> were reordered |
| 4304 | to make them match sparql type promotion.</p> |
| 4305 | |
| 4306 | |
| 4307 | <h3><code>roqet</code> utility program changes</h3> |
| 4308 | |
| 4309 | <p><code>roqet</code> gains -e/--exec option to execute a query |
| 4310 | string directly rather than via a file or URI containing the query. |
| 4311 | </p> |
| 4312 | |
| 4313 | <p>Now writes out XML results format in format with version URI |
| 4314 | <code>http://www.w3.org/2005/06/sparqlResults</code> and short name |
| 4315 | "xml". The previous version is available with short name "xml-v2". |
| 4316 | The latest version now writes <code>ordered</code> |
| 4317 | and <code>distinct</code> boolean-valued attributes on |
| 4318 | the <code>results</code> element. |
| 4319 | </p> |
| 4320 | |
| 4321 | |
| 4322 | <h3>Configuration Changes</h3> |
| 4323 | |
| 4324 | <p>The autogen.sh script for building from CVS was revamped to be |
| 4325 | more modular.</p> |
| 4326 | |
| 4327 | <p><code>configure</code> now takes an <code>--enable-gtk-doc</code> |
| 4328 | option to enable building of the documentation using the |
| 4329 | <code>gtk-doc</code> utility. It is by default enabled only if the |
| 4330 | utility is available. |
| 4331 | </p> |
| 4332 | |
| 4333 | |
| 4334 | <h3>Documentation Changes</h3> |
| 4335 | |
| 4336 | <p>The GNOME <code>gtk-doc</code> program is now used to |
| 4337 | automatically extract documentation from source comments into |
| 4338 | reference documentation. This is then merged with templates and |
| 4339 | additional documentation to provide a reference manual for rasqal |
| 4340 | as XML document which is turned into HTML along with GNOME devhelp |
| 4341 | support.</p> |
| 4342 | |
| 4343 | <p>This new documentation intended to replace the librasqal manual |
| 4344 | page/web page as easier to read document with scope for better |
| 4345 | expanding with more detail of rasqal including examples and tutorial |
| 4346 | information. |
| 4347 | The <a href="http://librdf.org/rasqal/librasqal.html">librasqal</a> |
| 4348 | manual page will continue to contain the summary information for the |
| 4349 | present. |
| 4350 | </p> |
| 4351 | |
| 4352 | |
| 4353 | <h2 id="rel0_9_10"><a name="rel0_9_10">Rasqal 0.9.10 Changes</a></h2> |
| 4354 | |
| 4355 | <h3>General Changes</h3> |
| 4356 | |
| 4357 | <p>The query engine now supports ordering query results, in SPARQL |
| 4358 | this is the <code>ORDER BY</code> clause.</p> |
| 4359 | |
| 4360 | |
| 4361 | <h3>SPARQL Query Language Changes</h3> |
| 4362 | |
| 4363 | <p>The SPARQL parser now passes (accepts) all the 70+ |
| 4364 | <em>SyntaxFull</em> tests in the RDF Data Access Working Group (DAWG) |
| 4365 | test suite for SPARQL. This mostly means accepting optional |
| 4366 | punctuation in some places. |
| 4367 | </p> |
| 4368 | |
| 4369 | <p>Sorting results with <code>ORDER BY</code> now partially works |
| 4370 | however comparison is not done with the SPARQL literal comparison |
| 4371 | rules (after XQuery) but using the existing RDQL-style "string-y" |
| 4372 | comparisons. |
| 4373 | </p> |
| 4374 | |
| 4375 | <p>Allow <code><></code> as a URI.</p> |
| 4376 | |
| 4377 | <p>The SPARQL parser now accepts some changes made by the DAWG after |
| 4378 | the last published working draft: |
| 4379 | <a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050419/">SPARQL Query Language for RDF</a>, |
| 4380 | W3C Working Draft, 19 April 2005. This includes:</p> |
| 4381 | |
| 4382 | <ul> |
| 4383 | <li>In <code>ORDER BY</code> |
| 4384 | <code>ASC(</code>expression<code>)</code> replaces <code>ASC[...]</code>, |
| 4385 | <code>DESC(</code>expression<code>)</code> replaces <code>DESC[...]</code>, |
| 4386 | and it also accepts <code>ORDER BY (</code>expression<code>)</code>. |
| 4387 | <code>ORDER BY </code>func()<code></code> is accepted although at |
| 4388 | present no extension function support is available that could use it. |
| 4389 | </li> |
| 4390 | |
| 4391 | <li><code>[]</code> can be used in the triple predicate position |
| 4392 | as an anonymous existential variable</li> |
| 4393 | |
| 4394 | <li>Enforce that ASK queries cannot use <code>ORDER BY</code>, |
| 4395 | <code>LIMIT</code> or <code>OFFSET</code></li> |
| 4396 | |
| 4397 | </ul> |
| 4398 | |
| 4399 | <p>Omitting <code>WHERE</code> gives a warning. Don't do that!</p> |
| 4400 | |
| 4401 | |
| 4402 | <h3>Query Engine Changes</h3> |
| 4403 | |
| 4404 | <p>The query engine now allows sorting of results (<code>ORDER BY</code> |
| 4405 | in SPARQL). It performs comparisons using the existing RDQL style |
| 4406 | and does not yet support the SPARQL literal comparison rules. Sorting |
| 4407 | can be done by a sequence of expressions, ascending or descending. |
| 4408 | If the final result is equality, the object pointers are used.</p> |
| 4409 | |
| 4410 | <p>Note: removal of duplicates is not supported yet.</p> |
| 4411 | |
| 4412 | <p>Some test code for datatypes support was added, not enabled by |
| 4413 | default and not yet useful.</p> |
| 4414 | |
| 4415 | |
| 4416 | <h3>Query API Changes</h3> |
| 4417 | |
| 4418 | <p>Removed functions deprecated in 0.9.9.</p> |
| 4419 | |
| 4420 | <p>Added <code>rasqal_graph_pattern_operator</code> enumeration with |
| 4421 | values for the main SPARQL graph patterns, graph pattern class method |
| 4422 | <code>rasqal_graph_pattern_get_operator</code> and graph pattern |
| 4423 | utility function <code>rasqal_graph_pattern_operator_as_string</code></p> |
| 4424 | |
| 4425 | <p>Modified the type of the final argument of |
| 4426 | <code>rasqal_new_graph_pattern_from_sequence</code> and |
| 4427 | <code>rasqal_graph_pattern_add_triples</code> from an integer to a |
| 4428 | <code>rasqal_graph_pattern_operator</code> enumeration.</p> |
| 4429 | |
| 4430 | <p>Deprecated function <code>rasqal_graph_pattern_get_flags</code> |
| 4431 | now always returning 0 replaced by the graph pattern operator |
| 4432 | functions listed above .</p> |
| 4433 | |
| 4434 | |
| 4435 | <h3><code>roqet</code> utility program changes</h3> |
| 4436 | |
| 4437 | <p>Removed deprecated flags -f and -o</p> |
| 4438 | |
| 4439 | |
| 4440 | <h2 id="rel0_9_9"><a name="rel0_9_9">Rasqal 0.9.9 Changes</a></h2> |
| 4441 | |
| 4442 | <h3>General Changes</h3> |
| 4443 | |
| 4444 | <p>SPARQL is now the default query language</p> |
| 4445 | |
| 4446 | <p>Added a signing memory debugging system to aid checking when |
| 4447 | rasqal-allocated memory is freed in another library or vice-versa |
| 4448 | enabled by <code>--with-memory-signing</code> configure option |
| 4449 | (defaults to on in maintainer mode).</p> |
| 4450 | |
| 4451 | <p>Fixed a few internal malloc/frees to use RASQAL_MALLOC / RASQAL_FREE |
| 4452 | so that the above signed memory system worked.</p> |
| 4453 | |
| 4454 | |
| 4455 | <h3>SPARQL Query Language Changes</h3> |
| 4456 | |
| 4457 | <p>Grammar updated to follow the |
| 4458 | <a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050419/">SPARQL Query Language for RDF</a>, |
| 4459 | W3C Working Draft, 19 April 2005. This changes many parts of the syntax: |
| 4460 | </p> |
| 4461 | <ul> |
| 4462 | <li>Turtle/N3 style for triples with abbreviations</li> |
| 4463 | <li><code>{</code> ... <code>}</code> around triple patterns</li> |
| 4464 | <li><code>OPTIONAL</code> instead of <code>[]</code></li> |
| 4465 | <li><code>GRAPH</code> replaces <code>SOURCE</code></li> |
| 4466 | <li><code>FROM NAMED</code> replaces <code>LOAD</code></li> |
| 4467 | <li><code>FILTER</code> replaces <code>AND</code></li> |
| 4468 | <li><code>REGEX</code> replaces <code>?var =~ /match/flags</code> |
| 4469 | and <code>!~</code></li> |
| 4470 | <li>Added <code>LIMIT</code>, <code>OFFSET</code> and |
| 4471 | <code>ORDER BY</code> with <code>ASC[]</code> and <code>DESC[]</code></li> |
| 4472 | <li>Changed function syntax to remove <code>&</code></li> |
| 4473 | <li>Removed old operator tokens: <code>ne</code>, <code>eq</code>, <code>==</code></li> |
| 4474 | </ul> |
| 4475 | |
| 4476 | <p>(Note: the query engine does not support sorting amongst other |
| 4477 | recently added SPARQL features)</p> |
| 4478 | |
| 4479 | <p>SPARQL keywords are now case independent rather than just upper |
| 4480 | or lowercase.</p> |
| 4481 | |
| 4482 | <p>Added """long literals""" after N3 (and soon, Turtle) |
| 4483 | and '''long literals''' for SPARQL only. |
| 4484 | </p> |
| 4485 | |
| 4486 | <p>Added many SPARQL tests from DAWG most not yet approved by the |
| 4487 | working group. Not all pass either because not implemented or |
| 4488 | known bugs.</p> |
| 4489 | |
| 4490 | <p>Added the revised |
| 4491 | <em>SPARQL Query Results XML Format</em> (the latest version not yet published) |
| 4492 | support to <code>rasqal_query_results_write</code> when called with |
| 4493 | format URI <code>http://www.w3.org/2001/sw/DataAccess/rf1/result2</code>. |
| 4494 | </p> |
| 4495 | |
| 4496 | |
| 4497 | <h3>Query Engine Changes</h3> |
| 4498 | |
| 4499 | <p>Uses the query results limit and offset information to skip |
| 4500 | initial results (offset) and provide a maximum number of results (limit). |
| 4501 | </p> |
| 4502 | |
| 4503 | <p>Moved some engine-specific operations from RDQL and SPARQL parser. |
| 4504 | </p> |
| 4505 | |
| 4506 | <p>Added internal <code>rasqal_formula</code> class for the Turtle |
| 4507 | part of the SPARQL parser |
| 4508 | </p> |
| 4509 | |
| 4510 | <p><strong>Deprecated</strong> the <code>rasqal_triples_source</code> |
| 4511 | factory method <code>new_triples_match</code>. It is replaced by a |
| 4512 | new method <code>init_triples_match</code> and will be removed from |
| 4513 | the next release.</p> |
| 4514 | |
| 4515 | |
| 4516 | |
| 4517 | <h3>Query API Changes</h3> |
| 4518 | |
| 4519 | <p>Added bnode identifier generation functions: |
| 4520 | <code>rasqal_query_set_default_generate_bnodeid_parameters</code>, |
| 4521 | <code>rasqal_query_set_generate_bnodeid_handler</code> based on the |
| 4522 | raptor API for generating blank node identifiers in the Turtle/N3 |
| 4523 | triple style. |
| 4524 | </p> |
| 4525 | |
| 4526 | <p>Added <code>order_conditions_sequence</code> to the query |
| 4527 | structure to store query ordering conditions and added access methods |
| 4528 | <code>rasqal_query_get_order_conditions_sequence</code> and |
| 4529 | <code>rasqal_query_get_order_condition</code> to read the resulting |
| 4530 | expressions. |
| 4531 | </p> |
| 4532 | |
| 4533 | <p>Added expressions for SPARQL ordering conditions: |
| 4534 | <code>RASQAL_EXPR_ORDER_COND_ASC</code>, |
| 4535 | <code>RASQAL_EXPR_ORDER_COND_DESC</code> and |
| 4536 | <code>RASQAL_EXPR_ORDER_COND_NONE</code>. |
| 4537 | </p> |
| 4538 | |
| 4539 | |
| 4540 | <p>Added types for variables in two version - normal and anonymous |
| 4541 | with an new enum <code>rasqal_variable_type</code> and |
| 4542 | <code>rasqal_new_variable_typed</code> to allow creating them. |
| 4543 | </p> |
| 4544 | |
| 4545 | <p>Completed the distinct/limit and offset get/set methods by adding: |
| 4546 | <code>rasqal_query_set_distinct</code>, |
| 4547 | <code>rasqal_query_set_limit</code>, |
| 4548 | <code>rasqal_query_get_offset</code> and |
| 4549 | <code>rasqal_query_set_offset</code> |
| 4550 | </p> |
| 4551 | |
| 4552 | <p>Deprecated the <code>rasqal_triple</code> flags field - the value |
| 4553 | <code>RASQAL_TRIPLE_FLAGS_EXACT</code> was only used in internals of |
| 4554 | the execution engine. The value |
| 4555 | <code>RASQAL_TRIPLE_FLAGS_OPTIONAL</code> was never used. Optionals |
| 4556 | are now noted on graph patterns. Deprecated |
| 4557 | <code>rasqal_triple_set_flags</code> and |
| 4558 | <code>rasqal_triple_get_flags</code>. |
| 4559 | </p> |
| 4560 | |
| 4561 | <p>Added enum <code>rasqal_query_verb</code> for the main query verbs: |
| 4562 | <code>RASQAL_QUERY_VERB_SELECT</code> |
| 4563 | <code>RASQAL_QUERY_VERB_CONSTRUCT</code> |
| 4564 | <code>RASQAL_QUERY_VERB_DESCRIBE</code> and |
| 4565 | <code>RASQAL_QUERY_VERB_ASK</code>. |
| 4566 | Added method <code>rasqal_query_get_verb</code> to access the verb. |
| 4567 | </p> |
| 4568 | |
| 4569 | <p>Added <code>rasqal_query_get_query_graph_pattern</code> to get the |
| 4570 | top graph pattern.</p> |
| 4571 | |
| 4572 | <p>Added <code>rasqal_query_get_wildcard</code> to get the query verb |
| 4573 | wildcard flag such as with SPARQL <code>SELECT *</code> |
| 4574 | </p> |
| 4575 | |
| 4576 | <p>Added <code>rasqal_query_get_construct_triples_sequence</code> and |
| 4577 | <code>rasqal_query_get_construct_triple</code> to get the triples |
| 4578 | made from a SPARQL <code>CONSTRUCT</code> query.</p> |
| 4579 | |
| 4580 | |
| 4581 | <h3><code>roqet</code> utility program changes</h3> |
| 4582 | |
| 4583 | <p>Updated roqet to include better query structure walking with |
| 4584 | <code>-w</code> / <code>--walk</code> including listing query verb, |
| 4585 | distinct, limit, offset flags, construct triples and easier to read |
| 4586 | groupings of graph patterns and triples.</p> |
| 4587 | |
| 4588 | <p>Deprecated roqet arguments <code>-f</code> / <code>--format</code> |
| 4589 | and <code>-o</code> / <code>--output</code> in place of |
| 4590 | <code>-r</code> / <code>--results</code> as both choose the query |
| 4591 | results format. |
| 4592 | </p> |
| 4593 | |
| 4594 | <p>SPARQL is now the default query language for roqet.</p> |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | <h2 id="rel0_9_8"><a name="rel0_9_8">Rasqal 0.9.8 Changes</a></h2> |
| 4599 | |
| 4600 | <h3>SPARQL Query Language Changes</h3> |
| 4601 | |
| 4602 | <p>Grammar updated to follow the |
| 4603 | <a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050217/">SPARQL Query Language for RDF</a>, |
| 4604 | W3C Working Draft, 17 February 2005. |
| 4605 | </p> |
| 4606 | |
| 4607 | <p>Added support for casting in constraint expresions for datatyped literals |
| 4608 | with the syntax <em>qname</em><code>(</code><em>literal</em><code>)</code> |
| 4609 | such as <code>xsd:decimal("10")</code>. |
| 4610 | </p> |
| 4611 | |
| 4612 | <p>Added named graphs parsing with <code>LOAD</code> and note that |
| 4613 | <code>UNION</code> cannot be handled yet, <code>SOURCE</code> and |
| 4614 | <code>[</code>...<code>]</code> syntax for optionals are deprecated. |
| 4615 | </p> |
| 4616 | |
| 4617 | |
| 4618 | <h3>Query Engine Changes</h3> |
| 4619 | |
| 4620 | <p>Engine now operates over a hierarchy of |
| 4621 | <code>rasqal_graph_pattern</code> objects, where at the root the |
| 4622 | query has a single <em>query graph</em> rather than a sequence of |
| 4623 | graph patterns. The query graph contains the former sequence of |
| 4624 | graph patterns.</p> |
| 4625 | |
| 4626 | <p>Constraints can be applied to any graph pattern, not just at the |
| 4627 | top level of a query.</p> |
| 4628 | |
| 4629 | <p>Added casting expressions type <code>RASQAL_EXPR_CAST</code> |
| 4630 | and constructor <code>rasqal_new_cast_expression</code>.</p> |
| 4631 | |
| 4632 | <p>Fixed setting of a triple origin (SPARQL <code>GRAPH</code>) which |
| 4633 | was not working in 0.9.7</p> |
| 4634 | |
| 4635 | <p><code>xsd:boolean</code> RDF literals are now promoted into |
| 4636 | internal <code>RASQAL_LITERAL_BOOLEAN</code> typed |
| 4637 | <code>rasqal_literal</code> like for XSD integer and double. |
| 4638 | </p> |
| 4639 | |
| 4640 | <p>The query engine uses the named graph information when evaluating |
| 4641 | queries, passing it to the <code>rasqal_triples_match</code> factory |
| 4642 | methods either implemented with raptor or redland as a |
| 4643 | <code>rasqal_triples_source_factory</code> and returning them |
| 4644 | as results of variable bindings. |
| 4645 | </p> |
| 4646 | |
| 4647 | |
| 4648 | |
| 4649 | <h3>Query API Changes</h3> |
| 4650 | |
| 4651 | <p>Added no-arg constructor |
| 4652 | <code>rasqal_new_graph_pattern</code> |
| 4653 | </p> |
| 4654 | |
| 4655 | <p>Added method |
| 4656 | <code>rasqal_graph_pattern_add_triples</code> |
| 4657 | to add triples to an existing graph pattern. |
| 4658 | </p> |
| 4659 | |
| 4660 | <p>Added methods |
| 4661 | <code>rasqal_graph_pattern_add_constraint</code>, |
| 4662 | <code>rasqal_graph_pattern_get_constraint_sequence</code> and |
| 4663 | <code>rasqal_graph_pattern_get_constraint</code> |
| 4664 | to add constraints to a graph pattern. |
| 4665 | </p> |
| 4666 | |
| 4667 | <p>Added method |
| 4668 | <code>rasqal_graph_pattern_add_sub_graph_pattern</code> |
| 4669 | to add a sub-graph pattern to a graph pattern. |
| 4670 | </p> |
| 4671 | |
| 4672 | <p>Added a <em>Data Graph</em> class with constructor |
| 4673 | <code>rasqal_new_data_graph</code>, destructor |
| 4674 | <code>rasqal_free_data_graph</code> and debug method |
| 4675 | <code>rasqal_data_graph_print</code>. |
| 4676 | </p> |
| 4677 | |
| 4678 | <p>Added query methods for data graphs: |
| 4679 | <code>rasqal_query_add_data_graph</code>, |
| 4680 | <code>rasqal_query_get_data_graph_sequence</code>, |
| 4681 | <code>rasqal_query_get_data_graph</code>. |
| 4682 | </p> |
| 4683 | |
| 4684 | <p>Deprecated query methods |
| 4685 | <code>rasqal_query_add_constraint</code>, |
| 4686 | <code>rasqal_query_get_constraint_sequence</code> |
| 4687 | <code>rasqal_query_get_constraint</code>, |
| 4688 | <code>rasqal_query_add_source</code>, |
| 4689 | <code>rasqal_query_get_source_sequence</code> and |
| 4690 | <code>rasqal_query_get_source</code>. These will be removed in the |
| 4691 | next release.</p> |
| 4692 | |
| 4693 | <p>Removed functions deprecated in previous version: |
| 4694 | <code>rasqal_query_get_variable_sequence</code> |
| 4695 | and <code>rasqal_query_add_triple</code>. |
| 4696 | </p> |
| 4697 | |
| 4698 | |
| 4699 | <h2 id="rel0_9_7"><a name="rel0_9_7">Rasqal 0.9.7 Changes</a></h2> |
| 4700 | |
| 4701 | <h3>General Changes</h3> |
| 4702 | |
| 4703 | <p>Fix a resource clean up when query results are either not read at |
| 4704 | all or not fully exhausted. This caused a problem in Redland when it |
| 4705 | held on to MySQL database handles despite a query having ended.</p> |
| 4706 | |
| 4707 | <p>Added option <code>-n/--dryrun</code> to <code>roqet</code> to stop after |
| 4708 | preparing the query. Added option <code>-w/--walk-query</code> to |
| 4709 | walk and print the query using the graph API.</p> |
| 4710 | |
| 4711 | <p>New build configuration and portability fixes for win32 (John Barstow)</p> |
| 4712 | |
| 4713 | <p>Portability fixes for win32 - define <code>RASQAL_INLINE</code> |
| 4714 | and use it as for raptor. (Dave Viner)</p> |
| 4715 | |
| 4716 | <p>Make rasqal tests work when building against raptor in a sibling |
| 4717 | source tree.</p> |
| 4718 | |
| 4719 | |
| 4720 | <h3>Query Engine Changes</h3> |
| 4721 | |
| 4722 | <p>Added a graph pattern API with <code>rasqal_graph_pattern</code> |
| 4723 | typedef and <code>rasqal_pattern_flags</code> enum with value |
| 4724 | <code>RASQAL_PATTERN_FLAGS_OPTIONAL</code> to allow complete |
| 4725 | walking of the query structure.</p> |
| 4726 | |
| 4727 | <p>Two new methods to the query class were added to support this: |
| 4728 | <code>rasqal_query_get_graph_pattern_sequence</code> to get the |
| 4729 | raptor_sequence of graph patterns in a query and |
| 4730 | <code>rasqal_query_get_graph_pattern</code> to get individual an |
| 4731 | graph pattern by index.</p> |
| 4732 | |
| 4733 | <p>The new graph pattern methods added are:</p> |
| 4734 | <ul> |
| 4735 | <li><code>rasqal_graph_pattern_get_triple</code> to get a |
| 4736 | <code>raptor_triple</code> inside a graph pattern.</li> |
| 4737 | <li><code>rasqal_graph_pattern_get_sub_graph_pattern_sequence</code> to |
| 4738 | get the raptor_sequence of sub-graph patterns.</li> |
| 4739 | <li><code>rasqal_graph_pattern_get_sub_graph_pattern</code> to get |
| 4740 | a sub-graph pattern inside a graph pattern by index.</li> |
| 4741 | <li><code>rasqal_graph_pattern_get_flags</code> to get a graph |
| 4742 | pattern's flags.</li> |
| 4743 | <li><code>rasqal_graph_pattern_print</code> to print a graph |
| 4744 | pattern in a debug form.</li> |
| 4745 | </ul> |
| 4746 | |
| 4747 | <p>Deprecated <code>rasqal_query_add_triple</code> as it doesn't |
| 4748 | construct the graph patterns and is of little use as it does not |
| 4749 | build the correct query structures.</p> |
| 4750 | |
| 4751 | <p>Added query API methods to get the bound and all variables |
| 4752 | in a query: <code>rasqal_query_get_bound_variable_sequence</code> |
| 4753 | and <code>rasqal_query_get_all_variable_sequence</code> respectively. |
| 4754 | Deprecated <code>rasqal_query_get_variable_sequence</code> as |
| 4755 | too ambiguous.</p> |
| 4756 | |
| 4757 | <p>With the aid of gcc <code>-Wswitch-enum</code>, found and fixed |
| 4758 | cases where switch on enumerated values were missing cases. The |
| 4759 | remaining cases return failure or an error message rather than |
| 4760 | abort(). This fixed a crash when comparing for equality a variable |
| 4761 | ?x with a blank node value and an interger.</p> |
| 4762 | |
| 4763 | <p>Deleted <code>RASQAL_EXPR_PATTERN</code> as it was never used.</p> |
| 4764 | |
| 4765 | <p>Added <code>rasqal_query_get_distinct</code> to get a |
| 4766 | query-specified distinct results flag.</p> |
| 4767 | |
| 4768 | <p>Added <code>rasqal_query_get_limit</code> to get a query-specified |
| 4769 | limit on the number of results.</p> |
| 4770 | |
| 4771 | |
| 4772 | |
| 4773 | <h3>SPARQL Query Language Changes</h3> |
| 4774 | |
| 4775 | <p>Updated some of the SPARQL syntax to match the changes in the |
| 4776 | <a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050217/">SPARQL Query Language for RDF</a> |
| 4777 | W3C Working Draft of 17 February 2005. Added <code>GRAPH</code> |
| 4778 | replacing <code>SOURCE</code> and <code>WITH</code> replacing |
| 4779 | <code>FROM</code>. Added warnings about using the older forms |
| 4780 | and about using <code>[</code>...<code>]</code> instead of |
| 4781 | <code>OPTIONAL</code>. |
| 4782 | </p> |
| 4783 | |
| 4784 | <p>Added recording of <code>DISTINCT</code> and <code>LIMIT</code> |
| 4785 | in the query structures but not yet used by the query engine.</p> |
| 4786 | |
| 4787 | |
| 4788 | |
| 4789 | <h3>RDQL Query Language Changes</h3> |
| 4790 | |
| 4791 | <p>None.</p> |
| 4792 | |
| 4793 | |
| 4794 | |
| 4795 | <h2 id="rel0_9_6"><a name="rel0_9_6">Rasqal 0.9.6 Changes</a></h2> |
| 4796 | |
| 4797 | <h3>General Changes</h3> |
| 4798 | |
| 4799 | <p>Fix a bug in writing a query result to XML when blank nodes are |
| 4800 | used. Now also correctly uses the base URI when pass in to the |
| 4801 | writing method.</p> |
| 4802 | |
| 4803 | <p>Added support for three types of query result - bindings (the only |
| 4804 | one in previous versions), an RDF graph and a boolean. Added |
| 4805 | <code>rasqal_query_results</code> methods to test the type of the |
| 4806 | result: <code>rasqal_query_results_is_bindings</code>, |
| 4807 | <code>rasqal_query_results_is_boolean</code> and |
| 4808 | <code>rasqal_query_results_is_graph</code>.</p> |
| 4809 | |
| 4810 | <p>Added |
| 4811 | <code>rasqal_query_results_get_triple</code> |
| 4812 | to get current triple as a <code>raptor_statement</code> |
| 4813 | and <code>rasqal_query_results_next_triple</code> to move to the next triple. |
| 4814 | </p> |
| 4815 | |
| 4816 | <p>Added |
| 4817 | <code>rasqal_query_results_get_boolean</code> |
| 4818 | to get a boolean query result value. |
| 4819 | </p> |
| 4820 | |
| 4821 | <p>Added <code>rasqal_triple</code> copy constructor |
| 4822 | <code>rasqal_new_triple_from_triple</code>. |
| 4823 | </p> |
| 4824 | |
| 4825 | |
| 4826 | |
| 4827 | <h3>Query Engine Changes</h3> |
| 4828 | |
| 4829 | <p>Constructs an RDF graph result as a sequence of triples. This |
| 4830 | enables the SPARQL <code>CONSTRUCT</code> form to work. |
| 4831 | </p> |
| 4832 | |
| 4833 | <p>Can return a boolean result indicating that there were variable |
| 4834 | binding results, but not returning them. This enables the SPARQL |
| 4835 | <code>ASK</code> form to work. |
| 4836 | </p> |
| 4837 | |
| 4838 | <p>Added a new function expression - rasqal_op enum value |
| 4839 | <code>RASQAL_EXPR_FUNCTION</code>, added new <code>name</code> and |
| 4840 | <code>args</code> fields to the <code>rasqal_expression</code> |
| 4841 | structure and added <code>rasqal_new_function_expression</code> to |
| 4842 | construct this expression. |
| 4843 | </p> |
| 4844 | |
| 4845 | <p>Added new 1-argument expression <code>RASQAL_EXPR_STR</code> |
| 4846 | returning a string version of the expression.</p> |
| 4847 | |
| 4848 | <p>Added new 1-argument expressions operating on RDF literals: |
| 4849 | <code>RASQAL_EXPR_LANG</code> returning the language string of an RDF literal, |
| 4850 | <code>RASQAL_EXPR_DATATYPE</code> returning the datatype URI of an RDF literal. |
| 4851 | </p> |
| 4852 | |
| 4853 | <p>Added new 1-argument testing expressions returning booleans: |
| 4854 | <code>RASQAL_EXPR_BOUND</code> true if the variable argument is bound to a value, |
| 4855 | <code>RASQAL_EXPR_ISURI</code> true if the argument is a URI, |
| 4856 | <code>RASQAL_EXPR_ISBLANK</code> true if the argument is a blank node and |
| 4857 | <code>RASQAL_EXPR_ISLITERAL</code> true if the argument is an RDF literal. |
| 4858 | </p> |
| 4859 | |
| 4860 | <p>Fixed a problem in optional results returning extra results |
| 4861 | with no new bindings. |
| 4862 | </p> |
| 4863 | |
| 4864 | |
| 4865 | <h3>SPARQL Query Language Changes</h3> |
| 4866 | |
| 4867 | <p>The SPARQL Parser now allows UTF-8 and \u, \U in prefixes and |
| 4868 | QNames. |
| 4869 | </p> |
| 4870 | |
| 4871 | <p>Now supports <code>CONSTRUCT</code> and <code>ASK</code> |
| 4872 | queries using the updated query engine features.</p> |
| 4873 | |
| 4874 | <p><code>OPTIONAL</code> can now be used wherever <code>[</code> ... |
| 4875 | <code>]</code> could be used (parser bug fix).</p> |
| 4876 | |
| 4877 | <p>Now supports the SPARQL built-in functions |
| 4878 | <code>STR()</code> returning a string version of the expression, |
| 4879 | <code>LANG()</code> returning the language string of an RDF literal, |
| 4880 | <code>DATATYPE()</code> returning the datatype URI of an RDF literal, |
| 4881 | <code>BOUND()</code> testing if a variable is bound, |
| 4882 | <code>ISURI()</code> testing if an expression is a URI, |
| 4883 | <code>ISBLANK()</code> testing if an expression is a blank node and |
| 4884 | <code>ISLITERAL()</code> testing if an expression is an RDF literal. |
| 4885 | </p> |
| 4886 | |
| 4887 | <p>Now supports SPARQL <code>BASE</code> directive for setting the |
| 4888 | base URI of a query. This is <em>experimental</em> and may not be in |
| 4889 | the next version or may not be in the final SPARQL language.</p> |
| 4890 | |
| 4891 | <p>The parser now expands QNames correctly when used in literals like |
| 4892 | <code>"blah"^^xsd:string</code>. |
| 4893 | </p> |
| 4894 | |
| 4895 | |
| 4896 | <h3>RDQL Query Language Changes</h3> |
| 4897 | |
| 4898 | <p>The RDQL Parser now allows UTF-8 and \u, \U in prefixes and |
| 4899 | QNames. This makes RDQL testsuite tests S-03, S-04 and S-05 work. |
| 4900 | </p> |
| 4901 | |
| 4902 | |
| 4903 | |
| 4904 | <h2 id="rel0_9_5"><a name="rel0_9_5">Rasqal 0.9.5 Changes</a></h2> |
| 4905 | |
| 4906 | <p>A release with major changes internal to the query engine to |
| 4907 | operate over graph patterns instead of sequences of triple patterns |
| 4908 | and to add execution of optional graph patterns. Additionally the |
| 4909 | query results can now be written in a recognised XML format.</p> |
| 4910 | |
| 4911 | <p>This version of Rasqal requires |
| 4912 | <a href="http://librdf.org/raptor/">Raptor</a> 1.4.4.</p> |
| 4913 | |
| 4914 | |
| 4915 | <h3>Core Changes</h3> |
| 4916 | |
| 4917 | <p>Added a <code>rasqal_graph_pattern</code> class for handling |
| 4918 | matching a graph pattern (set of triple patterns) in an |
| 4919 | <code>rasqal_query</code>. RDQL only has one of these wheras SPARQL |
| 4920 | may have many, and they may be nested (this may change, as SPARQL is |
| 4921 | under development).</p> |
| 4922 | |
| 4923 | <p>Added <code>rasqal_query_results_write</code> method to write |
| 4924 | variable binding query results to a <code>raptor_iostream</code> in |
| 4925 | the XML format defined by |
| 4926 | <a href="http://www.w3.org/TR/2004/WD-rdf-sparql-XMLres-20041221/">SPARQL Variable Binding Results XML Format</a>, W3C Working Draft, 21 December 2004. |
| 4927 | </p> |
| 4928 | |
| 4929 | |
| 4930 | |
| 4931 | <h3>Query Engine Changes</h3> |
| 4932 | |
| 4933 | <p>Updated the query engine to operate over graph patterns rather |
| 4934 | than a single sequence of triple patterns. The graph patterns may be |
| 4935 | optional, which is used to implement SPARQL optionals. Nested graph |
| 4936 | patterns are constructed but cannot yet be executed. |
| 4937 | </p> |
| 4938 | |
| 4939 | <p>Added a unary minus expression type.</p> |
| 4940 | |
| 4941 | <p>Improved the type promotion for expression evaluation. Try to |
| 4942 | evaluate strings as doubles or integers if the operation contains one |
| 4943 | double or integer respectively.</p> |
| 4944 | |
| 4945 | <p>Fixed a memory leak with string matches/non-matches.</p> |
| 4946 | |
| 4947 | |
| 4948 | <h3>SPARQL Query Language Changes</h3> |
| 4949 | |
| 4950 | <p>Optional graph patterns <code>OPTIONAL</code> and |
| 4951 | <code>[</code> ... <code>]</code> now work.</p> |
| 4952 | |
| 4953 | <p>Added the <code>{</code> ... <code>}</code> group syntax and |
| 4954 | removed the <code>(</code> ... <code>)</code> form.</p> |
| 4955 | |
| 4956 | <p><code>$</code> was added as an allowed variable prefixes.</p> |
| 4957 | |
| 4958 | <p>A warning was added to show <code>SOURCE *</code> is ignored.</p> |
| 4959 | |
| 4960 | <p>Added the <code>UNION</code> keyword, unsupported.</p> |
| 4961 | |
| 4962 | <p>Rasqal now passes the |
| 4963 | <a href="http://www.w3.org/2001/sw/DataAccess/">DAWG</a> |
| 4964 | SPARQL |
| 4965 | <a href="http://www.w3.org/2001/sw/DataAccess/tests/">test cases</a>: |
| 4966 | Optional triples (dawg-opt-query-001, dawg-opt-query-002, |
| 4967 | dawg-opt-query-003, dawg-opt-query-004) |
| 4968 | and examples from query WD (sparql-query-example-2.1a, |
| 4969 | sparql-query-example-2.2a, sparql-query-example-2.3a, |
| 4970 | sparql-query-example-2.4a, sparql-query-example-3) |
| 4971 | </p> |
| 4972 | |
| 4973 | <p>Allow UTF-8 qname prefixes and check name against XML name |
| 4974 | constraints.</p> |
| 4975 | |
| 4976 | <p>Recover lexer state from errors in regexes.</p> |
| 4977 | |
| 4978 | <p>Terminate the lexer on a syntax error, rather than produce |
| 4979 | multiple errors.</p> |
| 4980 | |
| 4981 | |
| 4982 | <h3>RDQL Query Language Changes</h3> |
| 4983 | |
| 4984 | <p>The lexer now handles UTF-8 qname prefixes, enabling RDQL |
| 4985 | testsuite test S-02 to pass.</p> |
| 4986 | |
| 4987 | <p>Allow UTF-8 qname prefixes and check name against XML name |
| 4988 | constraints.</p> |
| 4989 | |
| 4990 | <p>Recover lexer state from errors in regexes.</p> |
| 4991 | |
| 4992 | <p>Terminate the lexer on a syntax error, rather than produce |
| 4993 | multiple errors.</p> |
| 4994 | |
| 4995 | |
| 4996 | |
| 4997 | <h2 id="rel0_9_4"><a name="rel0_9_4">Rasqal 0.9.4 Changes</a></h2> |
| 4998 | |
| 4999 | <p>Pass on raptor parser errors to rasqal's error routines and |
| 5000 | upwards.</p> |
| 5001 | |
| 5002 | <p>Clean up several memory allocations when a query fails to prepare |
| 5003 | or execute fully.</p> |
| 5004 | |
| 5005 | <p>Fixed lexer jams when a query contained an illegal |
| 5006 | variable name after a '?'.</p> |
| 5007 | |
| 5008 | <p>Fixed lexer crashes when a query ended in a regex pattern like |
| 5009 | <code>/abc/</code>.</p> |
| 5010 | |
| 5011 | <p>Tidied up the testing framework so 'make distcheck' works.</p> |
| 5012 | |
| 5013 | |
| 5014 | <h2 id="rel0_9_3"><a name="rel0_9_3">Rasqal 0.9.3 Changes</a></h2> |
| 5015 | |
| 5016 | <p>Rasqal's License was changed from LGPL 2.1/MPL 1.1 to |
| 5017 | LGPL 2.1/Apache 2</p> |
| 5018 | |
| 5019 | <p>Added support for the |
| 5020 | <a href="http://www.w3.org/TR/2004/WD-rdf-sparql-query-20041012/"> |
| 5021 | SPARQL Query Language for RDF</a>, |
| 5022 | W3C Working Draft, 12 October 2004 |
| 5023 | from the W3C RDF Data Access Working Group (DAWG). |
| 5024 | The support is at the basic syntax level - token lexer and grammar parser |
| 5025 | which passes the first simple tests from the proposed |
| 5026 | DAWG testcases. No additional query engine support has been added for SPARQL |
| 5027 | features that are not supported by RDQL. |
| 5028 | </p> |
| 5029 | |
| 5030 | <p>Queries can now be prepared and then executed multiple times.</p> |
| 5031 | |
| 5032 | <p>Added configure <code>--enable-query-languages</code> option with |
| 5033 | <code>rdql</code> and <code>sparql</code> as the choices.</p> |
| 5034 | |
| 5035 | <p>Thanks to Chris Pointon for several patches to make Rasqal easier |
| 5036 | to build under Win32. Applied with some modifications. Renamed the |
| 5037 | RDQL and SPARQL syntax tokens ERROR to ERROR_TOKEN to help.</p> |
| 5038 | |
| 5039 | <p>Added experimental support for querying multiple sources; the same |
| 5040 | query is executed over each source in turn. Also added some support |
| 5041 | for returning the source URI which is not yet enabled as this feature |
| 5042 | is in flux in the DAWG work. This may change or be removed in future |
| 5043 | versions.</p> |
| 5044 | |
| 5045 | <p><code>roqet</code> can specify a data source URI on the command |
| 5046 | line with <code>-s</code> / <code>--source</code>) <em>URI</em> for |
| 5047 | queries executing against an implicit model.</p> |
| 5048 | |
| 5049 | <p>Added the |
| 5050 | <a href="http://www.w3.org/2001/sw/DataAccess/tests/">DAWG SPARQL test cases</a> |
| 5051 | driven from the manifest.n3 format. Created tests from the examples |
| 5052 | in the working draft.</p> |
| 5053 | |
| 5054 | <p>Added an experimental XML result format for bindings, based on |
| 5055 | DAWG work. Enabled in <code>roqet</code> with <code>-o xml</code>. |
| 5056 | This is very likely to change or replaced in future versions.</p> |
| 5057 | |
| 5058 | <p>Added <code>roqet</code> argument <code>-d</code> / |
| 5059 | <code>--dump-query</code> to dump the processed query, rather than |
| 5060 | do it by default (0.9.2 and earlier).</p> |
| 5061 | |
| 5062 | <p><code>roqet</code> can now read queries from URIs, using |
| 5063 | the <code>raptor_www</code> class to do the retrieval.</p> |
| 5064 | |
| 5065 | <p>Fixed the <code>configure</code> checks for a posix regex |
| 5066 | function regcomp to correctly discover it is present.</p> |
| 5067 | |
| 5068 | |
| 5069 | <h3>Internal changes</h3> |
| 5070 | |
| 5071 | <p>Added support for declaring prefixes for XML-style QNames both |
| 5072 | before and after their use.</p> |
| 5073 | |
| 5074 | <p>The struct <code>rasqal_prefix</code> gained a |
| 5075 | <code>declared</code> field.</p> |
| 5076 | |
| 5077 | <p>The struct <code>rasqal_triple</code> gained an origin field; not |
| 5078 | used at present but intended to support work on tracking triple |
| 5079 | provenance such as provided by Redland Contexts.</p> |
| 5080 | |
| 5081 | <p>Added methods <code>rasqal_triple_set_origin</code> and |
| 5082 | <code>rasqal_triple_get_origin</code> to support the above.</p> |
| 5083 | |
| 5084 | <p>struct <code>rasqal_triple_meta</code> now takes a 4-array of |
| 5085 | bindings, the fourth being the origin.</p> |
| 5086 | |
| 5087 | <p>Exported function <code>rasqal_set_triples_source_factory</code> |
| 5088 | publically as originally intended. |
| 5089 | </p> |
| 5090 | |
| 5091 | |
| 5092 | <h2 id="rel0_9_2"><a name="rel0_9_2">Rasqal 0.9.2 Changes</a></h2> |
| 5093 | |
| 5094 | <p>This release made minor portability fixes for building with |
| 5095 | C++ and Win32 (untested).</p> |
| 5096 | |
| 5097 | <p>Several functions changed their parameters or return values from |
| 5098 | char* to unsigned char* or const unsigned char* to reflect the |
| 5099 | actual use.</p> |
| 5100 | |
| 5101 | <p>Changed to return a <code>const unsigned char*</code>:<br /> |
| 5102 | <code>rasqal_literal_as_string</code> |
| 5103 | </p> |
| 5104 | |
| 5105 | <p>Changed to take <code>const unsigned char*</code> (or add |
| 5106 | <code>const</code>):<br /> |
| 5107 | <code>rasqal_new_floating_literal</code><br /> |
| 5108 | <code>rasqal_new_pattern_literal</code><br /> |
| 5109 | <code>rasqal_new_prefix</code><br /> |
| 5110 | <code>rasqal_new_simple_literal</code><br /> |
| 5111 | <code>rasqal_new_string_literal</code><br /> |
| 5112 | <code>rasqal_new_variable</code><br /> |
| 5113 | <code>rasqal_query_has_variable</code><br /> |
| 5114 | <code>rasqal_query_results_get_binding_name</code><br /> |
| 5115 | <code>rasqal_query_results_get_binding_value_by_name</code><br /> |
| 5116 | <code>rasqal_query_results_get_bindings</code><br /> |
| 5117 | <code>rasqal_query_set_variable</code><br /> |
| 5118 | </p> |
| 5119 | |
| 5120 | |
| 5121 | <h2 id="rel0_9_1"><a name="rel0_9_1">Rasqal 0.9.1 Changes</a></h2> |
| 5122 | |
| 5123 | <p>This release changed the way that results were returned. A new |
| 5124 | <code>rasqal_query_results</code> class was created. This allows for |
| 5125 | a clean separation of the two concepts allowing multiple form of the |
| 5126 | results to be retrieved as methods of the query_results class, rather |
| 5127 | than the query class. The only form of results currently available |
| 5128 | is variable bindings, but RDF graphs will be returned in future, |
| 5129 | as a set of triples in a serialised form.</p> |
| 5130 | |
| 5131 | <p>The execution method <code>rasqal_query_execute</code> was changed |
| 5132 | to return a new object of that class rather than an <code>int</code> |
| 5133 | success or failure.</p> |
| 5134 | |
| 5135 | <p>The following methods of the <code>rasqal_query</code> class |
| 5136 | were renamed and moved to the new <code>rasqal_query_results</code> |
| 5137 | class:</p> |
| 5138 | |
| 5139 | <table> |
| 5140 | <tr> |
| 5141 | <th>0.9.0 name</th> <th>0.9.1+ name</th> |
| 5142 | </tr> |
| 5143 | <tr> |
| 5144 | <td><code>rasqal_query_get_result_count</code></td> <td><code>rasqal_query_results_get_count</code></td> |
| 5145 | </tr> |
| 5146 | <tr> |
| 5147 | <td><code>rasqal_query_next_result</code></td> <td><code>rasqal_query_results_next</code></td> |
| 5148 | </tr> |
| 5149 | <tr> |
| 5150 | <td><code>rasqal_query_results_finished</code></td> <td><code>rasqal_query_results_finished</code></td> |
| 5151 | </tr> |
| 5152 | <tr> |
| 5153 | <td><code>rasqal_query_get_result_bindings</code></td> <td><code>rasqal_query_results_get_bindings</code></td> |
| 5154 | </tr> |
| 5155 | <tr> |
| 5156 | <td><code>rasqal_query_get_result_binding_value</code></td> <td><code>rasqal_query_results_get_binding_value</code></td> |
| 5157 | </tr> |
| 5158 | <tr> |
| 5159 | <td><code>rasqal_query_get_result_binding_name</code></td> <td><code>rasqal_query_results_get_binding_name</code></td> |
| 5160 | </tr> |
| 5161 | <tr> |
| 5162 | <td><code>rasqal_query_get_result_binding_by_name</code></td> <td><code>rasqal_query_results_get_binding_value_by_name</code></td> |
| 5163 | </tr> |
| 5164 | <tr> |
| 5165 | <td><code>rasqal_query_get_bindings_count</code></td> <td><code>rasqal_query_results_get_bindings_count</code></td> |
| 5166 | </tr> |
| 5167 | </table> |
| 5168 | |
| 5169 | <p>A new <code>rasqal_free_query_results</code> destructor was created |
| 5170 | to delete the query results. (There is no public constructor).</p> |
| 5171 | |
| 5172 | <p>Other minor bugs were fixed such as multiple constraints now being |
| 5173 | ANDed and not ORed, and adding defensive code for when queries fail |
| 5174 | and results methods are invoked.</p> |
| 5175 | |
| 5176 | |
| 5177 | <h2 id="rel0_9_0"><a name="rel0_9_0">Rasqal 0.9.0 Changes</a></h2> |
| 5178 | |
| 5179 | <p> |
| 5180 | It is all new. |
| 5181 | </p> |
| 5182 | |
| 5183 | |
| 5184 | |
| 5185 | <hr /> |
| 5186 | |
| 5187 | <p>Copyright (C) 2004-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> |
| 5188 | |
| 5189 | </body> |
| 5190 | </html> |