Debian Codegraph @

RELEASE.html

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4 <head>
5 <title>Redland librdf RDF API Library - Release Notes</title>
6 <style type="text/css">
7 <!--
8 pre
9 {
10 margin: 1em 4em 1em 4em;
11 background-color: #eee;
12 padding: 0.5em;
13 border-color: #006;
14 border-width: 1px;
15 border-style: dotted;
16 }
17 -->
18 </style>
19 </head>
20 <body>
21
22 <h1>Redland librdf RDF API Library - Release Notes</h1>
23
24
25 <h2 id="rel1_0_17"><a name="rel1_0_17">Redland 1.0.17 changes</a></h2>
26
27 <p>Issues Fixed:</p>
28 <ul>
29 <li><a href="http://bugs.librdf.org/mantis/view.php?id=529">0000529</a>: MySql storage error on initial creation</li>
30 <li><a href="http://bugs.librdf.org/mantis/view.php?id=540">0000540</a>: configure: remove obsolete --with-xml-parser/--with-openssl-digests</li>
31 <li><a href="http://bugs.librdf.org/mantis/view.php?id=541">0000541</a>: configure pkg-config checks not overridable</li>
32 <li><a href="http://bugs.librdf.org/mantis/view.php?id=542">0000542</a>: win32_rdf_config.h doesn't work on MSVC2008</li>
33 <li><a href="http://bugs.librdf.org/mantis/view.php?id=543">0000543</a>: assertion in rasqal_query_results_next_triple called from librdf_query_rasqal_query_results_next_statement</li>
34 </ul>
35
36 <h2>Concept class changes</h2>
37
38 <p>Added <code>rdf:HTML</code> and <code>rdf:langString</code> from
39 RDF 1.1.</p>
40
41 <h2>Storage class changes</h2>
42
43 <p>Update deprecated MySQL engine type syntax. Patch from olberger on github.
44 </p>
45
46 <h2>Configuration and build fixes</h2>
47
48 <p>Make configure restore CPPFLAGS after virtuoso test. Helps
49 portabilty and Debian hardening.
50 </p>
51
52 <p>Fixes to Win32 builds with MSVC2008 from Michael Stahl.</p>
53
54 <h2>Internal fixes</h2>
55
56 <p>Several alignment and error path fixes from clang and llvm.</p>
57
58 <p>Fix <code>rasqal_query_results_next_triple()</code> call with NULL.
59 Patch from Michael Stahl.</p>
60
61
62
63 <h2 id="rel1_0_16"><a name="rel1_0_16">Redland 1.0.16 changes</a></h2>
64
65 <p>Issues Fixed:</p>
66 <ul>
67 <li><a href="http://bugs.librdf.org/mantis/view.php?id=443">0000443</a>: &quot;1&quot;^^xsd:boolean does not evaluate as true</li>
68 <li><a href="http://bugs.librdf.org/mantis/view.php?id=460">0000460</a>: librdf error - storages already registered</li>
69 <li><a href="http://bugs.librdf.org/mantis/view.php?id=497">0000497</a>: &quot;1&quot;^^xsd:boolean and &quot;true&quot;^^xsd:boolean are not true</li>
70 <li><a href="http://bugs.librdf.org/mantis/view.php?id=518">0000518</a>: Blank node parsing error</li>
71 <li><a href="http://bugs.librdf.org/mantis/view.php?id=519">0000519</a>: SPARQL query-related methods crash on certain literals</li>
72 </ul>
73
74 <h3>General changes</h3>
75
76 <p>
77 Requires <a href="http://librdf.org/raptor/">Raptor</a> 2.0.7 or newer<br />
78 </p>
79
80
81 <h3>Model class changes</h3>
82
83 <p><code>librdf_model_contains_statement()</code> now returns &gt; 0
84 only for invalid statements according to the API contract.
85 NULL statements are considered invalid.
86 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=489">Issue #0000489</a>
87 </p>
88
89
90 <h3>Node class changes</h3>
91
92 <p>All the constructors now normalize the nodes (Raptor terms) so
93 that equality is a cheap pointer comparison.
94 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=443">Issue #0000443</a>.
95 </p>
96
97
98 <h3>Query class changes</h3>
99
100 <p><code>librdf_query_results_get_binding_value()</code> and
101 <code>librdf_query_results_get_binding_name()</code> now fail when
102 called with negative offsets.
103 </p>
104
105
106 <h3>Serializer class changes</h3>
107
108 <p>Serializing (using Raptor) now sets the statement graph field to
109 make serializing to N-Quads work.
110 </p>
111
112
113 <h3>Storage class changes</h3>
114
115 <p>Loading the same storage multiple times no longer gives a runtime
116 error.</p>
117
118 <p><code>librdf_storage_contains_statement()</code> now returns &gt;
119 0 only for invalid statements according to the API contract. Uses
120 <code>librdf_statement_is_complete()</code> for testing statement
121 validity.
122 </p>
123
124 <p>hashes storage: Make matching a statement work when using graph
125 names (redland contexts).
126 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=515">Issue
127 #0000515</a>
128 </p>
129
130 <p>mysql storage: Defaulted storage configuration host to 'localhost'
131 if it is not given. Opening a store with missing configuration now
132 reports the required keys.
133 </p>
134
135 <p>postgres storage: Fixed a bad malloc result test during query
136 allocation that probably caused
137 <code>librdf_model_find_statements()</code> to fail. Fix from
138 'zoggy' on github - thanks. Made loading triples from a stream to
139 postgresql actually work via
140 <code>librdf_model_add_statements()</code>. Defaulted storage
141 configuration host to 'localhost' if it is not given. Opening a
142 store with missing configuration now reports the required keys.
143 </p>
144
145
146 <h3>Unicode module changes</h3>
147
148 <p>Added <code>librdf_latin1_to_utf8_2()</code> with size_t args.
149 Deprecates librdf_latin1_to_utf8().</p>
150
151 <p>Added <code>librdf_utf8_to_latin1_2()</code> with size_t args and
152 new default arg for replacing out of range characters. Deprecates
153 librdf_utf8_to_latin1().</p>
154
155
156 <h3>World class changes</h3>
157
158 <p>Added <code>librdf_world_set_raptor_init_handler()</code> and
159 <code>librdf_world_set_rasqal_init_handler()</code> methods to set
160 handlers for configuring internal raptor and rasqal after they have
161 been constructed but before they are initialized; before
162 <code>raptor_world_open()</code> or <code>rasqal_world_open()</code>
163 are run, respectively. Added new typedefs
164 <code>librdf_raptor_init_handler</code> and
165 <code>librdf_rasqal_init_handler</code> for the handlers.
166 </p>
167
168
169 <h3>Other API changes</h3>
170
171 <p>Added <code>librdf_license_string</code> and
172 <code>librdf_home_url_string</code> static strings to public API
173 following Raptor and Rasqal naming convention.
174 </p>
175
176
177 <h3>Other changes</h3>
178
179 <p>No longer gives an error when the same storage module is attempted
180 to be loaded more than once. This is a harmless error and can be
181 generated by installations that include the shared library storage
182 module in a '.so' file and the '.la' file associated with it.
183 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=460">Issue #0000460</a>
184 </p>
185
186 <p>Multiple fixes for newer GCC warnings.</p>
187
188 <p>Multiple internal fixes for signed int conversions especially
189 around size_t and allocation.</p>
190
191 <p>Removed old debugging memory allocation options
192 <code>--with-dmalloc</code> for dmalloc and
193 <code>--with-memory-signing</code> for internal signing of memory
194 blocks. Valgrind and static analyzers replace this.
195 </p>
196
197 <p>Multiple portability fixes for building out of the source tree.
198 Out of source tree 'make check' and 'make dist' should both work.
199 Thanks to Daniel Richard G. for the patches.
200 </p>
201
202 <p>Multiple internal error path cleanup issues and int/size_t issues
203 found via clang static analyzer.</p>
204
205 <p>configure now looks for Oracle DB (aka Sleepycat DB aka Berkeley
206 DB) 5.3</p>
207
208 <p>autogen.sh now supports the NOCONFIGURE variable like
209 Lib{XML2,XSLT}, aborts the run if an progrma fails and creates the
210 NEWS if it does not exist to aid building from GIT and 'make dist'.</p>
211
212
213 <h2 id="rel1_0_15"><a name="rel1_0_15">Redland 1.0.15 changes</a></h2>
214
215 <p>Issues Fixed:</p>
216 <ul>
217 <li><a href="http://bugs.librdf.org/mantis/view.php?id=461">0000461</a>: librdf error - query language vsparql already registered</li>
218 <li><a href="http://bugs.librdf.org/mantis/view.php?id=468">0000468</a>: xlc on AIX configure tests for both HAVE_BDB_OPEN_7_ARGS and HAVE_BDB_OPEN_6_ARGS pass</li>
219 <li><a href="http://bugs.librdf.org/mantis/view.php?id=475">0000475</a>: Freeing a counted_string returned by redland on a modern Windows system crashes</li>
220 <li><a href="http://bugs.librdf.org/mantis/view.php?id=478">0000478</a>: Object returned from librdf_stream_get_object must be copied, but may not copiable</li>
221 <li><a href="http://bugs.librdf.org/mantis/view.php?id=483">0000483</a>: Documentation of librdf_parser_get_namespaces_seen_count return is incorrect</li>
222 <li><a href="http://bugs.librdf.org/mantis/view.php?id=485">0000485</a>: No rule to make target `-lltdl', needed by `librdf.la'. Stop.</li>
223 </ul>
224
225
226 <h3>General changes</h3>
227
228 <p>Added new API functions <code>librdf_alloc_memory()</code>,
229 <code>librdf_calloc_memory()</code> and <code>librdf_free_memory()</code>
230 to allow freeing memory allocated inside librdf shared library, such
231 as on windows with DLLs. (Lauri Aalto)
232 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=475">Issue #0000475</a>
233 </p>
234
235
236 <h3>Hash class changes</h3>
237
238 <p>Export <code>librdf_new_hash()</code> to the public API.
239 </p>
240
241 <p>BDB Hash now uses the newer 7 args open form in preference to the 6 args
242 form. (Peter O'Gorman / pogma).
243 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=468">Issue #0000468</a>
244 </p>
245
246
247 <h3>Statement class changes</h3>
248
249 <p>Reverted <code>librdf_new_statement_from_statement()</code> to the
250 pre-<code>raptor_term</code> deep copy contract for the function.
251 (Lauri Aalto)
252 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=478">Issue #0000478</a>
253 </p>
254
255 <p>Added <code>librdf_new_statement_from_statement2()</code>
256 providing a shallow copy of statement which was the
257 post-<code>raptor_term</code> semantics of
258 <code>librdf_new_statement_from_statement()</code>.
259 (Lauri Aalto)
260 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=478">Issue #0000478</a>
261 </p>
262
263
264 <h3>Storage class changes</h3>
265
266 <p>Virtuoso storage:</p>
267 <ul>
268 <li>Added switch for VIRTUOSO_DV_TIMESTAMP_OBJ.</li>
269 <li>Prevent virtuoso query being registered twice in non-modular build
270 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=461">Issue #0000461</a>.
271 </li>
272 </ul>
273
274
275 <h3>Other changes</h3>
276
277 <p>Fixed the parser test to actually test 3 parsers rather than a
278 non-deterministic number. Emits warnings when parser constructor
279 fails since a syntax may not be supported.</p>
280
281 <p>Set up the libltdl build dependencies and linking flags properly.
282 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=485">Issue #0000485</a>
283 </p>
284
285 <p>Portability changes were made to rdfproc for windows.</p>
286
287 <p>Add the <code>REDLAND_CALLBACK_STDCALL</code> attribute macro in
288 the serializer log handler for windows.</p>
289
290 <p>Multiple librdf and <code>rdfproc(1)</code> changes to allocate
291 and free memory using librdf_alloc_memory, librdf_calloc_memory and
292 librdf_free_memory to ensure memory is allocated correctly across
293 libraries (DLLs). (Lauri Aalto).
294 </p>
295
296 <p>Several code style changes were made.
297 </p>
298
299
300 <h2 id="rel1_0_14"><a name="rel1_0_14">Redland 1.0.14 Changes</a></h2>
301
302 <p>Rasqal minimum version is now 0.9.25 for the new
303 <code>rasqal_world_get_query_language_description()</code> function.
304 </p>
305
306 <p>Issues Fixed:</p>
307 <ul>
308 <li><a href="http://bugs.librdf.org/mantis/view.php?id=">Issue #0000375</a>: Add functionality to parse from iostream (or similar)</li>
309 <li><a href="http://bugs.librdf.org/mantis/view.php?id=">Issue #0000418</a>: SQLite driver adds duplicate statements if a conext is given.</li>
310 <li><a href="http://bugs.librdf.org/mantis/view.php?id=">Issue #0000432</a>: Seg fault when getting a blank node after parsing RDF</li>
311 <li><a href="http://bugs.librdf.org/mantis/view.php?id=">Issue #0000447</a>: fatal error: rdf_types.h: No such file or directory</li>
312 </ul>
313
314 <h3>Hash Class Changes</h3>
315
316 <p>BDB Hash (name 'bdb'): Add checks for Oracle Berkeley DB 5.1, 5.0
317 and 4.9 and updated <code>configure</code> messages with the new
318 name. The 5.x storage has the same API but has a new on-disk format
319 that will require a use of the <code>db-upgrade(1)</code> utility in
320 the utils directory.
321 </p>
322
323 <p>Fixed <code>librdf_hash_get_as_boolean()</code> 'false' string
324 fixed to actually be a False value.
325 </p>
326
327 <h3>Node Class Changes</h3>
328
329 <p><code>librdf_node_write()</code> is defined to now always write
330 N-Triples format.</p>
331
332 <p>Blank node ID generation and mapping from parsing is now
333 consistently made across Redland librdf rather than relying on some
334 Raptor defaults.
335 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=432">Issue #0000432</a>
336 </p>
337
338 <p>Fixed URI reference leak in
339 <code>librdf_new_node_from_uri_local_name()</code>
340 and
341 <code>librdf_new_node_from_normalised_uri_string()</code>
342 constructors.
343 </p>
344
345
346 <h3>Parser Class Changes</h3>
347
348 <p>Do not report programmer errors via logging, just runtime
349 errors.</p>
350
351 <p>Added
352 <code>librdf_parser_parse_iostream_as_stream()</code> and
353 <code>librdf_parser_parse_iostream_into_model()</code>
354 from patch by Norman Gray with style fixes by Lauri Aalto. Thanks.
355 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=375">Issue #0000375</a>
356 </p>
357
358
359 <h3>Query Class Changes</h3>
360
361 <p>Added <code>librdf_query_language_get_description()</code> to
362 return the full description of of the query language. Deprecates
363 <code>librdf_query_languages_enumerate()</code>
364 </p>
365
366
367 <h3>Statement Class Changes</h3>
368
369 <p>Restored <code>librdf_statement_decode_parts()</code> to the
370 public ABI/API which was accidently removed. It has been deprecated
371 for <code>librdf_statement_decode2()</code> for some time and now
372 always fails.
373 </p>
374
375
376 <h3>Storage Class Changes</h3>
377
378 <p>Storage Hashes (name 'hashes'): Fixed a reference leak and shared
379 values issue when cloning a storage. The BDB hash type (current
380 default) was updated for Oracle DB 5.1; see above.
381 </p>
382
383 <p>Storage SQLite (name 'sqlite'):
384 Do not add duplicate statements if a context is given.
385 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=418">Issue #0000418</a>.
386 Fixed a librdf_node reference leak when serializing model with context nodes.
387 </p>
388
389
390 <h3>UTF8 Module</h3>
391
392 <p>Made functions that were already declared in a public header file
393 and documentation into part of the API.
394 </p>
395
396 <p>Added but deprecated for Raptor equivalents (they are wrappers for them):</p>
397 <pre>
398 int librdf_unicode_char_to_utf8(librdf_unichar c,
399 unsigned char *output, int length);
400
401 int librdf_utf8_to_unicode_char(librdf_unichar *output,
402 const unsigned char *input, int length);
403 </pre>
404
405 <p>Added:</p>
406 <pre>
407 unsigned char* librdf_utf8_to_latin1(const unsigned char *input,
408 int length, int *output_length);
409
410 unsigned char* librdf_latin1_to_utf8(const unsigned char *input,
411 int length, int *output_length);
412
413 void librdf_utf8_print(const unsigned char *input, int length,
414 FILE *stream);
415 </pre>
416
417 <h3>Other Changes</h3>
418
419 <p>The internal Redland librdf AVL Tree implementation was removed
420 and the 'trees' storage changed to use the AVL Tree implementation in
421 Raptor (<code>raptor_avltree</code>) which is newer and has bug fixes
422 beyond the Redland librdf version.
423 </p>
424
425 <p>Redland librdf was ran through the
426 LLVM <a href="http://clang-analyzer.llvm.org/">clang</a> static code
427 analyzer and several issues fixed, mostly in unused variables and
428 values computed that were needed but also included a few use of
429 uninitialized variables especially in error cases. one problem
430 fixed was in <code>librdf_world_set_feature()</code> to actually set
431 the value for the genid base and genid counter features
432 (<code>LIBRDF_WORLD_FEATURE_GENID_BASE</code> and
433 <code>LIBRDF_WORLD_FEATURE_GENID_COUNTER</code> respectively)
434 </p>
435
436 <p><code>configure</code> now tries harder to find the Oracle
437 Berkeley DB library using Debian multiarch directories if present.
438 This is yet another heuristic and rather a hack. For a consistent
439 approach the <code>--with-bdb</code>, <code>--with-bdb-lib</code>,
440 <code>--with-bdb-include</code> and <code>--with-bdb-dbname</code>
441 options to <code>configure</code> should be used.
442 </p>
443
444 <p>Use <code>raptor.h</code> header from Raptor V2.
445 </p>
446
447 <p>Removed Raptor V1 support code as librdf no longer supports Raptor
448 V1.</p>
449
450 <p>Updated RPM spec file to make Redland librdf package require
451 Raptor V2 (raptor2 package) and Rasqal (rasqal package).
452 </p>
453
454 <p>Add sanity checking when initialising Raptor so that there are
455 always parsers and serializers, or something went very wrong and
456 librdf will not work, so return an error.
457 </p>
458
459 <p>Removed internal cache module that no code used, didn't seem to
460 entirely work and was never in the public API.
461 </p>
462
463 <p>Now configure generates the (untested) win32_rdf_config.h for
464 (untested) WIN32 builds.
465 </p>
466
467
468 <h2 id="rel1_0_13"><a name="rel1_0_13">Redland 1.0.13 Changes</a></h2>
469
470 <p>Raptor minimum version is now 2.0.0. Raptor V1 support was removed.</p>
471
472 <p>Rasqal minimum version is now 0.9.22. Removed use of deprecated
473 Rasqal functions that were conditioned on older rasqal versions.
474 </p>
475
476
477 <p>Issues Fixed:</p>
478 <ul>
479 <li><a href="http://bugs.librdf.org/mantis/view.php?id=325">Issue #0000325</a>: Make mime_types and syntax URIs available in parser and serialiser enumerations</li>
480 <li><a href="http://bugs.librdf.org/mantis/view.php?id=404">Issue #0000404</a>: Parsing errors when parsing RDFa</li>
481 <li><a href="http://bugs.librdf.org/mantis/view.php?id=419">Issue #0000419</a>: Syntax error when debugging enabled</li>
482 </ul>
483
484
485 <h3>Node class changes</h3>
486
487 <p>Mark <code>librdf_node_to_string()</code> and
488 <code>librdf_node_to_counted_string()</code> as deprecated.
489 </p>
490
491
492 <h3>Parser class changes</h3>
493
494 <p><code>librdf_new_parser()</code> now logs failure to find a parser
495 for the given name, type and/or uri rather than just returning NULL.
496 </p>
497
498 <p>Added <code>librdf_parser_get_description()</code> deprecating
499 <code>librdf_parser_enumerate()</code>.
500 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=325">Issue #0000325</a>
501 </p>
502
503
504 <h3>Query results class changes</h3>
505
506 <p>Added <code>(librdf_query_results_formats_get_description()</code>
507 deprecating
508 <code>librdf_query_results_formats_enumerate()</code>.</p>
509
510 <p>Removed toy 'triples' query language. Use 'sparql' instead.
511 </p>
512
513
514 <h3>Serializer class changes</h3>
515
516 <p><code>librdf_new_serializer()</code> now log failure to find a
517 serializer by the given name, type and/or uri rather than just
518 returning NULL.
519 </p>
520
521 <p>Added <code>librdf_serializer_get_description()</code> deprecating
522 <code>librdf_serializer_enumerate()</code>.
523 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=325">Issue #0000325</a>
524 </p>
525
526 <p>The graph name is now provided to Raptor serializers so that they
527 can write out quads, if supported. At present this works with the
528 'nquads' serializer.
529 </p>
530
531
532 <h3>Storage class changes</h3>
533
534 <p><code>librdf_new_storage()</code>,
535 <code>librdf_new_storage_with_options()</code> now log failure to
536 find storage by the given name rather than just returning NULL.
537 </p>
538
539
540 <h3>Other changes</h3>
541
542 <p>Add new generated version defines to librdf.h:
543 <code>LIBRDF_VERSION</code>, <code>LIBRDF_VERSION_STRING</code>,
544 <code>LIBRDF_VERSION_MAJOR</code>, <code>LIBRDF_VERSION_MAJOR</code>
545 <code>LIBRDF_VERSION_MINOR</code> and
546 <code>LIBRDF_VERSION_DECIMAL</code> (already in earlier versions).
547 </p>
548
549 <p>Removed all code in user build of library that calls abort() and
550 replaced with an error log, then failure.
551 </p>
552
553
554 <h2 id="rel1_0_12"><a name="rel1_0_12">Redland 1.0.12 Changes</a></h2>
555
556 <p>The main changes in this release are:</p>
557 <ul>
558 <li>Enable <code>librdf.h</code> to be used as the top-level header in addition to <code>redland.h</code></li>
559 <li>Fix linking issues when building with GNU ld with DT_NEEDED disabled</li>
560 </ul>
561
562 <p>Issues Fixed:</p>
563 <ul>
564 <li><a href="http://bugs.librdf.org/mantis/view.php?id=329">Issue #0000329</a>: librdf_statement_is_complete is missing from the bindings (Redland.i)</li>
565 <li><a href="http://bugs.librdf.org/mantis/view.php?id=348">Issue #0000348</a>: linking failure fix</li>
566 <li><a href="http://bugs.librdf.org/mantis/view.php?id=391">Issue #0000391</a>: librdf_free_foo(0)</li>
567 <li><a href="http://bugs.librdf.org/mantis/view.php?id=392">Issue #0000392</a>: librdf_stream_get_context returns void*</li>
568 <li><a href="http://bugs.librdf.org/mantis/view.php?id=393">Issue #0000393</a>: librdf_storage_hashes_context_serialise_get_statement</li>
569 </ul>
570
571
572 <h3>General changes</h3>
573
574 <p>The main header file for Redland librdf is <code>redland.h</code>
575 but some applications used <code>librdf.h</code> direct, which no
576 longer works in 1.0.11 since some Rasqal symbols were needed.
577 <code>librdf.h</code> now includes the raptor and rasqal headers and
578 <code>redland.h</code> is a simple wrapper around librdf.h
579 </p>
580
581 <p>Redland librdf now links with symbols in libraries used indirectly (only
582 Raptor) to help systems that use GNU ld with a different linking
583 model to previous versions. This is quite technical and hard to
584 understand but see Fedora's
585 <a href="http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking">change in implicit DSO linking</a> and
586 <a href="http://fedoraproject.org/wiki/UnderstandingDSOLinkChange">Understanding the (Proposed) Change to DSO Linking</a>
587 that were introduced in Fedora Core 13 released in February 2010.
588 Redland librdf was packed with patches to fix this, which are now merged
589 into the sources.
590 </p>
591
592
593 <h3>Stream Class changes</h3>
594
595 <p>Added <code>librdf_stream_get_context2()</code> returning a
596 <code>librdf_node*</code> deprecating
597 <code>librdf_stream_get_context()</code> that returns a void pointer.
598 Fixes
599 <a href="http://bugs.librdf.org/mantis/view.php?id=392">Issue #0000392</a>.
600 </p>
601
602
603 <h3>SWIG Bindings Interface</h3>
604
605 <p>Export <code>librdf_statement_is_complete</code> to bindings languages.
606 Fixes
607 <a href="http://bugs.librdf.org/mantis/view.php?id=329">Issue #0000329</a>
608 </p>
609
610 <h3>Configuration changes</h3>
611
612 <p>Rasqal minimum version has been 0.9.19 for some time but is now
613 enforced in <code>configure</code>.</p>
614
615 <p>Updated <code>configure</code> to work with newer autoconf that
616 enforces <code>AC_LANG_SOURCE</code>.
617 </p>
618
619 <h3>Other changes</h3>
620
621 <p>Updated examples to build with Raptor V2 also.
622 </p>
623
624 <p>The node and statement destructors for the Raptor V2 build now
625 allow NULL pointers like the Raptor V1 versions.
626 Related to
627 <a href="http://bugs.librdf.org/mantis/view.php?id=391">Issue #0000391</a>
628 which had already been fixed for other classes.
629 </p>
630
631
632
633 <h2 id="rel1_0_11"><a name="rel1_0_11">Redland 1.0.11 Changes</a></h2>
634
635 <p>The main changes in this release are:</p>
636 <ul>
637 <li>Virtuoso storage backend querying now fully works</li>
638 <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>
639 <li>Several new convenience APIs were added</li>
640 <li>Several APIs were deprecated for better APIs calls</li>
641 </ul>
642
643 <p>Issues Fixed:</p>
644 <ul>
645 <li><a href="http://bugs.librdf.org/mantis/view.php?id=124">Issue #0000124</a>: Node, Statement and Model to_string should use N3 syntax</li>
646 <li><a href="http://bugs.librdf.org/mantis/view.php?id=284">Issue #0000284</a>: Added storage and query interface support for Virtuoso QUAD store</li>
647 <li><a href="http://bugs.librdf.org/mantis/view.php?id=321">Issue #0000321</a>: librdf_free_node after librdf_iterator_get_object in rdfproc</li>
648 <li><a href="http://bugs.librdf.org/mantis/view.php?id=322">Issue #0000322</a>: rdfproc uses rasqal_ functions instead of librdf_ in option parsing</li>
649 <li><a href="http://bugs.librdf.org/mantis/view.php?id=334">Issue #0000334</a>: rdfproc chatters unmercifully; hard to use in scripts</li>
650 <li><a href="http://bugs.librdf.org/mantis/view.php?id=338">Issue #0000338</a>: librdf_query_results_to_counted_string cannot format a query result if the format name has no URI (csv, tsv)</li>
651 <li><a href="http://bugs.librdf.org/mantis/view.php?id=341">Issue #0000341</a>: undefined symbol error from virtuoso storage .so</li>
652 <li><a href="http://bugs.librdf.org/mantis/view.php?id=344">Issue #0000344</a>: It is hard to use table, csv, tsv results formats</li>
653 <li><a href="http://bugs.librdf.org/mantis/view.php?id=350">Issue #0000350</a>: Redland Tree Storage crashes when loading two specific, valid, RDFMXL files</li>
654 <li><a href="http://bugs.librdf.org/mantis/view.php?id=363">Issue #0000363</a>: Add method to the public API to allow enumeration of the query factories</li>
655 <li><a href="http://bugs.librdf.org/mantis/view.php?id=366">Issue #0000366</a>: SELECTing list of named graphs doesn't return any results</li>
656 <li><a href="http://bugs.librdf.org/mantis/view.php?id=371">Issue #0000371</a>: SPARQL queries in rdfproc using Virtuoso don't work</li>
657 <li><a href="http://bugs.librdf.org/mantis/view.php?id=380">Issue #0000380</a>: SPARQL queries using Virtuoso do not work</li>
658 <li><a href="http://bugs.librdf.org/mantis/view.php?id=382">Issue #0000382</a>: simple graph query returns no results</li>
659 <li><a href="http://bugs.librdf.org/mantis/view.php?id=383">Issue #0000383</a>: rdfproc -n does not always make the store empty</li>
660 </ul>
661
662 <h3>Raptor V2 API support</h3>
663
664 <p>This release adds support for building with Raptor V2 API as an
665 alternate to the Raptor V1 API. When built with Raptor V2 , librdf
666 uses the Raptor V2 URI, Term and Statement to fully implement the
667 librdf equivalents. Specifically when this is enabled the following
668 are typedefed as equivalent:</p>
669 <ul>
670 <li><code>librdf_uri</code> = <code>raptor_uri</code></li>
671 <li><code>librdf_node</code> = <code>raptor_term</code></li>
672 <li><code>librdf_statement</code> = <code>raptor_statement</code></li>
673 </ul>
674
675 <h3>Configuration and build changes</h3>
676
677 <p>Added <code>--enable-raptor2</code> to enable librdf to build with
678 Raptor V2 API. This requires a rasqal built with Raptor V2 API (with
679 the <code>--enable-raptor2</code> argument to Rasqal's
680 <code>configure</code>). The librdf <code>configure</code> will
681 check that Rasqal was built this way and only enable Raptor V2 API
682 support if it will work.
683 </p>
684
685 <p>The minimum Raptor version is now 1.4.19 (or Raptor V2 beta 1.9.0+)
686 </p>
687
688 <p>Tests now use the in-memory storage if the BDB (Sleepycat DB)
689 storage is not available.
690 </p>
691
692 <p>Updated to prevent an error when used with autoconf 2.68+</p>
693
694
695 <h3>Hash Class Changes</h3>
696
697 <p>Exposed <code>librdf_hash_from_string()</code> function to public
698 API for converting from a string to a <code>librdf_hash</code>
699 object. This is useful for building storage options.
700 </p>
701
702 <p>Added <code>librdf_hash_to_string()</code> function for converting
703 a <code>librdf_hash</code> back ito a string, intended to be the
704 opposite of <code>librdf_string_to_hash()</code> and takes a filter
705 arg to help hide arguments such as 'password'.</p>
706
707 <h3>Log Class Changes</h3>
708
709 <p>Added a <code>LIBRDF_FROM_RAPTOR</code> log facility.
710 </p>
711
712 <h3>Model Class Changes</h3>
713
714 <p>Added <code>librdf_model_write()</code> deprecating
715 <code>librdf_model_print()</code> debug routine.
716 </p>
717
718 <h3>Node Class Changes</h3>
719
720 <p>Added <code>librdf_new_node_from_counted_uri_string()</code>
721 to make an RDF node from a URI string and length avoiding a <code>strlen()</code>.
722 </p>
723
724 <p>Added <code>librdf_node_get_counted_blank_identifier()</code>
725 to return ID with length.
726 </p>
727
728 <p>Added <code>librdf_new_node_from_counted_blank_identifier()</code>
729 with counted ID string.
730 </p>
731
732 <p>Added <code>librdf_node_new_static_node_iterator()</code> with
733 world arg added deprecating
734 <code>librdf_node_static_iterator_create()</code> without it.
735 </p>
736
737 <p><code>librdf_node_write()</code> added to write a redland node to
738 an iostream, formatted as N-Triples.</p>
739
740 <p>Adjusted <code>librdf_node_print()</code> to use
741 <code>librdf_node_write()</code>. If anyone was relying on this
742 unsupported debug format, this changes the result. Fixes
743 <a href="http://bugs.librdf.org/mantis/view.php?id=124">Issue#0000124</a>
744 </p>
745
746 <p>Deprecate <code>librdf_node_to_string()</code>,
747 <code>librdf_node_to_counted_string()</code> for
748 <code>librdf_node_write()</code> since these were really only meant
749 for internal use.</p>
750
751 <p>Adjusted <code>librdf_node_to_string()</code>,
752 <code>librdf_node_to_counted_string()</code> to use construct an
753 iostream to a string and use <code>librdf_node_write()</code> to
754 create the strings. Thus the format is now an N-Triples term rather
755 than the older debug format. These functions are still for debugging
756 and deprecated for <code>librdf_node_write()</code>.
757 </p>
758
759 <h3>Query Class Changes</h3>
760
761 <p>Fix rasqal query engine integration to allow querying over
762 the Redland graph names (context URIs) and binding variables to the names.
763 Fixes
764 <a href="http://bugs.librdf.org/mantis/view.php?id=382">Issue #000382</a>.
765 </p>
766
767 <p>Fix query engine to prevent runtime warning for models with no
768 contexts (graphs) when using GRAPH in a query.
769 </p>
770
771 <p>Added <code>librdf_query_languages_enumerate()</code> function
772 to list supported query languages.
773 </p>
774
775 <p>Made the Virtuoso storage engine (name 'virtuoso') use the internal
776 Rasqal query results formatting API rather than an internal copy of
777 a few query result formatters.
778 </p>
779
780 <h3>Query Results Class Changes</h3>
781
782 <p>Added
783 <code>librdf_new_query_results_formatter2()</code> with
784 name, mime type and fomrat URI args deprecating
785 <code>librdf_new_query_results_formatter()</code> and
786 <code>librdf_new_query_results_formatter_by_mime_type()</code>
787 with a mixture.
788 </p>
789
790 <p>Altered all query result formatters to all take format name,
791 mime_type and uri args. Added
792 <code>librdf_query_results_to_counted_string2()</code>,
793 <code>librdf_query_results_to_string2()</code>,
794 <code>librdf_query_results_to_file_handle2()</code>,
795 <code>librdf_query_results_to_file2()</code> deprecating the
796 functions without the 2 suffix.
797 </p>
798
799 <h3>Serializer Class Changes</h3>
800
801 <p><code>librdf_serializer_serialize_stream_to_iostream()</code> and
802 <code>librdf_serializer_serialize_model_to_iostream()</code> now
803 document their ownership transfer of the <code>raptor_iostream</code>
804 object. Fixes
805 <a href="http://bugs.librdf.org/mantis/view.php?id=372">Issue #0000372</a>
806 </p>
807
808 <h3>Statement Class Changes</h3>
809
810 <p>Added <code>librdf_statement_encode2()</code>,
811 <code>librdf_statement_encode_parts2()</code>,
812 <code>librdf_statement_decode2()</code> taking a world arg,
813 deprecating those without the 2 suffx and no world arg.
814 </p>
815
816 <p>Added <code>librdf_statement_write()</code>
817 using <code>librdf_node_write()</code> to format the statement as
818 N-Triples.
819 </p>
820
821 <p>Adjusted <code>librdf_statement_to_string()</code> to
822 use librdf_statement_write() to write statement in N-Triples format
823 rather than the previous format.
824 </p>
825
826 <h3>Stream Class Changes</h3>
827
828 <p>Added <code>librdf_stream_write()</code> deprecating
829 <code>librdf_stream_print()</code> debug routine.
830 </p>
831
832 <h3>Storage Class Changes</h3>
833
834 <p><code>librdf_storage_context_remove_statement()</code> now checks
835 that statement is non-NULL and allows NULL context. Now matches
836 function spec.
837 </p>
838
839 <p>Storage Postgresql (name 'postgresql'). Fix the
840 contains-statement method as called by
841 <code>librdf_storage_contains_statement()</code> to work using patch
842 from Andrew Malton - thanks.
843 </p>
844
845 <p>Storage Trees (name 'trees'). Fix the crash bug when comparing
846 nodes one of which has a language and the other doesn't.
847
848 <a href="http://bugs.librdf.org/mantis/view.php?id=350">Issue #0000350</a>.
849 </p>
850
851 <p>Storage Virtuoso (name 'virtuoso'). Fix to use the internal Rasqal
852 query formatting API to allow returning any result format. This is
853 not using a very efficient mechanism since it results in about 3
854 copies of the result set: in librasqa;, librdf and virtuoso but it
855 works and does not duplicate code. Update the storage to support
856 newer Virtuoso versions such as recent ODBC extensions. Added support
857 for
858 <code>SQL_DESC_COL_LITERAL_LANG</code>
859 <code>SQL_DESC_COL_LITERAL_TYPE</code> and
860 <code>SQL_DESC_COL_BOX_FLAGS</code> from
861 Virtuoso ODBC Implementation -
862 <a href="http://docs.openlinksw.com/virtuoso/odbcimplementation.html#virtodbcsparql">Virtuoso ODBC RDF Extensions for SPASQL</a>.
863 Tested with Virtuoso 5.0.13 open source edition.
864 </p>
865
866 <h3>URI Class Changes</h3>
867
868 <p>Added <code>librdf_new_uri2()</code> taking a counted URI string
869 argument, avoiding <code>strlen()</code>s.
870 </p>
871
872 <h3>World Class Changes</h3>
873
874 <p>Export <code>librdf_world_set_raptor()</code> and
875 <code>librdf_world_get_raptor()</code> to get/set the raptor world.
876 These are only used when librdf is built with Raptor V2.
877 </p>
878
879
880 <h3>Internal changes</h3>
881
882 <p><code>struct librdf_query_factory_s</code> methods
883 <code>new_results_formatter</code> and
884 <code>new_results_formatter_by_mime_type</code> are replaced by one
885 <code>new_results_formatter</code> method that takes name, mime type
886 and format URI args. It also gains a
887 <code>new_results_formatter2</code> factory method for query results
888 formatting. The only implementor of this factory is the internal
889 Rasqal query results formatter.
890 </p>
891
892 <h3>Language Bindings (SWIG) changes</h3>
893
894 <p>Exposed several functions (some new) that make sense to
895 higher-level libraries bound to librdf via SWIG:</p>
896 <ul>
897 <li><code>librdf_hash_from_string()</code> to build a hash from a string; useful for encoding storage options.</li>
898 <li><code>librdf_hash_to_string()</code> to turn a hash into a string; useful for decoding storage options.</li>
899 <li><code>librdf_model_add_typed_literal_statement()</code> to add a typed literal statement direct to a graph.</li>
900 <li><code>librdf_new_node_from_normalised_uri_string()</code> to create a URI node.</li>
901 <li><code>librdf_new_node_from_uri_local_name()</code> to create a URI node</li>
902 <li><code>librdf_node_get_li_ordinal()</code> to get the 1 from a rdf:_1 predicate node.</li>
903 <li><code>librdf_parser_check_name()</code> for checking parser names.</li>
904 <li><code>librdf_query_results_is_syntax()</code> to check if query result is a syntax.</li>
905 <li><code>librdf_query_results_to_file2()</code> supplementing the deprecated <code>librdf_query_results_to_file()</code></li>
906 <li><code>librdf_query_results_to_string2()</code> supplementing the deprecated <code>librdf_query_results_to_string()</code></li>
907 <li><code>librdf_serializer_check_name()</code> for checking serializer names.</li>
908 <li><code>librdf_serializer_serialize_stream_to_file()</code> to go along with it's pair that serializes a model to a file.</li>
909 <li><code>librdf_serializer_serialize_stream_to_string()</code> to go along with the pair that serializes a model to string.</li>
910 <li><code>librdf_world_set_logger()</code> to set for logging callbacks.</li>
911 </ul>
912
913 <h3>Other changes</h3>
914
915 <p><code>rdfproc(1)</code> utility now send non-result information
916 messages to stderr, indented to make this more useful for scripting.
917 It also gains '-q' (--quiet) and '-V' options (--verbose) to control
918 this output - entirely removing it (quiet) or being more verbose.
919 That is '-q -v' is equivalent to the default verbosity. Change based
920 on patch by Norman Gray in issue - thanks! Fixes
921 <a href="http://bugs.librdf.org/mantis/view.php?id=334">Issue #0000334</a>
922 </p>
923
924 <p><code>rdfproc(1)</code> utility now fails with error when using -n
925 (make a new storage) to a read only operation such as a query. Fixes
926 <a href="http://bugs.librdf.org/mantis/view.php?id=383">Issue #0000383</a>.
927 </p>
928
929 <p>Switched to GIT source control.
930 </p>
931
932 <p>Added HACKING.md documenting code style.
933 </p>
934
935 <p>Added <code>examples/example8.c</code> to show how to serializer
936 query results to strings when queries return either variable bindings
937 or triples forms.
938 </p>
939
940
941 <h2 id="rel1_0_10"><a name="rel1_0_10">Redland 1.0.10 Changes</a></h2>
942
943 <p>The main changes in this release are:</p>
944
945 <p>Added a <a href="http://sourceforge.net/projects/virtuoso/">Virtuoso</a> storage by Patrick van Kleef<br />
946 Support <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.17 API<br />
947 Fix compiling against sqlite 3.6.17 or newer<br />
948 Fix modular storage dynamic loading linking problems.
949 </p>
950
951 <p>Building requires installed Raptor (1.4.17 or newer) and Rasqal
952 (0.9.16 or newer) libraries, preferably with <code>pkg-config</code>
953 to provide the compile/link details.
954 </p>
955
956 <p>Issues Fixed:</p>
957 <ul>
958 <li><a href="http://bugs.librdf.org/mantis/view.php?id=302">Issue #0000302</a>: Modular storages fail to load from any other library or language binding (drobilla)</li>
959 <li><a href="http://bugs.librdf.org/mantis/view.php?id=304">Issue #0000304</a>: librdf_storage_trees_remove_statement returns wrong value (I think)</li>
960 <li><a href="http://bugs.librdf.org/mantis/view.php?id=311">Issue #0000311</a>: Incorrect literal comparison in tree structure</li>
961 <li><a href="http://bugs.librdf.org/mantis/view.php?id=315">Issue #0000315</a>: cannot compile library on linux 2.6.31</li>
962 <li><a href="http://bugs.librdf.org/mantis/view.php?id=317">Issue #0000317</a>: rdf_init_test fails if threads are enables</li>
963 </ul>
964
965
966 <h3>Configuration and build changes</h3>
967
968 <p>Default to environment LIBS, CPPFLAGS, LDFLAGS in
969 <code>configure</code> to address Gentoo issue
970 <a href="http://bugs.gentoo.org/show_bug.cgi?id=267405">267405</a>
971 </p>
972
973 <p>Make redland-src-config work for external raptor and rasqal again.
974 This is for the maintainers only.
975 </p>
976
977 <p>Put modular build libltdl includes and libs into INTERNAL macros
978 </p>
979
980
981 <h3>Parser Class Changes</h3>
982
983 <p><code>librdf_parser_check_name()</code> added to check if a parser name is
984 valid:</p>
985 <pre>
986 int librdf_parser_check_name(librdf_world* world, const char *name);
987 </pre>
988
989 <h3>Query Class Changes</h3>
990
991 <p>Support Rasqal 0.9.17 API changes including versioned triple
992 factory and triple sources, <code>RASQAL_LITERAL_UDT</code>
993 user-defined datatype literals. Use
994 <code>rasqal_literal_get_rdf_term_type</code> when available or
995 fall back to internal version.
996 </p>
997
998 <h3>Serializer Class Changes</h3>
999
1000 <p><code>librdf_serializer_check_name()</code> added to check if a
1001 serializer name is valid:</p>
1002 <pre>
1003 int librdf_serializer_check_name(librdf_world* world, const char *name);
1004 </pre>
1005
1006 <h3>Storage Class Changes</h3>
1007
1008 <p>Update storage module link dependencies so that they depend on
1009 librdf library to prevent unresolved symbol errors.
1010 </p>
1011
1012 <p>More validation of storage module names.</p>
1013
1014 <p>Storages 'file' and 'uri'. These get new storage option
1015 <code>format</code> with a name value to set the on disk / remote
1016 URI) syntax format. For the both storages it has to be a legal
1017 parser name and for the file storage it has to be a legal serializer
1018 name too. This pretty much limits the values to ntriples, rdfxml and
1019 turtle for the file storage (depending on how raptor is built).
1020 </p>
1021
1022 <p>Storage 'postgresql'. Replace deprecated PQescapeString with
1023 PQescapeStringConn that takes a PGconn connection handle and when
1024 encoding takes into consideration any connection properties such as
1025 character encodings in force.</p>
1026
1027 <p>Storage 'sqlite'. Change define SQLITE_API to REDLAND_SQLITE_API
1028 to allow redland to compile with sqlite 3.6.17 or newer where the
1029 SQLITE_API macro is defined. Thanks to Samuli Suominen for the
1030 report and fix.
1031 </p>
1032
1033 <p>Storage 'virtuoso'. Added a <a href="http://sourceforge.net/projects/virtuoso/">Virtuoso</a> storage patch from
1034 <a href="http://bugs.librdf.org/mantis/view.php?id=284">Issue#0000284</a>
1035 by Patrick van Kleef with some parts omitted for passing through
1036 SPARQL queries that used rasqal internals.
1037 </p>
1038
1039
1040 <h3>Other changes</h3>
1041
1042 <p>Export the list helper class to the public API, primarily for use
1043 by external storage modules.
1044 </p>
1045
1046 <p><code>rdfproc</code> utility: for the 'parse' command, get the
1047 warning count from the warning_count_node, not the (just freed)
1048 error_count_node.</p>
1049
1050 <p>Fix totally bogus memset in <code>librdf_cache_set_common()</code>
1051 that zeroed junk on the stack rather than the memory expected.
1052 </p>
1053
1054 <h2 id="rel1_0_9"><a name="rel1_0_9">Redland 1.0.9 Changes</a></h2>
1055
1056 <p>The main changes in this release are:</p>
1057
1058 <p>Made storages modular by default - separate dynamically loaded
1059 modules discovered from presence in the
1060 <em>PREFIX</em><code>/lib/redland</code> directory.
1061 or from the directory defined in the
1062 <code>REDLAND_MODULE_PATH</code> environment variable directory.
1063 </p>
1064
1065 <p>Building requires installed Raptor (1.4.18 or newer) and Rasqal libraries.
1066 </p>
1067
1068 <p>Issues Fixed:</p>
1069 <ul>
1070 <li><a href="http://bugs.librdf.org/mantis/view.php?id=272">Issue #0000272</a>: Casts for g++</li>
1071 <li><a href="http://bugs.librdf.org/mantis/view.php?id=282">Issue #0000282</a>: Documentation fixes</li>
1072 <li><a href="http://bugs.librdf.org/mantis/view.php?id=283">Issue #0000283</a>: <code>librdf_new_node_from_blank_identifier()</code> read memory after free bug.</li>
1073 <li><a href="http://bugs.librdf.org/mantis/view.php?id=285">Issue #0000285</a>: <code>librdf_storage_postgresql_get_contexts()</code> fix</li>
1074 <li><a href="http://bugs.librdf.org/mantis/view.php?id=286">Issue #0000286</a>: multiple postgresql storage fixes.</li>
1075 </ul>
1076
1077
1078 <h3>General Changes</h3>
1079
1080 <p>Developer builds from Subversion now require libtool 2.2.0 or
1081 newer to <code>libtoolize</code> from <code>configure.ac</code>.</p>
1082
1083 <p><code>configure</code> now discovers Berkeley DB 4.7</p>
1084
1085 <p><code>configure</code> options <code>--with-raptor=internal</code>
1086 and <code>--with-rasqal=internal</code> were removed.
1087 </p>
1088
1089 <p>Removed openssl digest support - not used much and an extra large
1090 dependency. MD5 and SHA1 remain builtin.
1091 </p>
1092
1093
1094 <h3>Statement Class Changes</h3>
1095
1096 <p>Fix to <code>librdf_statement_encode_parts()</code> for buffer
1097 overrun error that could occur with certain size buffers. Patch from
1098 Lou Sakey - thanks.
1099 </p>
1100
1101
1102 <h3>Storage Class Changes</h3>
1103
1104 <p>Made the redland storage module API
1105 <code>librdf_storage_factory</code> public. What was called the
1106 storage <em>context</em> is now less confusingly called the storage
1107 <em>instance</em>.
1108 </p>
1109
1110 <p>Moved iterator and stream <code>get_method</code> flags to public
1111 API as new enums since they are used by the storage modules API.
1112 </p>
1113
1114 <p>Moved <code>librdf_log()</code> and <code>librdf_log_simple()</code>
1115 into public API to allow external storage modules to log messages.
1116 </p>
1117
1118 <p>More checks for failure during storage instance allocation.
1119 </p>
1120
1121 <p>postgresql storage: Fixes for "Numerous leaks, potential NULL
1122 pointer use, and dropped postgresql errors and buffer overruns in the
1123 postgresql storage module" based on patches in Issue #0000286.
1124 </p>
1125
1126 <p>sqlite storage: Fixes to prevent deadlocks with <code>BEGIN
1127 IMMEDIATE</code> instead of the default <code>BEGIN DEFERRED</code>.
1128 No longer writes to the sqlite database when just querying. Several
1129 other fixes.
1130 </p>
1131
1132 <p>trees storage: Several fixes.
1133 </p>
1134
1135
1136 <h3>Other Changes</h3>
1137
1138 <p>Multiple Win32 build fixes based on patches from Lou Sakey - thanks.
1139 </p>
1140
1141 <p>Added <code>librdf_parser_guess_name2()</code> to SWIG API.
1142 </p>
1143
1144
1145 <h3>Internal Changes</h3>
1146
1147 <p>Added LRU cache for internal use.</p>
1148
1149 <p>Several autogen.sh updates for libltdl.</p>
1150
1151 <p>Use libtool's <code>libltdl</code> to dynamially load storage
1152 modules. Will link in a copy from sources if not present in the
1153 system from libtool.
1154 </p>
1155
1156 <p>Internal raptor and rasqal sources removed - now use
1157 <code>pkg-config(1)</code> to find external libraries to compile and
1158 link to.
1159 </p>
1160
1161 <p>Fixes for AVL Tree: update parent pointers when deleting - patch
1162 from Aymeric Barthe - thanks.
1163 </p>
1164
1165 <p>Added internal support for upcoming Raptor V2 API. Not yet enabled.
1166 Added <code>librdf_world_get_raptor()</code> and
1167 <code>librdf_world_set_raptor()</code> methods.
1168 Added <code>librdf_parser_guess_name2()</code> with librdf_world parameter
1169 and deprecated <code>librdf_parser_guess_name()</code> without it.
1170 </p>
1171
1172 <p>Wrapped deprecated functions with <code>REDLAND_DISABLE_DEPRECATED</code>
1173 blocks.
1174 </p>
1175
1176
1177
1178
1179 <h2 id="rel1_0_8"><a name="rel1_0_8">Redland 1.0.8 Changes</a></h2>
1180
1181 <p>The main changes in this release are:</p>
1182
1183 <p>Updated to use
1184 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.16
1185 (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_16">Rasqal 0.9.16 release notes</a>)
1186 from 0.9.15. NOTE: Rasqal's ABI and API changed so Redland 1.0.8
1187 requires 0.9.16 or newer.
1188 </p>
1189
1190 <p>Updated to use
1191 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.18
1192 (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_18">Raptor 1.4.18 release notes</a>)
1193 from 1.4.16.
1194 </p>
1195
1196 <p>Added a new in-memory indexed storage 'trees' using AVL Trees</p>
1197
1198 <p>Issues Fixed:</p>
1199 <ul>
1200 <li><a href="http://bugs.librdf.org/mantis/view.php?id=256">0000256</a>: mysql reconnect not working (MySQL v5 only?)</li>
1201 </ul>
1202
1203 <blockquote>
1204 <p><strong>NOTE:</strong> The next release of redland will NOT
1205 include raptor and rasqal in the tarball, they will be separate
1206 download dependencies.</p>
1207
1208 <p><strong>NOTE</strong>: In the next release of redland, the
1209 <code>redland-config</code> utility that provides the compile and
1210 link args will be deprecated, generate a warning when run and will
1211 turn into a wrapper for <code>pkg-config redland ...</code>
1212 It will be removed in a future release.</p>
1213 </blockquote>
1214
1215
1216 <h3>General Changes</h3>
1217
1218 <p><code>configure</code> was updated to ensure that redland 1.0.8+
1219 will work with rasqal 0.9.16 to 0.9.99 only.
1220 </p>
1221
1222 <h3>Parser Class Changes</h3>
1223
1224 <p><code>librdf_parser_set_feature()</code> now handles setting
1225 feature values as strings or integers, depending on the required
1226 type (although Raptor will handle this too).
1227 </p>
1228
1229 <p>Added <code>librdf_parser_parse_file_handle_as_stream()</code> and
1230 <code>librdf_parser_parse_file_handle_into_model()</code> helper
1231 methods.
1232 </p>
1233
1234 <h3>Serializer Class Changes</h3>
1235 <p><code>librdf_serializer_set_feature()</code> now handles setting
1236 feature values as strings or integers, depending on the required
1237 type (although Raptor will handle this too).
1238 </p>
1239
1240 <h3>Storage Class Changes</h3>
1241 <p>Added a new in-memory storage named "trees" by Dave Robillard that
1242 uses AVLTrees internally for faster indexed triple store/querying.
1243 This is an alpha quality storage since it is brand new and it may be
1244 changed in future.
1245 </p>
1246
1247 <h3>Other Changes</h3>
1248
1249 <p><code>LIBRDF_URI_RDF_MS</code>, <code>LIBRDF_URI_RDF_SCHEMA</code>
1250 public API macros changed definition to pass in a world parameter.
1251 </p>
1252
1253 <p>Added <code>librdf_get_concept_ms_namespace()</code> and
1254 <code>librdf_get_concept_schema_namespace()</code> to make the
1255 concept macros above work.
1256 </p>
1257
1258 <p>Added an rss2atom example program.</p>
1259
1260 <p>Update configure to use autoconf 2.5.x <code>AC_CHECK_TYPES</code>
1261 for testing byte, u32 and u64.</p>
1262
1263 <p>Fixes for resilence under low memory and allocation failures.</p>
1264
1265
1266 <h3>Internal Changes</h3>
1267
1268 <p>Applied some updates from running the Linux 'sparse' utility.</p>
1269
1270 <p>Allow get_context method calls in stream/iterator map functions.
1271 Originally
1272 <a href="http://lists.usefulinc.com/pipermail/redland-dev/2008-May/001756.html">reported on redland-dev 6 May 2008</a>
1273 by John Fieber.
1274 </p>
1275
1276 <p>The storage method
1277 <code>librdf_storage_find_statements_in_context()</code> now uses the
1278 storage factory method find_statements_in_context if it exists,
1279 instead of always using the find_statements factory method and
1280 filtering.
1281 </p>
1282
1283
1284 <h2 id="rel1_0_7"><a name="rel1_0_7">Redland 1.0.7 Changes</a></h2>
1285
1286 <p>The main changes in this release are:</p>
1287
1288 <p>Updated to use
1289 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.15
1290 (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_15">Rasqal 0.9.15 release notes</a>)
1291 from 0.9.14. NOTE: Rasqal's API will change in 0.9.16 so Redland 1.0.7
1292 requires 0.9.15 exactly - no newer, no older.
1293 </p>
1294
1295 <p>Updated to use
1296 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.16
1297 (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_16">Raptor 1.4.16 release notes</a>)
1298 from 1.4.15.
1299 </p>
1300
1301
1302 <p>Added modular storage backends. When
1303 <code>--enable-modular</code> is given to configure, all the storage
1304 major backends are compiled as dynamically loadable modules. The
1305 memory, file and uri storages are always available. This is not
1306 enabled by default as it is a new feature.
1307 </p>
1308
1309
1310 <p>Issues Fixed:</p>
1311 <ul>
1312 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000187">0000187</a>: "rdf_query_results.c", line 630: void function cannot return value</li>
1313 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000189">0000189</a>: librdf_uri_is_file_uri: wrong return value</li>
1314 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000203">0000203</a>: API declarations for Symbian portability</li>
1315 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000205">0000205</a>: Memory leak in rdf_query_rasqal.c</li>
1316 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000209">0000209</a>: Null dereference + assertion failures in minimal librdf setup-cleanup</li>
1317 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000213">0000213</a>: Multiple instances of world object make trouble</li>
1318 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000215">0000215</a>: librdf_new_node_from_typed_counted_literal() does not respect parameter lengths</li>
1319 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000218">0000218</a>: librdf_query_execute does not assert model parameter</li>
1320 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000229">0000229</a>: Segmentation fault when invoking librdf_new_model_from_model()</li>
1321 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000230">0000230</a>: on Gentoo/FreeBSD redland fails compilation due to a missing #define pthread.h</li>
1322 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000234">0000234</a>: autogen.sh $dir quoting</li>
1323 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000235">0000235</a>: $(EXEEXT) in tests</li>
1324 <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000236">0000236</a>: EOL issues when building svn version on cygwin</li>
1325 </ul>
1326
1327
1328 <h3>General Changes</h3>
1329
1330 <p><code>configure</code> was updated to ensure that redland 1.0.7
1331 will work with rasqal 0.9.15 only due to the future API change coming
1332 in the next rasqal version.
1333 </p>
1334
1335 <p>Make lots of writable static data truly constant especially from
1336 writable static data from rdf_concepts. This causes a
1337 <strong>SOURCE COMPATIBILITY BREAK</strong>: the
1338 <code>rdf_concepts.h</code> public API node and uri
1339 macros now require a <code>librdf_world*</code> parameter.
1340 </p>
1341
1342
1343 <h3>Parser Class Changes</h3>
1344
1345 <p>Added <code>librdf_parser_set_uri_filter()</code> and
1346 <code>librdf_parser_get_uri_filter()</code> to set and get parser
1347 URI filters, passed on into raptor.
1348 </p>
1349
1350 <h3>Storage Class Changes</h3>
1351
1352 <p>Several SQLite storage improvements and fixes were made:</p>
1353 <ul>
1354 <li>Added transaction support</li>
1355 <li>Handle SQL errors more gracefully</li>
1356 <li>the contains_statement method now works with a blank subject node.</li>
1357 <li>Resource allocation and low mwmory fixes</li>
1358 </ul>
1359
1360 <h3>URI Class Changes</h3>
1361
1362 <p>Added <code>librdf_uri_compare()</code> to compare uri objects
1363 rather than rely on stringifying them and comparing the strings.
1364 </p>
1365
1366
1367 <h3>Internal and Other Changes</h3>
1368
1369 <p>Many low memory and error path, resource leak fixes for parsers,
1370 streams, module factory construction and module initialising.
1371 </p>
1372
1373 <p><code>librdf_serializer_set_namespace()</code> now allows NULL uri
1374 and prefix to be given.
1375 </p>
1376
1377 <p><code>librdf_storage_mysql_transaction_commit()</code> now
1378 terminates if there is no work to commit.
1379 </p>
1380
1381 <p>autogen.sh version comparsion was fixed so that 1.10 is seen as
1382 newer than 1.9.
1383 </p>
1384
1385
1386
1387 <h2 id="rel1_0_6"><a name="rel1_0_6">Redland 1.0.6 Changes</a></h2>
1388
1389 <p>The main changes in this release are:</p>
1390
1391 <p>Updated to use
1392 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.14
1393 (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_14">Rasqal 0.9.14 release notes</a>)
1394 from 0.9.13.
1395 </p>
1396
1397 <p>Updated to use
1398 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.15
1399 (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_15">Raptor 1.4.15 release notes</a>)
1400 from 1.4.13.
1401 </p>
1402
1403 <p>Plus a new transactions API for changes to the graph, implemented
1404 and tested for MySQL.</p>
1405
1406 <p>Added a new query results formatter class to turn a query results
1407 object into a syntax.</p>
1408
1409
1410 <h3>Model Class Changes</h3>
1411
1412 <p>Added a model transaction API:</p>
1413 <ul>
1414 <li><code>librdf_model_transaction_start()</code> to begin the transaction</li>
1415 <li><code>librdf_model_transaction_start_with_handle()</code> to begin it
1416 using an existing connection pointer (such as a MySQL connection)</li>
1417 <li><code>librdf_model_transaction_commit()</code> to commit the changes</li>
1418 <li><code>librdf_model_transaction_rollback()</code> to abort them (automatic
1419 if not commited before a close)</li>
1420 <li><code>librdf_model_transaction_get_handle()</code> to
1421 get a handle associated with a connection.</li>
1422 </ul>
1423 <p>Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=38">Issue #0000038</a>
1424 </p>
1425
1426 <p>Implemented the Transaction API for MySQL (tested) and PostgreSQL
1427 (not tested).
1428 </p>
1429
1430 <p>Invert test in <code>librdf_model_add_submodel()</code>.
1431 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=175">Issue#0000175</a>
1432 </p>
1433
1434
1435 <h3>Parser Class Changes</h3>
1436
1437 <p>Added <code>librdf_parser_guess_name()</code> to guess a parser
1438 name from content, similar to how a parser is constructed from
1439 content.
1440 </p>
1441
1442 <p>Added functions to return the namespaces declared during a parse:
1443 <code>librdf_parser_get_namespaces_seen_count()</code> to return the
1444 number seen, <code>librdf_parser_get_namespaces_seen_prefix()</code> to
1445 get the prefix string and
1446 <code>librdf_parser_get_namespaces_seen_uri()</code> to get the
1447 <code>librdf_uri*</code>.
1448 </p>
1449
1450
1451 <h3>Query and Query Results Class Changes</h3>
1452
1453 <p>Added a new <em>Query Results Formatter</em> class building
1454 <code>librdf_query_results_formatter*</code> objects
1455 to turn a query results into a syntax such as SPARQL query results
1456 formats, JSON. New functions:</p>
1457 <ul>
1458 <li>Constructors: <code>librdf_new_query_results_formatter()</code> and
1459 <code>librdf_new_query_results_formatter_by_mime_type()</code>.
1460 </li>
1461 <li>Destructor: <code>librdf_free_query_results_formatter()</code></li>
1462 <li>Method: <code>librdf_query_results_formatter_write()</code>
1463 to write the query results to an iostream.</li>
1464 <li>Helper functions: <code>librdf_query_results_formats_check()</code>
1465 and <code>librdf_query_results_formats_enumerate()</code></li>
1466 </ul>
1467
1468 <p>Added <code>librdf_query_results_is_syntax()</code> to
1469 check if a query result is a syntax, and not any of the other
1470 possibilities - bindings, boolean or graph.
1471 </p>
1472
1473
1474 <h3>Serializer Class Changes</h3>
1475
1476 <p>Default to serializer named "rdfxml" if no name is given to ensure
1477 another rdfxml serializer such as XMP is not returned.
1478 </p>
1479
1480
1481 <h3>Storage Class Changes</h3>
1482
1483 <p>The MySQL storage implements the transaction API. It batches up
1484 all the pending insertions and aggregates them so that any set of
1485 triple writes during the transaction sequence are all done at one
1486 point, with 4 INSERTs only.
1487 </p>
1488
1489 <p>Added a supporting
1490 functions <code>librdf_hash_interpret_template()</code> to
1491 interpolate variables into strings using a librdf_hash of
1492 key/values.</p>
1493
1494 <p>The MySQL storage now takes an optional storage option 'layout'
1495 that can choose between the v1 and v2 SQL schemas (only the table
1496 type has changed). The SQL fragments are described in Turtle files
1497 that are installed and read on startup.
1498 </p>
1499
1500
1501 <h3>Configuration and Build Changes</h3>
1502
1503 <p><strong>Packagers note</strong>: two new files are installed into
1504 PREFIX/lib/redland for the MySQL schemas. Without them installed,
1505 the MySQL storage will not work.
1506 </p>
1507
1508 <p>Removed the <code>configure</code> script option
1509 <code>--enable-parsers</code> since Raptor is always required and
1510 always used inside Redland whether or not any parsers were configured.
1511 </p>
1512
1513 <p>Use <code>pkg-config</code> Libs.private in
1514 <code>redland.pc</code> for internal dynamically linked libraries.
1515 </p>
1516
1517 <p><code>redland-config</code> gains an --private-libs option to hold
1518 private libraries moved from --libs which now only contains -L and a
1519 -lrdf.
1520 </p>
1521
1522 <p>Added a building utility <code>touch-mtime.pl</code>
1523 to handle <code>touch -r</code> which does not work on SunOS.
1524 Fixes
1525 <a href="http://bugs.librdf.org/mantis/view.php?id=159">Issue #0000159</a>
1526 </p>
1527
1528
1529 <h3>Other Changes</h3>
1530
1531 <p>Added <code>librdf_world_open()</code> for every public API
1532 constructor or function that mentions librdf_world* and could have
1533 failed to run <code>librdf_world_open()</code> after
1534 <code>librdf_new_world()</code>. This makes
1535 <code>librdf_world_open()</code> entirely optional.
1536 Fixes
1537 <a href="http://bugs.librdf.org/mantis/view.php?id=173">Issue #0000173</a>
1538 </p>
1539
1540 <p><code>rdfproc</code> gains an --transactions / -T option for
1541 enabling transactions on the command line and an --results / -r
1542 option to set the query results formatter name.
1543 </p>
1544
1545 <p>Do not throw away the rasqal node type information now, it is needed
1546 later on in <code>FILTER</code> comparisons.
1547 Fixes
1548 <a href="http://bugs.librdf.org/mantis/view.php?id=153">Issue #0000153</a>
1549 </p>
1550
1551 <p>Fix reference count problem in storages that caused connections
1552 to fail to free in MySQL.
1553 Fixes
1554 <a href="http://bugs.librdf.org/mantis/view.php?id=150">#0000150</a>
1555 </p>
1556
1557 <p>Fix reference count / memory leak in file storage.
1558 </p>
1559
1560
1561
1562
1563 <h2 id="rel1_0_5"><a name="rel1_0_5">Redland 1.0.5 Changes</a></h2>
1564
1565 <p>The main changes in this release are:</p>
1566
1567 <p>Updated to use
1568 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.13
1569 (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_13">Rasqal 0.9.13 release notes</a>)
1570 from 0.9.12.
1571 </p>
1572
1573 <p>Updated to use
1574 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.13
1575 (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_13">Raptor 1.4.13 release notes</a>)
1576 from 1.4.9.
1577 </p>
1578
1579 <p>Plus several API additions and many bug fixes.</p>
1580
1581
1582 <h3>Configuration and Build Changes</h3>
1583
1584 <p><code>configure</code> now removes un-necessary tests for C++ or
1585 F77++ compilers that libtool stupidly insists on. Add lots of
1586 gcc <code>-W</code> flags when they are supported and in maintainer
1587 mode.
1588 </p>
1589
1590 <p>Made <code>configure --with-threads</code> work.
1591 Fixes
1592 <a href="http://bugs.librdf.org/mantis/view.php?id=125">Issue #0000125</a>
1593 </p>
1594
1595
1596 <h3>Model Class Changes</h3>
1597
1598 <p>Methods
1599 <code>librdf_model_add</code>,
1600 <code>librdf_model_add_statement</code>,
1601 <code>librdf_model_add_typed_literal_statement</code>,
1602 <code>librdf_model_add_string_literal_statement</code> and
1603 <code>librdf_model_contains_statement</code>
1604 now enforce only allowing legal RDF triples.
1605 </p>
1606
1607 <p>Added <code>librdf_model_enumerate</code> to list all the
1608 model implementations - currently just one, a model over
1609 a storage.
1610 </p>
1611
1612
1613 <h3>Node Class Changes</h3>
1614
1615 <p>The node class can now encode and decode long literals with length
1616 &gt;65535 using new encoding type 'N'.
1617 </p>
1618
1619 <p>Added new constructor
1620 <code>librdf_new_node_from_typed_counted_literal</code>
1621 to build a typed node with a counted literal string.
1622 </p>
1623
1624
1625 <h3>Parser Class Changes</h3>
1626
1627 <p>Changes to allow NULL base uris in parsing methods, but to fail if
1628 it is omitted but required. Applies to
1629 <code>librdf_parser_parse_as_stream</code>,
1630 <code>librdf_parser_parse_into_model</code>,
1631 <code>librdf_parser_parse_string_as_stream</code>,
1632 <code>librdf_parser_parse_string_into_model</code>,
1633 <code>librdf_parser_parse_counted_string_as_stream</code>
1634 and
1635 <code>librdf_parser_parse_counted_string_into_model</code>
1636 </p>
1637
1638 <p>Added <code>librdf_parser_get_accept_header</code> to get
1639 the <code>Accept</code> header that would be sent with a parser
1640 HTTP fetch of content.
1641 </p>
1642
1643
1644 <h3>Query Class Changes</h3>
1645
1646 <p>Graph names in SPARQL now connect up to redland context nodes
1647 to allow SPARQL <code>GRAPH</code> to work.
1648 </p>
1649
1650
1651 <h3>Serializer Class Changes</h3>
1652
1653 <p>Added new methods to serialize <code>librdf_stream</code>s of triples rather
1654 than just <code>librdf_model</code>:
1655 <code>librdf_serializer_serialize_stream_to_file_handle</code>,
1656 <code>librdf_serializer_serialize_stream_to_file</code>,
1657 <code>librdf_serializer_serialize_stream_to_string</code>,
1658 <code>librdf_serializer_serialize_stream_to_counted_string</code> and
1659 <code>librdf_serializer_serialize_stream_to_iostream</code>.
1660 Fixes
1661 <a href="http://bugs.librdf.org/mantis/view.php?id=92">Issue #0000092</a>
1662 </p>
1663
1664
1665 <h3>Storage Class Changes</h3>
1666
1667 <p>Methods <code>librdf_storage_add_statement</code>,
1668 <code>librdf_storage_add_statements</code> and
1669 <code>librdf_storage_contains_statement</code>
1670 now enforce only allowing legal RDF triples.
1671 </p>
1672
1673 <p>The <em>Memory</em> storage now supports deleting while iterating or
1674 streaming the storage.
1675 </p>
1676
1677 <p>The <em>PostgreSQL</em> storage now accepts option 'database' like
1678 MySQL and other Redland relational databases in addition to the
1679 existing option it accepted, 'dbname'.
1680 </p>
1681
1682 <p><em>SQLite</em> storage fixes:<br />
1683 </p>
1684 <p>
1685 Fix crash in <code>librdf_model_context_remove_statements</code>
1686 Fixes
1687 <a href="http://bugs.librdf.org/mantis/view.php?id=103">Issue #0000103</a>
1688 </p>
1689
1690 <p>Wrap all <code>sqlite_FREE</code> calls on error messages so that
1691 they are only called with SQLITE API v2.
1692 Fixes
1693 <a href="http://bugs.librdf.org/mantis/view.php?id=105">Issue #0000105</a>
1694 </p>
1695
1696 <p>Check for no language or no datatype when they are NULL
1697 in <code>librdf_storage_sqlite_literal_helper</code>.
1698 Fixes
1699 <a href="http://bugs.librdf.org/mantis/view.php?id=136">Issue #0000136</a>
1700 </p>
1701
1702 <p>Store pending queries while the database is locked doing
1703 a <code>SELECT</code> and do them once the select is done. Such as
1704 deleting triples during a find or serialise.
1705 Fixes
1706 <a href="http://bugs.librdf.org/mantis/view.php?id=139">Issue #0000139</a>
1707 </p>
1708
1709
1710 <p>SQLite storage now has a 'synchronous' storage option which takes
1711 values 'off', 'normal' or 'full' allowing access to the sqlite pragma
1712 to control when commits are synchronised to file.
1713 </p>
1714
1715
1716 <h3>Other changes</h3>
1717
1718 <p><code>rdfproc</code> now allows the base URI for parsing to be set
1719 to null with <code>-</code> and adjust messages to handle this.
1720 </p>
1721
1722 <p>Added some more const fixes to heuristics.
1723 Fixes
1724 <a href="http://bugs.librdf.org/mantis/view.php?id=107">Issue #0000107</a>
1725 </p>
1726
1727 <p>Autodocs for <code>librdf_new_node_from_blank_identifier</code>.
1728 Fixes
1729 <a href="http://bugs.librdf.org/mantis/view.php?id=114">Issue #0000114</a>
1730 </p>
1731
1732 <p>If <code>librdf_storage_sqlite_statement_operator_helper</code> fails,
1733 free the stringbuffer.
1734 Fixes
1735 <a href="http://bugs.librdf.org/mantis/view.php?id=116">Issue #0000116</a>
1736 </p>
1737
1738 <p>Do not read from stream when parsing returns a NULL pointer.
1739 Fixes
1740 <a href="http://bugs.librdf.org/mantis/view.php?id=130">Issue #0000130</a>
1741 </p>
1742
1743 <p>Fix debug call in <code>librdf_query_register_factory</code>,
1744 <code>librdf_storage_hashes_add_remove_statement</code> and
1745 <code>librdf_storage_hashes_contains_statement</code>
1746 Fixes
1747 <a href="http://bugs.librdf.org/mantis/view.php?id=132">Issue #0000132</a>
1748 </p>
1749
1750 <p>Added rss2ical.c example to turn RSS/Atom 1.0 feeds into
1751 iCalendar using raptor, redland and SPARQL.
1752 </p>
1753
1754 <p>Many minor fixes and changes due to adding lots of -W flags
1755 and using gcc4.
1756 </p>
1757
1758
1759 <h3>SWIG Bindings Interface</h3>
1760
1761 <p>Fixed typo to declare <code>librdf_query_results_get_binding_value</code>
1762 to return a new object.
1763 </p>
1764
1765 <p>Export new function <code>librdf_parser_get_accept_header</code>
1766 </p>
1767
1768 <p>Export version strings and integer constants for raptor:
1769 (<code>raptor_version_string</code>,
1770 <code>raptor_version_major</code>,
1771 <code>raptor_version_minor</code>,
1772 <code>raptor_version_release</code>,
1773 <code>raptor_version_decimal</code>)
1774 and rasqal
1775 (<code>rasqal_version_string</code>,
1776 <code>rasqal_version_major</code>,
1777 <code>rasqal_version_minor</code>,
1778 <code>rasqal_version_release</code>,
1779 <code>rasqal_version_decimal</code>)
1780 </p>
1781
1782
1783 <h2 id="rel1_0_4"><a name="rel1_0_4">Redland 1.0.4 Changes</a></h2>
1784
1785 <p>The main changes in this release are:</p>
1786
1787 <p>Updated to use
1788 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.12
1789 (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_12">Rasqal 0.9.12 release notes</a>)
1790 to update to SPARQL 2006-04-06 for JSON results
1791 </p>
1792
1793 <p>Updated to use
1794 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.9
1795 (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_9">Raptor 1.4.9 release notes</a>)
1796 </p>
1797
1798 <p>Plus fixing some crash bugs in parsing and serializing.</p>
1799
1800
1801 <h3>Configuration and Build Changes</h3>
1802
1803 <p>Now using <a href="http://subversion.tigris.org/">Subversion</a>
1804 for version control and the <a href="INSTALL.html">Redland installation instructions</a> explain how to get Redland from Subversion.</p>
1805
1806 <p>Win32 fixes and VC build files updates from John Barstow.
1807 </p>
1808
1809 <p>Let configure find BDB 4.4</p>
1810
1811
1812 <h3>Node Class Changes</h3>
1813
1814 <p><code>librdf_new_node_from_literal</code>
1815 and <code>librdf_new_node_from_typed_literal</code> now accept empty
1816 strings as an alternative to a NULL language pointer.
1817 </p>
1818
1819
1820 <h3>Parser Class Changes</h3>
1821
1822 <p>Add one more place where it needed handling old and new raptor
1823 statement predicate values
1824 <code>RAPTOR_IDENTIFIER_TYPE_RESOURCE</code> and
1825 <code>RAPTOR_IDENTIFIER_TYPE_PREDICATE</code>.
1826 </p>
1827
1828 <p>Fixed a bad uses of flose() causing a crash in parsing a file or
1829 from a <code>FILE*</code> file handle when run under
1830 newer <code>glibc</code>s.
1831 </p>
1832
1833
1834 <h3>Serializer Class Changes</h3>
1835
1836 <p>Fixed a bad uses of flose() causing a crash in serializing to a
1837 file when run under newer <code>glibc</code>s.
1838 </p>
1839
1840
1841 <h3>Storage Class Changes</h3>
1842
1843 <p>Introduced a <code>UINT64_T_FMT</code> to handle formatting a 64-bit
1844 <code>unsigned</code> <code>int</code> in storages
1845 as <code>%llu</code> is not portable.
1846 </p>
1847
1848
1849 <h2 id="rel1_0_3"><a name="rel1_0_3">Redland 1.0.3 Changes</a></h2>
1850
1851 <p>The main changes in this release are:</p>
1852
1853 <p>Updated to use
1854 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.11
1855 (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_11">Rasqal 0.9.11 release notes</a>)
1856 to update to SPARQL 2005-11-23
1857 </p>
1858
1859 <p>Updated to use
1860 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.8
1861 (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_8">Raptor 1.4.8 release notes</a>)
1862 </p>
1863
1864 <p>A large source re-arrangement was performed for raptor and rasqal
1865 inside redland. All C sources and headers that build the libraries
1866 were moved to the src dir, general documentation in the doc dir and
1867 utilities in the utils dir for each sub-library.
1868 </p>
1869
1870 <p>Version Control change: Redland will be switching to use
1871 <a href="http://subversion.tigris.org/">Subversion</a>
1872 for version control after the 1.0.3 release. Please check the
1873 <a href="http://svn.librdf.org/">Redland Subversion site</a>
1874 for the latest status or the online
1875 <a href="http://librdf.org/INSTALL.html">Redland installation notes</a>
1876 for the redland specific subversion installation information.
1877 </p>
1878
1879 <p>A new PostgreSQL storage backend was added
1880 contributed by Shi Wenzhong based on the MySQL storage backend.
1881 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=46">issue #0000046</a>
1882 </p>
1883
1884
1885 <h3>Configuration Changes</h3>
1886
1887 <p>The autogen.sh script for building from CVS was revamped to be
1888 more modular.</p>
1889
1890 <p><code>configure</code> now takes an <code>--enable-gtk-doc</code>
1891 option to enable building of the documentation using the
1892 <code>gtk-doc</code> utility. It is by default enabled only if the
1893 utility is available.
1894 </p>
1895
1896
1897 <h3>Documentation Changes</h3>
1898
1899 <p>The GNOME <code>gtk-doc</code> program is now used to
1900 automatically extract documentation from source comments into
1901 reference documentation. This is then merged with templates and
1902 additional documentation to provide a reference manual for redland
1903 as XML document which is turned into HTML along with GNOME devhelp
1904 support.</p>
1905
1906 <h3>Portability Changes</h3>
1907
1908 <p>Some win32 build fixes were made.</p>
1909
1910 <h3>World Class Changes</h3>
1911
1912 <p><code>librdf_world_get_genid()</code> was changed to include the
1913 process ID in the generated blank ID.
1914 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=37">Issue #0000037</a>
1915 (patch from Marc Powell).
1916 </p>
1917
1918 <h3>Node Class changes</h3>
1919
1920 <p><code>librdf_node_encode()</code>: Give an error when a node cannot
1921 be encoded due to string data being too long.
1922 </p>
1923
1924
1925 <h3>Serializer Class changes</h3>
1926
1927 <p>Added <code>librdf_serializer_serialize_model_to_iostream()</code>, not
1928 exposed in the SWIG bindings.
1929 </p>
1930
1931
1932 <h3>Storage Class Changes</h3>
1933
1934 <p>Added a PostgreSQL storage backend contributed by Shi Wenzhong
1935 based on the MySQL storage backend.
1936 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=46">Issue #0000046</a>
1937 </p>
1938
1939
1940 <h3>Other Changes</h3>
1941
1942 <p>Deprecated <code>librdf_files_temporary_file_name()</code>.</p>
1943
1944 <p>Deleted some function prototypes defined in headers but never had
1945 code:
1946 <code>librdf_node_init()</code>,
1947 <code>librdf_iterator_finished()</code>,
1948 <code>librdf_storage_get()</code> and
1949 <code>librdf_world_set_uris_hash()</code>
1950 </p>
1951
1952 <p>Added examples/example7.c to read from an RDF/XML file, add a
1953 triple and write it back.</p>
1954
1955
1956
1957 <h2 id="rel1_0_2"><a name="rel1_0_2">Redland 1.0.2 Changes</a></h2>
1958
1959 <p>The changes in this release are:</p>
1960
1961 <ul>
1962 <li>Fix a crash when querying or searching with the model
1963 find_statements method and getting no results</li>
1964
1965 <li>Update to use
1966 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.10
1967 (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_10">Rasqal 0.9.10 release notes</a>)
1968 to provide query results sorting such as SPARQL <code>ORDER BY</code>
1969 and some SPARQL syntax updates.
1970 </li>
1971
1972 <li>Update to use
1973 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.7
1974 (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_7">Raptor 1.4.7 release notes</a>)
1975 to fix some crashes in the RSS tag soup parser and serializer.
1976 </li>
1977 </ul>
1978
1979
1980 <h2 id="rel1_0_1"><a name="rel1_0_1">Redland 1.0.1 Changes</a></h2>
1981
1982 <p>The main changes in this release are to update to use
1983 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.9
1984 (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_9">Rasqal 0.9.9 release notes</a>)
1985 to provide improved SPARQL query support for the revised syntax
1986 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.6
1987 (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_6">Raptor 1.4.6 release notes</a>)
1988 to
1989 provide a new GRDDL parser as well as updated RSS enclosures support
1990 with the RSS tag soup parser and RSS 1.0 serializer.
1991 </p>
1992
1993 <p>The digest and hash classes now expose public API constructors,
1994 destructors and methods via their header files.</p>
1995
1996
1997 <h3>Configuration changes</h3>
1998
1999 <p>Added <code>--with-memory-signing</code> to check when memory is
2000 allocated / freed across Redland libraries.
2001 </p>
2002
2003
2004 <h3>Portability Fixes</h3>
2005
2006 <p>Added Win32 portability fixes and build configuration (John Barstow)</p>
2007
2008
2009 <h3>Binding API changes</h3>
2010
2011 <p>The following changes were made to the bindings API as
2012 exported by the SWIG interface file <code>Redland.i</code>:</p>
2013
2014 <p>The digest class was added:
2015 constructor <code>librdf_new_digest</code>,
2016 destructor <code>librdf_free_digest</code>
2017 and methods <code>librdf_digest_init</code>,
2018 <code>librdf_digest_update</code>,
2019 <code>librdf_digest_update_string</code>,
2020 <code>librdf_digest_final</code> and
2021 <code>librdf_digest_to_string</code>,.
2022 </p>
2023
2024 <p>The hash class was added as selected functions:
2025 constructors <code>librdf_new_hash_from_string</code> and
2026 <code>librdf_new_hash_from_array_of_strings</code> and destructor
2027 <code>librdf_free_hash</code>.
2028 </p>
2029
2030 <p>The query class methods
2031 <code>librdf_query_get_limit</code>,
2032 <code>librdf_query_set_limit</code>,
2033 <code>librdf_query_get_offset</code> and
2034 <code>librdf_query_set_offset</code> were added.
2035 </p>
2036
2037 <p>Functions were added for accessing parts of structured log messages
2038 as <code>librdf_log_message</code> objects:
2039 <code>librdf_log_message_code</code>,
2040 <code>librdf_log_message_level</code>,
2041 <code>librdf_log_message_facility</code>,
2042 <code>librdf_log_message_message</code>,
2043 <code>librdf_log_message_locator</code>
2044 and <a href="http://librdf.org/raptor/">Raptor</a> <code>raptor_locator</code>
2045 objects:
2046 <code>raptor_locator_line</code>,
2047 <code>raptor_locator_column</code>,
2048 <code>raptor_locator_byte</code>,
2049 <code>raptor_locator_file</code> and
2050 <code>raptor_locator_uri</code>.
2051 </p>
2052
2053
2054 <h3>Digest Class changes</h3>
2055
2056 <p>This class was added to the public API in this release adding
2057 constructor <code>librdf_new_digest</code>,
2058 destructor <code>librdf_free_digest</code>
2059 and methods
2060 <code>librdf_digest_init</code>,
2061 <code>librdf_digest_update</code>,
2062 <code>librdf_digest_update_string</code>,
2063 <code>librdf_digest_final</code>,
2064 <code>librdf_digest_get_digest</code>,
2065 <code>librdf_digest_get_digest_length</code>,
2066
2067 <code>librdf_digest_to_string</code> and
2068 <code>librdf_digest_print</code>
2069 </p>
2070
2071
2072 <h3>Hash Class changes</h3>
2073
2074 <p>This class was added to the public API in this release adding
2075 constructors
2076 <code>librdf_new_hash_from_string</code>,
2077 <code>librdf_new_hash_from_array_of_strings</code> and
2078 <code>librdf_new_hash_from_hash</code>;
2079 destructor
2080 <code>librdf_free_hash</code>;
2081 and methods
2082 <code>librdf_hash_get</code>,
2083 <code>librdf_hash_get_as_boolean</code>,
2084 <code>librdf_hash_get_as_long</code>,
2085 <code>librdf_hash_get_del</code>,
2086 <code>librdf_hash_put_strings</code>,
2087 <code>librdf_hash_print</code>,
2088 <code>librdf_hash_print_keys</code> and
2089 <code>librdf_hash_print_values</code>.
2090 </p>
2091
2092
2093 <h3>Iterator Class changes</h3>
2094
2095 <p>Added a <code>librdf_new_empty_iterator</code> helper to make an
2096 always-empty iterator.</p>
2097
2098
2099 <h3>Log Class changes</h3>
2100
2101 <p>Added <code>LIBRDF_FROM_MEMORY</code> facility.</p>
2102
2103
2104 <h3>Model Class changes</h3>
2105
2106 <p>All methods returning an <code>librdf_iterator</code> or
2107 <code>librdf_stream</code> now return an empty iterator/stream rather
2108 than NULL when returning an empty result sequence. Errors are still
2109 returned as NULL.</p>
2110
2111
2112 <h3>Node Class changes</h3>
2113
2114 <p>Removed unused <code>LIBRDF_NODE_TYPE_RESERVED1</code> (#3) from
2115 <code>librdf_node_type</code> enum.</p>
2116
2117
2118 <h3>Query Class changes</h3>
2119
2120 <p>Update to use Rasqal 0.9.9 API. Redland 1.0.1 will not build with
2121 older Rasqal releases.</p>
2122
2123 <p>The query API gains methods <code>librdf_query_get_limit</code>,
2124 <code>librdf_query_set_limit</code>,
2125 <code>librdf_query_get_offset</code> and
2126 <code>librdf_query_set_offset</code> for setting and getting query
2127 result limit (max results) and offsets (result to start from).</p>
2128
2129 <p>Fixed some across-library memory allocation/frees between redland
2130 and rasqal that caused problems on win32. Requires rasqal 0.9.9 or
2131 newer.</p>
2132
2133
2134 <h3>Stream Class changes</h3>
2135
2136 <p>Added a <code>librdf_new_empty_strea</code> helper to make an
2137 always-empty strea.</p>
2138
2139
2140 <h3>Storage Class changes</h3>
2141
2142 <p>The MySQL store now uses a portable method across endiannesses to
2143 create a 64bit key. This fixes
2144 <a href="http://bugs.librdf.org/mantis/view.php?id=23">Issue #0000023</a>
2145 (Morten Frederiksen)</p>
2146
2147 <blockquote><p><strong>NOTE: This matches the algorithm used for
2148 little-endian systems but big-endian stores will need to serialize
2149 the store before upgrading and reload afterwards.</strong></p></blockquote>
2150
2151 <p>The MySQL store now uses connection pooling to prevent making a new
2152 connection to the database for each request.
2153 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=27">Issue #0000027</a>
2154 (Morten Frederiksen)
2155 </p>
2156
2157 <p>The SQLite store now does not skip items with the factory methods
2158 for serializing, finding statements, serializing contexts and getting
2159 context statements.
2160 Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=6">Issue #0000006</a>
2161 </p>
2162
2163 <p>All store methods that return an <code>librdf_iterator</code> or
2164 <code>librdf_stream</code> now return an empty iterator/stream rather
2165 than NULL when returning an empty result sequence. Errors are still
2166 returned as NULL.</p>
2167
2168
2169 <h3>Other changes</h3>
2170
2171 <p>Added <code>REDLAND_INLINE</code> macro, which can be overridden if
2172 inline is not wanted.</p>
2173
2174
2175 <h2 id="rel1_0_0"><a name="rel1_0_0">Redland 1.0.0 Changes</a></h2>
2176
2177 <p>This is Redland 1.0.0.</p>
2178
2179 <p>The main changes in this release are to update to use
2180 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.6
2181 to provide improved SPARQL query support for optionals, CONSTRUCT, ASK, builtins,
2182 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.4 to
2183 provide better serializing to RDF/XML and RSS 1.0 and better
2184 RSS tag soup parsing and
2185 a new experimental <a href="http://www.sqlite.org/">SQLite</a>
2186 storage supporting SQLite V2 and V3 libraries.
2187 </p>
2188
2189
2190 <h3>Configuration changes</h3>
2191
2192 <p>The storages compiled into redland can be individually selected
2193 with the <code>--enable-storages=</code><em>LIST</em> configure
2194 option.
2195 </p>
2196
2197 <p>The default for <code>--with-dmalloc</code> is now no. Reason:
2198 <a href="http://valgrind.kde.org/">valgrind</a>.</p>
2199
2200
2201 <h3>Portability Fixes</h3>
2202
2203 <p>Removed configure altering the search PATH - which was a bad idea
2204 as it makes the configure environment different from the user's.</p>
2205
2206 <p>Added <code>/opt/local</code> to the BerkeleyDB / SleepycatDB
2207 search path to help darwinports.</p>
2208
2209 <p>To help Redland built as an OSX Framework with ObjectiveC, Redland
2210 public headers can be put in a different directory structure if
2211 <code>LIBRDF_OBJC_FRAMEWORK</code> is defined in the build
2212 environment. In this case the headers are found in a subdirectory
2213 <code>Redland</code>. This only applies to the public Redland header
2214 files that <code>#include</code> other public header files -
2215 <code>redland.h</code> including <code>librdf.h</code>,
2216 <code>librdf.h</code> including several <code>rdf_*.h</code> files
2217 and Rasqal's <code>rasqal.h</code> including
2218 <code>raptor.h</code>. (Patch from René Puls)
2219 </p>
2220
2221
2222 <h3><code>rdfproc</code> RDF processor utility program changes</h3>
2223
2224 <p>Added a <code>size</code> command calling
2225 <code>librdf_model_size</code>.</p>
2226
2227
2228 <h3>Model Class changes</h3>
2229
2230 <p>Added <code>librdf_model_contains_context</code> to find a context
2231 node in a model.</p>
2232
2233 <p>The <code>librdf_model_sync</code> now returns a success or failure
2234 int.</p>
2235
2236
2237 <h3>Parser Class Changes</h3>
2238
2239 <p>Updated to <a href="http://librdf.org/raptor/">Raptor</a> 1.4.4
2240 providing an updated RSS tag soup parser with fixes for RSS 0.9,
2241 RSS.1.1 and Atom.</p>
2242
2243 <p>The constructor now finds the correct parser when given NULL
2244 arguments for mime type or type URI.</p>
2245
2246
2247 <h3>Query Class changes</h3>
2248
2249 <p>Update to <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.5
2250 providing improved SPARQL support: new optionals handling,
2251 <code>CONSTRUCT</code> to make RDF graphs, formatting of query
2252 results in the SPARQL XML format along with many other improvements
2253 and fixes.</p>
2254
2255
2256 <p>Added base_uri argument to <code>librdf_new_query</code></p>
2257
2258 <p>Added
2259 <code>librdf_query_results_to_counted_string</code>,
2260 <code>librdf_query_results_to_string</code>,
2261 <code>librdf_query_results_to_file_handle</code> and
2262 <code>librdf_query_results_to_file</code>
2263 to get the results of a query written to a syntax using
2264 Rasqal's rasqal_query_results_write and Raptor's XML writer API.
2265 </p>
2266
2267 <p>Added boolean returning methods:
2268 <code>librdf_query_results_is_bindings</code>,
2269 <code>librdf_query_results_is_boolean</code>,
2270 <code>librdf_query_results_is_graph</code> for testing result formats
2271 and <code>librdf_query_results_get_boolean</code> to get a boolean
2272 result back.</p>
2273
2274
2275
2276 <h3>Serializer Class changes</h3>
2277
2278 <p>Updated to <a href="http://librdf.org/raptor/">Raptor</a> 1.4.4
2279 providing a new XML writer API, an improved RDF/XML serializer
2280 allowing user namespace declarations and relative URIs, a new RSS 1.0
2281 serializer.</p>
2282
2283 <p>The serializers now respect any user-declared namespaces done with
2284 <code>librdf_serializer_set_namespace</code> by passing it on to the
2285 Raptor serializer with <code>raptor_serialize_set_namespace</code>.
2286 At present only the Raptor RDF/XML serializer uses these
2287 user-declared namespace hints.
2288 </p>
2289
2290 <p>The constructor now finds the correct serializer when given NULL
2291 arguments for mime type or type URI.</p>
2292
2293
2294 <h3>Storage Class changes</h3>
2295
2296 <p>The storages compiled into redland can be individually selected
2297 with the <code>--enable-storages=</code><em>LIST</em> configure option.
2298 </p>
2299
2300 <p>SQLite Storage. A new experimental storage supporting
2301 <a href="http://www.sqlite.org/">SQLite</a> V2 and V3 libraries.
2302 </p>
2303
2304 <p>MySQL storage. Return failure early if the connection failed
2305 rather than try to continue opening the storage.</p>
2306
2307 <p>MySQL storage. Only use <code>mysql_real_escape_string</code> if
2308 a connection was made. Do not try to free resources such as the
2309 mysql DB connection owned by iterators after an error, let
2310 <code>librdf_free_iterator</code> tidy up. (Patch from Morten
2311 Frederiksen)</p>
2312
2313
2314 <h3>URI Class changes</h3>
2315
2316 <p>Handle resolving against a base URI with an omitted path.</p>
2317
2318
2319 <h3>Other changes</h3>
2320
2321 <p>Removed <code>librdf_concept_labels</code> - never used or
2322 exported.</p>
2323
2324
2325
2326 <h2 id="rel0_9_19"><a name="rel0_9_19">Redland 0.9.19 Changes</a></h2>
2327
2328 <p>This is Redland 1.0 Release Candidate 2.</p>
2329
2330 <p>Redland's License was changed from LGPL 2.1/MPL 1.1 to
2331 LGPL 2.1/Apache 2</p>
2332
2333 <p>The main changes in this release are to update to use
2334 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.5
2335 to provide initial SPARQL query support and to use
2336 <a href="http://librdf.org/raptor/">Raptor</a> 1.4.2 to
2337 provide serializing to RDF/XML and N-Triples.</p>
2338
2339
2340 <h3><code>rdfproc</code> RDF processor utility program changes</h3>
2341
2342 <p>Updated to allow an optional base URI for the
2343 <code>serialize</code> command and to handle the three forms
2344 of query results - bindings, graph or boolean.</p>
2345
2346
2347 <h3>Model Class changes</h3>
2348
2349 <p>Added <code>librdf_model_to_string</code> and
2350 <code>librdf_model_to_counted_string</code> to serialize a model to a
2351 string using the Serializer class functionality. Exported
2352 <code>librdf_model_to_string</code> to the language bindings.</p>
2353
2354
2355 <h3>Query Class changes</h3>
2356
2357 <p>Now requires
2358 <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.5
2359 which provides initial support for the
2360 <a href="http://www.w3.org/TR/2004/WD-rdf-sparql-query-20041012/">
2361 SPARQL Query Language for RDF</a>,
2362 W3C Working Draft, 12 October 2004
2363 from the W3C RDF Data Access Working Group (DAWG).</p>
2364
2365
2366 <h3>Serializer Class changes</h3>
2367
2368 <p>Pass on errors and warnings via the existing Redland logging
2369 mechanism. Previously they all went to stderr, the default.</p>
2370
2371 <p>Switched to use <a href="http://librdf.org/raptor/">Raptor</a> 1.4
2372 series serializing classes so now provides RDF/XML and N-Triples
2373 serializing and will gain any fugure serializing formats as Raptor
2374 adds them.</p>
2375
2376 <p>Using the Raptor support, the serializers can now serialize to
2377 strings in addition to the existing serializing to FILE* and files.
2378 This is performed by the new methods:
2379 <code>librdf_serializer_serialize_model_to_file_handle</code>
2380 (deprecating <code>librdf_serializer_serialize_model</code>),
2381 <code>librdf_serializer_serialize_model_to_string</code>
2382 and <code>librdf_serializer_serialize_model_to_counted_string</code>.
2383 Exported <code>librdf_serializer_serialize_model_to_string</code>
2384 to the language bindings.</p>
2385
2386
2387 <h3>Storage Class changes</h3>
2388
2389 <p><code>librdf_storage_context_add_statement</code> and
2390 <code>librdf_storage_context_add_statements</code> -
2391 With a NULL context, call the non-context method as documented.</p>
2392
2393 <p>Fixed bogus '+' in <code>get_contexts</code> method in the mysql
2394 storage.</p>
2395
2396
2397 <h3>World Class changes</h3>
2398
2399 <p><code>librdf_world_get_feature</code> now returns a
2400 <code>librdf_node*</code>, <code>librdf_world_set_feature</code>
2401 takes a <code>librdf_node*</code> value. Export these to
2402 the language bindings.
2403 </p>
2404
2405
2406
2407 <h2 id="rel0_9_18"><a name="rel0_9_18">Redland 0.9.18 Changes</a></h2>
2408
2409 <p>Revert the statement class usage counting - it broke things.</p>
2410
2411
2412 <h2 id="rel0_9_17"><a name="rel0_9_17">Redland 0.9.17 Changes</a></h2>
2413
2414 <p>This is Redland 1.0 Release Candidate 1.</p>
2415
2416 <p>The main changes in this release are the addition of the
2417 <a href="docs/api/query.html">Query</a> and
2418 <a href="docs/api/query_results.html">Query Results</a> classes, and
2419 the removal of the language bindings into the new
2420 <a href="http://librdf.org/bindings/">Redland Bindings</a>
2421 package.
2422 </p>
2423
2424 <p>The interface between the Redland library and Redland Bindings
2425 when done via <a href="http://www.swig.org/">swig</a> is by the
2426 swig interface file <code>Redland.i</code> which is now installed in
2427 <code>/usr/share/redland/Redland.i</code>.</p>
2428
2429
2430 <h3>Portability changes</h3>
2431
2432 <p>Several patches for building Redland natively on Win32
2433 were provided by Jose Kahan. These included
2434 adding an <code>win32_rdf_config.h</code> hard-coded config
2435 for Win32, using that in the all the C source files and adding an
2436 <code>REDLAND_STATIC</code> define to help statically linking Win32
2437 builds of Redland.
2438 </p>
2439
2440
2441 <h3>Configuration changes</h3>
2442
2443 <p>Redland 0.9.17 requires Raptor 1.3.2 and Rasqal 0.9.1. Installed
2444 versions are used if available by default, otherwise the copies in
2445 the source tree will be used. The
2446 <code>--with-raptor=</code> and
2447 <code>--with-rasqal=</code> configure options with
2448 values <code>internal</code> or <code>system</code> can be
2449 used to select when both are available.
2450 </p>
2451
2452 <p>Removed all the language binding-specific configuration code
2453 including options such as <code>--with-perl</code> that are now used
2454 by Redland Bindings.</p>
2455
2456
2457 <h3>Packaging changes</h3>
2458
2459 <p>Updated the RPM spec file to remove building of the redland-perl
2460 and redland-python RPMs which are now made in the redland-bindings
2461 package.</p>
2462
2463 <p>Added <code>-lrdf</code> to the pkgconfig redland.pc file (Curtis Hovey)</p>
2464
2465 <p>Redland requires automake 1.7 and autoconf 2.54 to build from CVS.</p>
2466
2467
2468 <h3>Query and Query Result Classes</h3>
2469
2470 <p>The <a href="docs/api/query.html">Query</a>
2471 (<code>librdf_query</code>) and
2472 <a href="docs/api/query_results.html">Query Results</a>
2473 (<code>librdf_query_results</code>) classes are new in Redland 0.9.17.
2474 They provide RDF query support with
2475 <a href="http://www.w3.org/Submission/2004/SUBM-RDQL-20040109/">RDQL</a>
2476 using <a href="http://librdf.org/rasqal/">Rasqal</a>
2477 0.9.1, which is now included in the Redland distribution.</p>
2478
2479 <p>The Query class has the following functions and methods:</p>
2480 <ul>
2481 <li><code>librdf_new_query</code> (constructor)</li>
2482 <li><code>librdf_new_query_from_query</code> (constructor)</li>
2483 <li><code>librdf_new_query_from_factory</code> (factory constructor)</li>
2484 <li><code>librdf_free_query</code> (destructor)</li>
2485 <li><code>librdf_query_execute</code></li>
2486 </ul>
2487
2488 <p>The Query Results class has the following methods:</p>
2489 <ul>
2490 <li><code>librdf_query_results_as_stream</code></li>
2491 <li><code>librdf_query_results_get_count</code></li>
2492 <li><code>librdf_query_results_next</code></li>
2493 <li><code>librdf_query_results_finished</code></li>
2494 <li><code>librdf_query_results_get_bindings</code></li>
2495 <li><code>librdf_query_results_get_binding_value</code></li>
2496 <li><code>librdf_query_results_get_binding_name</code></li>
2497 <li><code>librdf_query_results_get_binding_value_by_name</code></li>
2498 <li><code>librdf_query_results_get_bindings_count</code></li>
2499 <li><code>librdf_free_query_results</code> (destructor)</li>
2500 </ul>
2501
2502
2503 <p>A new example example5.c was created to demonstrate using the
2504 query classes.</p>
2505
2506
2507 <h3>New Logging API</h3>
2508
2509 <p>An enhanced logging API was added to provide enhanced information
2510 from log messages, error and warnings such as from parsing. The new
2511 world method <code>librdf_world_set_logger</code> allows setting of
2512 the log handler callback which gives a
2513 <code>librdf_log_message</code>. Parts of this the structure can be
2514 read by using the following new accessors methods:
2515 </p>
2516
2517 <ul>
2518 <li><code>librdf_log_message_code</code></li>
2519 <li><code>librdf_log_message_level</code></li>
2520 <li><code>librdf_log_message_facility</code></li>
2521 <li><code>librdf_log_message_message</code></li>
2522 <li><code>librdf_log_message_locator</code></li>
2523 </ul>
2524
2525 <p>The locator returns an <code>raptor_locator</code> that gives the
2526 line, column, byte offset, URI and/or filename of the message.
2527 Raptor 1.3.2+ provides accessor methods for that structure
2528 that are described in
2529 <a href="http://librdf.org/raptor/libraptor.html">libraptor.3</a>.</p>
2530
2531
2532 <h3>Model Class changes</h3>
2533
2534 <p>Check that duplicate statements are not added to models with the
2535 <code>librdf_model_add_statement</code> and
2536 <code>librdf_model_add_statements</code> methods. The methods for
2537 adding statements with a context do not check.
2538 </p>
2539
2540 <p>Added <code>librdf_model_query_execute</code> method to execute a
2541 <code>librdf_query</code> against a model, returning an
2542 <code>librdf_query_results</code></p>
2543
2544 <p>Added <code>librdf_model_load</code> method that uses Raptor
2545 parser guessing to load content from a URI into a model.</p>
2546
2547 <p>The contexts methods now give a run time warning if called when
2548 the model does not support contexts or the are not enabled. The
2549 methods affected are:</p>
2550 <ul>
2551 <li><code>librdf_model_context_add_statement</code></li>
2552 <li><code>librdf_model_context_add_statements</code></li>
2553 <li><code>librdf_model_context_as_stream</code></li>
2554 <li><code>librdf_model_context_remove_statement</code></li>
2555 <li><code>librdf_model_context_remove_statements</code></li>
2556 <li><code>librdf_model_context_serialize</code></li>
2557 <li><code>librdf_model_find_statements_in_context</code></li>
2558 <li><code>librdf_model_get_contexts</code></li>
2559 </ul>
2560
2561 <p>Fixed a memory leak
2562 inside <code>librdf_model_find_statements_in_context</code>.
2563 </p>
2564
2565
2566 <h3>Node Class changes</h3>
2567
2568 <p>Fix assert bug in <code>librdf_node_get_blank_identifier</code>
2569 that caused it to always fail.</p>
2570
2571 <p>A bug was fixed in <code>librdf_node_get_li_ordinal</code>
2572 to not always fail, returning -1</p>
2573
2574
2575 <h3>Parser Class changes</h3>
2576
2577 <p>Deprecated methods <code>librdf_parser_set_error</code> and
2578 <code>librdf_parser_set_warning</code> which never worked. The
2579 new logging API works correctly with this code.</p>
2580
2581 <h3>Storage Class changes</h3>
2582
2583 <p>Where possible, check that duplicate statements are not added to
2584 stores with the <code>librdf_storage_add_statement</code> and
2585 <code>librdf_storage_add_statements</code> methods. The methods for
2586 adding statements with a context do not check.
2587 </p>
2588
2589 <p>The "mysql" storage was updated by
2590 <a href="http://purl.org/net/morten/">Morten Frederiksen</a>
2591 to revise the schema and to add two new features,
2592 controlled by new boolean storage options:</p>
2593 <ol>
2594 <li><code>bulk</code>: whether model/storage method add_statements
2595 should be optimized, until a model/storage sync operation</li>
2596 <li><code>merge</code>: whether to maintain a table with merged models</li>
2597 </ol>
2598
2599 <p>Context methods will now give a run time warning if called and
2600 contexts are not supported or enabled. The methods affected are:</p>
2601 <ul>
2602 <li><code>librdf_storage_context_add_statement</code></li>
2603 <li><code>librdf_storage_context_remove_statement</code></li>
2604 <li><code>librdf_storage_context_serialise</code></li>
2605 <li><code>librdf_storage_get_contexts</code></li>
2606 </ul>
2607
2608 <p>Fixed a memory leak
2609 inside <code>librdf_storage_find_statements_in_context</code>.
2610 </p>
2611
2612 <p>A bug was fixed in method
2613 <code>librdf_storage_node_stream_to_node_create</code> to allow the
2614 second node parameter to be NULL, so that methods
2615 <code>librdf_storage_get_arcs_out</code> and
2616 <code>librdf_storage_get_arcs_in</code> that can use it to work.</p>
2617
2618
2619
2620 <h2 id="rel0_9_16"><a name="rel0_9_16">Redland 0.9.16 Changes</a></h2>
2621
2622 <p>A small but important fix to make the installed C headers work
2623 correctly again. The rdf_uri.h file had <code>#include
2624 rdf_digest.h</code> which is an internal header and not installed.
2625 This required removing two functions from the public API that
2626 returned <code>librdf_digest*</code>, but neither of them could be
2627 used since rdf_digest.h was not shipped.</p>
2628
2629 <p>Patched librdf.h and raptor.h to <code>#include stdio.h</code> so
2630 that the empty program <code>#include &lt;redland.h&gt;</code>
2631 <code>main() {}</code> now works (ditto for raptor). </p>
2632
2633
2634 <h2 id="rel0_9_15"><a name="rel0_9_15">Redland 0.9.15 Changes</a></h2>
2635
2636 <p>This version of Redland updates to use
2637 <a href="http://librdf.org/raptor/">Raptor</a>
2638 1.2.0 (<a href="http://librdf.org/raptor/NEWS.html">raptor news</a>)
2639 along with the new syntax
2640 <a href="http://www.dajobe.org/2004/01/turtle/">Turtle Terse RDF Triple Language</a>.
2641 </p>
2642
2643 <p>Three new storage modules were added:</p>
2644 <ol>
2645 <li><a href="http://www.mysql.com/">MySQL</a> store written by <a href="http://purl.org/net/morten/">Morten Frederiksen</a> supporting the entire storage API include full contexts support.</li>
2646 <li><a href="http://triplestore.aktors.org/">AKT Triplestore</a> using MySQL inside 3store</li>
2647 <li>File and URI-backed in-memory store - read/write file, read only URI.</li>
2648 </ol>
2649
2650 <p>The details of these modules are explained in much greater detail
2651 in the <a href="docs/storage.html">storage modules overview</a>
2652 including the features that they support.
2653 </p>
2654
2655 <p>The runtime is now compiled with assertions to check for illegal
2656 use of NULL pointers in arguments, these will give warning messages
2657 (which can be disabled with <code>--disable-assert-messages</code>).
2658 The storage and model classes now track when open iterator and
2659 streams are operating on them and will not release resources until
2660 all the open iterators and streams are finished.
2661 </p>
2662
2663
2664 <h3>URI and Literal string type changes</h3>
2665
2666 <p>There are many changes are to properly use and return UTF-8
2667 strings as <code>unsigned char*</code> for URIs (looking forward to
2668 Internationalized Resource Identifiers, IRIs emerging) and for RDF
2669 literal strings, plus other fixes to work better with C++ correcting
2670 the use of <code>const</code>. Redland and Raptor now both compile
2671 cleanly with g++ 3.2, 3.3 and all warnings enabled.</p>
2672
2673
2674 <h3><code>rdfproc</code> RDF processor utility program changes</h3>
2675
2676 <p><a href="utils/rdfproc.html">rdfproc</a> was extensively updated
2677 and it can now more easily work with any type of Redland store and
2678 has better support for working with contexts. The detailed changes
2679 are as follows:</p>
2680
2681 <ul>
2682 <li>Added an -s TYPE option to specify a storage type</li>
2683 <li>Added an -t option for giving storage options</li>
2684 <li>Added an -p option to read the value of
2685 storage option <code>password</code> from standard input, to prevent
2686 exposing it as a parameter.</li>
2687 <li>The default of creating a new store was
2688 replaced; -n enables truncation or overwriting (the
2689 <code>write=yes</code> storage option).</li>
2690 <li> Now recognises <code>_:</code><em>abc</em> as blank node arguments.</li>
2691 <li>Parsing now return counts of errors and warnings if possible.</li>
2692 <li>The parse-stream command can take an optional context node</li>
2693 <li>Added a contexts command, to list the contexts in a model.</li>
2694 <li>Added support for environment variables RDFPROC_STORAGE_OPTIONS and
2695 RDFPROC_STORAGE_TYPE to provide default storage options (-t) and type (-s)</li>
2696 <li>Help message updated and correctly lists supported parsers</li>
2697 </ul>
2698
2699
2700 <h3>Configuration changes</h3>
2701
2702 <p>Redland 0.9.15 requires Raptor 1.2.0 either installed otherwise
2703 the copy in the source tree will be installed.</p>
2704
2705 <p><code>--with-mysql=</code><em>CONFIG</em> added to point to the
2706 mysql_config program for the MySQL backing store
2707 </p>
2708
2709 <p><code>--with-threestore</code> added to enable the
2710 AKT Triplestore
2711 </p>
2712
2713 <p><code>--disable-assert</code> added to disable
2714 compiling run-time assertions.
2715 </p>
2716
2717 <p><code>--disable-assert-messages</code> added to disable
2718 compiling run-time assertion messages.
2719 </p>
2720
2721
2722 <h3>Packaging changes</h3>
2723
2724 <p>A redland-python RPM package is now provided and the default RPM
2725 packaging now provides the MySQL store, in addition to the in-memory
2726 and BDB previously packaged. The new file and uri stores are also
2727 available. The full list of store modules is described further in the
2728 <a href="docs/storage.html">storage modules overview</a>.</p>
2729
2730
2731 <h3>Model Class changes</h3>
2732
2733 <p>Methods
2734 <code>librdf_model_add_string_literal_statement</code> and
2735 <code>librdf_model_add_typed_literal_statement</code>
2736 now take a <code>const unsigned char* string</code>.
2737 Method
2738 <code>librdf_model_query_string</code> now takes
2739 a <code>const unsigned char* string</code> query.
2740 </p>
2741
2742 <p>New methods were added
2743 <code>librdf_model_find_statements_in_context</code>
2744 to search for a statement matching only in a particular context,
2745 <code>librdf_model_find_statements_with_options</code> to
2746 allow options with searching (none used at present),
2747 and <code>librdf_model_get_contexts</code> to
2748 list the context nodes in a graph.
2749 </p>
2750
2751 <p>Methods <code>librdf_model_get_feature</code>,
2752 <code>librdf_model_set_feature</code> were modified to take and return
2753 <code>librdf_node*</code> values.
2754 </p>
2755
2756
2757 <h3>Node Class changes</h3>
2758
2759 <p>Constructors
2760 <code>librdf_new_node_from_uri_string</code>,
2761 <code>librdf_new_node_from_uri_local_name</code> and
2762 <code>librdf_new_node_from_normalised_uri_string</code>
2763 now take a <code>const unsigned char*
2764 string</code> URI string.
2765 Constructors
2766 <code>librdf_new_node_from_literal</code> and
2767 <code>librdf_new_node_from_typed_literal</code>
2768 now take a <code>const unsigned char* string</code> RDF literal.
2769 Constructor <code>librdf_new_node_from_blank_identifier</code>
2770 now takes a <code>const unsigned char* string</code> blank node identifier.
2771 </p>
2772
2773 <p>Methods
2774 <code>librdf_node_get_literal_value</code>,
2775 <code>librdf_node_get_literal_value_as_counted_string</code> and
2776 <code>librdf_node_get_blank_identifier</code>
2777 now return a <code>const unsigned char* string</code> RDF literal,
2778 blank node identifier
2779
2780 </p>
2781
2782 <p>(Debugging methods <code>librdf_node_to_string</code> and
2783 <code>librdf_node_to_counted_string</code>where changed to return a
2784 <code>const unsigned char* string</code>)
2785 </p>
2786
2787
2788 <h3>Parser Class changes</h3>
2789
2790 <p>Added methods
2791 <code>librdf_parser_parse_counted_string_as_stream</code> and
2792 <code>librdf_parser_parse_counted_string_into_model</code>
2793 for parsing a string with a given length rather than
2794 a C NUL-terminated string.</p>
2795
2796
2797 <p>Methods
2798 <code>librdf_parser_parse_string_as_stream</code> and
2799 <code>librdf_parser_parse_string_into_model</code>
2800 now take a <code>const unsigned char* string</code> syntax buffer.
2801 </p>
2802
2803 <p>Methods
2804 <code>librdf_parser_get_feature</code>
2805 and <code>librdf_parser_set_feature</code>
2806 were modified to take and return <code>librdf_node*</code> values.
2807 </p>
2808
2809
2810 <h3>Query Class changes</h3>
2811
2812 <p>Constructor <code>librdf_new_query</code> now takes a <code>const
2813 unsigned char* string</code> query.
2814 </p>
2815
2816
2817
2818
2819 <h3>Serializer Class changes</h3>
2820
2821 <p>Added methods <code>librdf_serializer_get_feature</code> and
2822 <code>librdf_serializer_set_feature</code> taking and returning
2823 <code>librdf_node*</code> values like the methods for the model and
2824 parser classes.
2825 </p>
2826
2827
2828 <h3>Statement Class changes</h3>
2829
2830 <p>The statement objects are now usage counted like most other
2831 objects so they are cheap to copy. No user-API level changes
2832 are needed.</p>
2833
2834 <p>(Debugging method <code>librdf_statement_to_string</code> now
2835 returns a <code>const unsigned char* string</code>)
2836 </p>
2837
2838 <h3>URI Class changes</h3>
2839
2840 <p>Constructors
2841 <code>librdf_new_uri</code>,
2842 <code>librdf_new_uri_from_uri_local_name</code>,
2843 <code>librdf_new_uri_normalised_to_base</code> and
2844 <code>librdf_new_uri_relative_to_base</code>.
2845 now take a <code>const unsigned char* string</code> URI string.
2846 </p>
2847
2848 <p>Methods
2849 <code>librdf_uri_as_string</code>,
2850 <code>librdf_uri_as_counted_string</code>,
2851 <code>librdf_uri_to_string</code> and
2852 <code>librdf_uri_to_counted_string</code>
2853 now return a <code>const unsigned char* string</code> URI string.
2854 </p>
2855
2856
2857 <h3>Java API Changes</h3>
2858
2859 <p>Updated to match API changes above. Fixes for OSX 10.3</p>
2860
2861 <h3>Perl API changes</h3>
2862
2863 <p>Updated to match API changes above. Fixes for perl 5.8.1 and
2864 later which changed how <code>MakeMaker</code> installed. Let perl
2865 install the files rather than try to force it based on the prefix
2866 argument to configure. Make Parser method parse_string_into_model
2867 call the correct Redland function. Added OSX Java directories
2868 to JDK search path.</p>
2869
2870
2871 <h3>PHP API Changes</h3>
2872
2873 <p>Updated to match API changes above. Redland is now started up and
2874 shutdown once in the PHP module code and does not need to called
2875 directly.</p>
2876
2877
2878 <h3>Python API changes</h3>
2879
2880 <p>Updated to match API changes above. Fix Node literal_values
2881 to work with datatype URIs. Export the NS class. Added
2882 a FileStorage class for the storage type <code>file</code>.
2883 Removed use of the python Distutils which was often
2884 getting the linking wrong.
2885 </p>
2886
2887 <h3>Ruby API changes</h3>
2888
2889 <p>Updated to match API changes above.</p>
2890
2891 <h3>Tcl API changes</h3>
2892
2893 <p>Updated to match API changes above.</p>
2894
2895
2896 <h3>Other changes</h3>
2897
2898 <p>Redland now ships with both portable MD5 as well as (new in
2899 0.9.15) SHA1 digest implementations used if neither is available via
2900 an optimised library.</p>
2901
2902
2903 <h2 id="rel0_9_14"><a name="rel0_9_14">Redland 0.9.14 Changes</a></h2>
2904
2905 <p>This version of Redland is an update mostly to synchronise
2906 with the
2907 <a href="http://librdf.org/raptor/">Raptor</a> version 1.0.0 (RDF/XML and N-Triples parser) - see
2908 <a href="http://librdf.org/raptor/NEWS.html">Raptor NEWS</a>
2909 for the changes since 0.9.12.</p>
2910
2911 <p>New in this version is the <a href="utils/rdfproc.html">rdfproc</a> utility
2912 which allows command line creation of redland stores, parsing
2913 of syntaxes and manipulation of the model.</p>
2914
2915
2916 <h3>Configuration changes</h3>
2917
2918 <p>Added <code>--with-raptor</code> to either choose the system
2919 or internal raptor library. If omittted, redland will guess
2920 and choose either the system one, if new enough or the internal
2921 one (always present).</p>
2922
2923
2924 <h3>Hash Class changes</h3>
2925
2926 <p>Added a <code>librdf_hash_put_strings</code> helper method to put a pair of
2927 string values into a hash. Useful for making model or storage
2928 options.</p>
2929
2930 <h3>Node Class changes</h3>
2931
2932 <p>Resource (URI) / literal / blank nodes are now interned on
2933 construction so there is only one object for each distinct
2934 <code>librdf_node</code> object. This reduces memory and makes
2935 copying cheaper at the cost of an increase in construction cost.
2936 Copying nodes is very common, since not only is it done for nodes but
2937 any time a statement is used or returned. This interning was already
2938 done for the URI class but the change required
2939 <code>librdf_node</code> to be made immutable, which was done in
2940 0.9.13.</p>
2941
2942 <h3>Storage Class changes</h3>
2943
2944 <p>Added <code>librdf_storage_context_as_stream</code> deprecating
2945 <code>librdf_storage_context_serialise</code> to be consistent with the
2946 *as_stream method name changes to model.</p>
2947
2948 <p>Added <code>librdf_new_storage_with_options</code> taking an
2949 <code>librdf_hash*</code>
2950 of options rather than the string of <code>librdf_new_storage</code>.</p>
2951
2952 <p>Added new optional storage factory methods context_add_statements
2953 and context_remove_statements. If omitted, the storage class
2954 implements them with context_add_statement and context_remove_statement.</p>
2955
2956
2957 <h3>Stream and Iterator Classes changes</h3>
2958
2959 <p>Optimised the stream and iterator internals to do less factory
2960 method calls when looking for new items or the end of
2961 stream/iterator. This should make them slightly faster.</p>
2962
2963
2964 <h3>Miscellaneous changes</h3>
2965
2966 <p>Renamed Redland statics to be <code>librdf_*</code> rather than
2967 <code>redland_*</code>. Added a one-line
2968 librdf_short_copyright_string.</p>
2969
2970
2971 <h3>Perl API Changes</h3>
2972
2973 <p>Fixed the broken use of <tt>UNIVERSAL::isa</tt></p>
2974
2975
2976
2977 <h2 id="rel0_9_13"><a name="rel0_9_13">Redland 0.9.13 Changes</a></h2>
2978
2979 <p>This version of Redland is a major update to 0.9.12 changing the
2980 node class. <code>librdf_node</code> objects are now immutable once created,
2981 higher-level language APIs no longer have deal with sharing or
2982 copying internals, some additional API support for parsing content
2983 from strings.</p>
2984
2985 <p>This includes the stable and complete version 0.9.12 of the
2986 <a href="http://librdf.org/raptor/">Raptor parser</a>
2987 which supports all of the revised RDF/XML syntax.</p>
2988
2989 <p>Initial work was added on an ECMA CLI interface using
2990 the C# ("C sharp") language.</p>
2991
2992 <p>Blank nodes generated by parsing the syntaxes are now
2993 generated more unique (not guaranteed) based on the Redland
2994 startup time and a serial number.</p>
2995
2996 <p>The Perl, Python and Java APIs now always return new nodes
2997 and statements removing the need to consider sharing at this
2998 level. This means that the following operation is legal in
2999 Perl, Python and Java:</p>
3000 <pre>
3001 # perl
3002 $n=RDF::Redland::Node->from_uri("http://example.org/foo");
3003 $s=new RDF::Redland::Statement($n, $n, $n);
3004 $model->add($s);
3005
3006 # python
3007 n=RDF.Uri("http://example.org/foo")
3008 s=RDF.Statement(n, n, n) # n is used as a resource RDF.Node here
3009 model.add_statement(s)
3010 </pre>
3011
3012 <h3>Configuration</h3>
3013
3014 <p>Several improvements were made to the building and configuring
3015 including a better attempt to find matching Sleepycat/Berkeley DB
3016 header and library files (and support BDB up to 4.1), searching for
3017 installed Java JDKs and Tcl headers. Each of the language interfaces
3018 can be individually enabled to be build, tested and installed with
3019 the main C library.</p>
3020
3021
3022 <h3>Node Class changes</h3>
3023
3024 <p>The <code>librdf_node</code> class was modifed to make objects
3025 immutable once constructed, they cannot be modified. The following
3026 set methods were consequently removed.</p>
3027
3028 <ul>
3029 <li><code>librdf_node_set_blank_identifier</code></li>
3030 <li><code>librdf_node_set_li_ordinal</code></li>
3031 <li><code>librdf_node_set_literal_value</code></li>
3032 <li><code>librdf_node_set_type</code></li>
3033 <li><code>librdf_node_set_typed_literal_value</code></li>
3034 <li><code>librdf_node_set_uri</code></li>
3035 </ul>
3036
3037 <p>The following utility methods were added (covering
3038 all the <code>librdf_node_get_type</code> values):</p>
3039
3040 <ul>
3041 <li><code>librdf_node_is_blank</code> - return non-0 if the node is a blank node</li>
3042 <li><code>librdf_node_is_literal</code> - return non-0 if the node is a literal</li>
3043 <li><code>librdf_node_is_resource</code> - return non-0 if the node is a URI</li>
3044 </ul>
3045
3046 <p>(These are reflected into the same methods on
3047 the Perl, Python and Java node classes)</p>
3048
3049 <p><code>LIBRDF_NODE_TYPE_LI</code> as returned by <code>librdf_node_get_type</code>
3050 was deleted, it was never used.</p>
3051
3052 <p>To support datatyped literals, the following method was added:</p>
3053
3054 <ul>
3055 <li>librdf_node_get_literal_value_datatype_uri - get the typed literal datatype URI of the literal node</li>
3056 </ul>
3057
3058
3059 <h3>Model Class changes</h3>
3060
3061 <p>Added <code>ibrdf_model_sync</code> to sync the model to the backing store.</p>
3062
3063 <p>Added <code>librdf_model_as_stream</code> and
3064 <code>librdf_model_context_as_stream</code> to replace
3065 <code>librdf_model_context_serialise</code> and
3066 <code>librdf_model_context_serialize</code> respectively. This was
3067 done both to reduce the confusion with the
3068 <code>librdf_serializer</code> class and the mixture of US/UK
3069 spelling of that word. The old functions will remain for now.
3070 </p>
3071
3072
3073
3074 <h3>Parser Class changes</h3>
3075
3076 <p>Added <code>librdf_parser_parse_string_as_stream</code> and
3077 <code>librdf_parser_parse_string_into_model</code> to allow parsing
3078 content from strings.</p>
3079
3080
3081 <h3>Statement Class changes</h3>
3082
3083 <p>Added <code>librdf_statement_is_complete</code> to test if a
3084 statement has all the subject, predicate and object fields assigned.
3085 Partial statements cannot be added to a model but can be used in
3086 matching statement queries with
3087 <code>librdf_model_find_statements</code>.</p>
3088
3089
3090 <h3>Storage Class changes</h3>
3091
3092 <p>Added <code>librdf_storage_sync</code> to sync the backing store.
3093 (This is slightly internal to Redland, you should not be calling this
3094 directly)</p>
3095
3096
3097 <h3>Perl Interface Changes</h3>
3098
3099 <p>Updated to make the object constructors less verbose and to allow
3100 Redland URI objects and native perl URIs to be used in place of
3101 Redland Nodes where convienent (such as in making Statements). All
3102 existing code should work but can be shortened.
3103 A new <code>--with-perl</code> configure argument to enable the perl
3104 interface.
3105 </p>
3106
3107
3108 <h3>Python API changes</h3>
3109
3110 <p>A major update to use Python 2.2+ idioms and features by Edd
3111 Dumbill with help from Matt Biddulph for unit tests. A new
3112 <code>--with-python</code> configure argument to enable the python
3113 interface. Edd wrote the following change log.</p>
3114
3115 <p>General changes</p>
3116 <ul>
3117 <li>Removed string exceptions and replaced with RedlandError ones</li>
3118 <li>Where underlying Redland C objects were unexpectedly null, raise
3119 exceptions rather than returning None, "" or [] as appropriate.</li>
3120 <li>Raise exceptions if Redland C constructors fail in Python
3121 constructors.</li>
3122 <li>Did quite a lot of documentation updating, where possible
3123 demonstrating preferred Pythonic usages.</li>
3124 <li>Added more unit tests to test changed functionality.</li>
3125 </ul>
3126
3127 <h4>RDF.Node class</h4>
3128 <ul>
3129 <li>Constructor now accepts Uri to make a resource/property node, or
3130 a string to make a string literal</li>
3131 <li>Removed usage of node_type() in favour of is_resource(), is_blank()
3132 etc methods.</li>
3133 <li><strong>DEPRECATED</strong> get_blank_identifier() etc. methods in favour of
3134 node.blank_identifier etc properties. Raise exception if properties
3135 inconsistent with the node type are requested.</li>
3136 </ul>
3137
3138 <h4>RDF.Statement class</h4>
3139 <ul>
3140 <li>No need to name subject, predicate, object in constructor any more.
3141 Uris or string literals accepted in place of nodes in constructor
3142 argument.</li>
3143 <li>__getattr__ method deleted, using new-style property() for
3144 subject, predicate, object</li>
3145 </ul>
3146
3147 <h4>RDF.Model class</h4>
3148
3149 <ul>
3150 <li>Deleted get_*_iterator methods</li>
3151 <li>Renamed sources() to get_sources(), targets() to get_targets(),
3152 arcs() to get_predicates(). Retained old method names as aliases.</li>
3153 <li>Added get_sources_context(), get_targets_context(),
3154 get_predicates_context() which return (node, context) tuples.</li>
3155 <li>Amended get_source(), get_sources() etc methods so that Uri and
3156 string literals were acceptable as shortcut types for nodes.</li>
3157 <li>Added find_statements_context() which returns (statement, context)
3158 tuples.</li>
3159 <li>Renamed context_remove_statements() to
3160 remove_statements_with_context(). Retained old method name as an
3161 alias.</li>
3162 <li>Added __delitem__ method so del[statement] and del[statement,
3163 context] work.</li>
3164 <li>Added append() method so append(statement) and append(statement,
3165 context) work. Suggest that append() is used in preference to
3166 add_statement() for Python idiomatic usage.</li>
3167 <li><strong>DEPRECATED</strong> serialise() in favour of as_stream().</li>
3168 <li>Added as_stream_context() to serialise (statement, context) tuples.</li>
3169 <li>Exception raised if len() is attempted on model with a non-countable
3170 storage.</li>
3171 <li><strong>DEPRECATED</strong> Model.add(), Model.add_typed_literal_statement() usages:
3172 now that constructing Statements is easier, it's incongruous to have
3173 these in the model. Additionally it saves reproducing various bits
3174 of error checking that properly belong in the Node() constructor.</li>
3175 <li>Implemented __contains__() so "if statement in model" and
3176 "if (statement, context) in model" work as expected using the more
3177 efficient Redland C methods where possible.</li>
3178 </ul>
3179
3180 <h4>RDF.Stream class</h4>
3181
3182 <ul>
3183 <li><strong>DEPRECATED</strong> Stream.context_iter(). Use in preference the _context
3184 variants of the appropriate Model methods. This leads to fewer
3185 lines of code.</li>
3186 </ul>
3187
3188 <h4>RDF.Uri class</h4>
3189
3190 <ul>
3191 <li>Amended constructor so strings or Uri instances can be passed as
3192 the first argument, without named parameters being required, and
3193 the right thing still happen.</li>
3194 </ul>
3195
3196
3197 <h3>Java Interface Changes</h3>
3198
3199 <p>Additions for the new API calls as outlined above (such
3200 as model/storage sync, parsing from strings etc.). New configure
3201 argument <code>--with-jdk</code> to pick the JDK in order to
3202 find the JNI headers. See the <a href="docs/java.html">java API</a>
3203 page for details.</p>
3204
3205
3206 <h3>PHP, Ruby and Tcl Interfaces Changes</h3>
3207
3208 <p>Updates in configuring and building these interfaces and new
3209 <code>--with-php</code>, <code>--with-ruby</code> and <code>--with-tcl</code>
3210 configure arguments. See the corresponding API pages and
3211 installation documentation for details. Tcl now tries to guess the
3212 includes directories.</p>
3213
3214
3215 <h3>Internal changes and fixes</h3>
3216
3217 <ul>
3218 <li>Added Sleepycat/BDB 4.0 and 4.1 support - the open API changed again</li>
3219
3220 <li>Split the <code>librdf_model</code> class into model interface
3221 (<code>librdf_model</code>) and implementation class
3222 (<code>librdf_model_storage</code>).</li>
3223
3224 <li>Removed the old and outdated repat RDF parser.</li>
3225
3226 <li>Removed the very old expat XML parser from the sources;
3227 much newer or expat or libxml2 are very widespread.</li>
3228
3229 <li>Added simple thread support from patches by Seth Ladd with
3230 configuration option <code>--with-threads</code> that locks key shared
3231 classes to allow separate threads to work in the same memory
3232 space. The current locked classes are URI and World.</li>
3233
3234 <li>Deleting statements in the in-memory store now works.</li>
3235
3236 <li>Getting the context of iterators returned from in-memory
3237 sources, targets, arcs now works.</li>
3238
3239 </ul>
3240
3241
3242 <h2 id="rel0_9_12"><a name="rel0_9_12">Redland 0.9.12 Changes</a></h2>
3243
3244 <p>This version of Redland is a major update to 0.9.11 incorporating
3245 a much more improved, complete and stable version 0.9.7 of the
3246 <a href="http://librdf.org/raptor/">Raptor parser</a>
3247 and a significant new feature, contexts. The
3248 high-level language APIs received some updates and the start of two
3249 new languages APIs were added: <a href="docs/ruby.html">Ruby</a> and
3250 <a href="docs/php.html">PHP</a>.</p>
3251
3252 <p>Several incompatible API changes were made in this release that
3253 effect the C interface and all the higher level language APIs. These
3254 were made to support contexts and to fix some inconsistencies in the
3255 interface about object ownership.</p>
3256
3257 <p>The persistent storage format was changed to support RDF typed
3258 literals and this requires an upgrade of any existing
3259 Berkeley/Sleepycat DB stores created by Redland 0.9.11 or earlier. A
3260 utility <em>redland-db-upgrade</em> is provided that will create an
3261 updated store from an existing one.</p>
3262
3263 <p>A Perl script <a href="utils/update-api-0912.pl">utils/update-api-0912.pl</a>
3264 can help automate the API changes as far as possible or warn about those
3265 that cannot be automatically updated.</p>
3266
3267
3268 <h3>New Feature - Contexts</h3>
3269
3270 <p>This feature allows a Node to be given whenever a statement is
3271 added to a model which can can be retrieved from any model query that
3272 returns answers as an Iterator of Nodes or a Stream of Statements.
3273 Both of these classes gained a new method <code>get_context</code>
3274 that returns the original Node that was given when the statement
3275 corresponding to the answer was added to the model.</p>
3276
3277 <p>The context node can also be used to add and remove sets of
3278 statements to/from a model, and each statement with a given
3279 context node can be listed as a stream of statements.</p>
3280
3281 <p>Adding this feature required substantial internal changes to these
3282 two classes and the internal storage apis and implementations along
3283 with moderate code changes at the application level, which are
3284 described below.</p>
3285
3286 <p>This feature can be used for the following (not an exhaustive list):</p>
3287
3288 <ul>
3289 <li>Enable true graph merging / updating / demerging - identify the
3290 subgraphs with context nodes.</li>
3291 <li>Statement Identity - add each statement with a different context node</li>
3292 <li>Statement Provenance - use the context node as the subject of
3293 other statements about the statement that is returned.</li>
3294 </ul>
3295
3296
3297 <h3>Iterator Class Changes</h3>
3298
3299 <p>The <a href="docs/api/iterator.html">Iterator</a>
3300 <code>get_next</code> method was split into <code>get_object</code>
3301 always returning a pointer to a shared object and the
3302 <code>next</code> method to advance the iterator.
3303 The <code>get_object</code> method is generally called
3304 <code>current</code> in the higher level language APIs.</p>
3305
3306 <p>(Iterator and Stream now have consistent method names; they
3307 may be merged in future.)</p>
3308
3309 <p>The <code>get_object</code> method now always returns a pointer to
3310 a shared object. If this object is needed outside the scope of an
3311 iteration, it must be copied, which for Nodes is the copy constructor
3312 <code>librdf_new_node_from_node</code>.</p>
3313
3314 <p>C example for Redland 0.9.11 and earlier:</p>
3315 <pre>
3316 while(!librdf_iterator_end(iterator)) {
3317 node=(librdf_node*)librdf_iterator_get_next(iterator);
3318 /* do something with the node */
3319 }
3320 </pre>
3321
3322 <p>Redland 0.9.12:</p>
3323 <pre>
3324 while(!librdf_iterator_end(iterator)) {
3325 node=(librdf_node*)librdf_iterator_get_object(iterator);
3326 /* do something with the node */
3327 librdf_iterator_next(iterator);
3328 }
3329 </pre>
3330
3331 <p>A new method <code>get_context</code> was added returning a Node
3332 for the context of the original Statement that generated the Iterator
3333 Node.</p>
3334
3335 <p>C Iterator context example:</p>
3336 <pre>
3337 while(!librdf_iterator_end(iterator)) {
3338 node=(librdf_node*)librdf_iterator_get_object(iterator);
3339 context_node=(librdf_node*)librdf_iterator_get_context(iterator);
3340 /* do something with the node and its context */
3341 librdf_iterator_next(iterator);
3342 }
3343 </pre>
3344
3345
3346
3347 <h3>Model Class Changes</h3>
3348
3349 <p>The <a href="docs/api/model.html">Model</a>
3350 <code>add_statement</code> method no longer takes ownership of the
3351 passed in statement object. The caller now retains ownership and can
3352 reuse the statement several times and has responsibility for freeing it
3353 if need be (when it isn't shared).</p>
3354
3355 <p>C example for Redland 0.9.11 and earlier:</p>
3356 <pre>
3357 librdf_model_add_statement(model, statement);
3358 </pre>
3359
3360 <p>Redland 0.9.12:</p>
3361 <pre>
3362 librdf_model_add_statement(model, statement);
3363 librdf_free_statement(statement);
3364 </pre>
3365
3366
3367 <p>C streaming statement example for Redland 0.9.11 and earlier:</p>
3368 <pre>
3369 while(!librdf_stream_end(stream)) {
3370 librdf_statement *statement=librdf_stream_next(stream);
3371 /* This statement is new, so could be added directly */
3372 librdf_model_add_statement(model, statement);
3373 }
3374 </pre>
3375
3376 <p>Redland 0.9.12:</p>
3377 <pre>
3378 while(!librdf_stream_end(stream)) {
3379 librdf_statement *statement=librdf_stream_get_object(stream);
3380 /* This statement is now shared so can still be just added */
3381 librdf_model_add_statement(model, statement);
3382 }
3383 </pre>
3384
3385
3386 <p><code>librdf_model_add_string_literal_statement</code> lost the
3387 xml_space argument.</p>
3388
3389 <p>A new method was added to add a Statement with
3390 an RDF datatyped literals object:</p>
3391 <pre>
3392 int librdf_model_add_typed_literal_statement(librdf_model* model,
3393 librdf_node* subject,
3394 librdf_node* predicate,
3395 char* string, char *xml_language, librdf_uri *datatype_uri);
3396 </pre>
3397
3398 <p>This should be used in preference to
3399 <code>librdf_model_add_string_literal_statement</code> which remains
3400 in the API as a wrapper around the above.</p>
3401
3402 <p>New methods were added to add, remove and list Statements to contexts.</p>
3403
3404 <pre>
3405 /* Add a single statement to the model with context */
3406 int librdf_model_context_add_statement(librdf_model* model,
3407 librdf_node* context, librdf_statement* statement);
3408
3409 /* Add all statements on the stream to the model with context */
3410 int librdf_model_context_add_statements(librdf_model* model,
3411 librdf_node* context, librdf_stream* stream);
3412
3413 /* Remove a single statement from the model with the given context */
3414 int librdf_model_context_remove_statement(librdf_model* model,
3415 librdf_node* context, librdf_statement* statement);
3416
3417 /* Remove all statements from the model with given context */
3418 int librdf_model_context_remove_statements(librdf_model* model,
3419 librdf_node* context);
3420
3421 /* List all statements in the model with the given context */
3422 librdf_stream* librdf_model_context_serialize(librdf_model* model,
3423 librdf_node* context);
3424 </pre>
3425
3426
3427 <h3>Node Class Changes</h3>
3428
3429 <p>The <a href="docs/api/node.html">Node</a> class gained a new constructor:</p>
3430 <pre>
3431 librdf_node* librdf_new_node_from_typed_literal(
3432 librdf_world *world,
3433 const char *string,
3434 const char *xml_language,
3435 librdf_uri* datatype_uri);
3436 </pre>
3437
3438 <p>that should be used in preference to
3439 <code>librdf_new_node_from_literal</code> which remains in the API as
3440 a wrapper around the above. </p>
3441
3442 <p><code>librdf_node_new_nodefrom_literal</code> lost the
3443 xml_space argument.</p>
3444
3445
3446 <h3>Parser Class Changes</h3>
3447
3448 <p>The <a href="docs/api/parser.html">Parser</a> class has an updated
3449 <a href="http://librdf.org/raptor/">Raptor parser</a>
3450 version 0.9.7 - parsers named <code>raptor</code> for RDF/XML
3451 (MIME Type <code>application/rdf+xml</code>)
3452 and <code>ntriples</code> for N-Triples. See the
3453 <a href="http://librdf.org/raptor/NEWS.html">Raptor NEWS</a>
3454 for the detailed changes since 0.9.5 in the last release of Redland.</p>
3455
3456 <p>The Java SiRPAC parsers <code>sirpac-stanford</code>,
3457 <code>sirpac-w3c</code> and the W3C LibWWW parser <code>libwww</code>
3458 have been removed. Raptor replaces them.</p>
3459
3460
3461 <h3>Serializer Class Changes</h3>
3462
3463 <p>The <a href="docs/api/serializer.html">Serializer</a> class
3464 gained a new method:</p>
3465
3466 <pre>
3467 int librdf_serializer_serialize_model_to_file(
3468 librdf_serializer* serializer,
3469 const char *name,
3470 librdf_uri* base_uri,
3471 librdf_model* model);
3472 </pre>
3473
3474 <p>This writes the serialized model to a filename
3475 (rather than a file handle as done by
3476 <code>librdf_serializer_serialize_model</code>)
3477 which is easier to use from higher level language APIs until a
3478 cross-language I/O abstraction is available.</p>
3479
3480 <p>The class gained an RDF/XML serializer that can be called
3481 either by the name <code>rdfxml</code> or the
3482 MIME Type <code>application/rdf+xml</code>. The
3483 examples in each language have been updated to demonstrate
3484 using this.</p>
3485
3486
3487 <h3>Storage Class Changes</h3>
3488
3489 <p>The built in storage factories (<code>memory</code>,
3490 <code>hashes</code>) now both support contexts. These are enabled by
3491 adding the storage option <code>contexts='yes'</code> to the options
3492 string. The hashes storage additionally supports indexing predicates
3493 as an extra hash which can be enabled with <code>index-predicates='yes'</code>.
3494 This makes triple queries of the form
3495 (subject unknown, predicate known, object unknown) fast.
3496 </p>
3497
3498 <p>C Example of creating a 0.9.12 storage that does contexts using
3499 on-disk Berkeley/Sleepycat DB:</p>
3500 <pre>
3501 storage=librdf_new_storage(world,
3502 "hashes",
3503 name,
3504 "hash-type='bdb',write='yes',new='yes',contexts='yes'");
3505 </pre>
3506
3507
3508 <h3>Stream Class Changes</h3>
3509
3510 <p>The <a href="docs/api/stream.html">Stream</a>
3511 <code>next</code> method was split into <code>get_object</code>
3512 always returning a pointer to a shared Statement and the
3513 <code>next</code> method to advance the iterator.
3514 The <code>get_object</code> method is generally called
3515 <code>current</code> in the higher level language APIs.</p>
3516
3517 <p>(Iterator and Stream now have consistent method names; they
3518 may be merged in future.)</p>
3519
3520
3521 <p>C example for Redland 0.9.11 and earlier:</p>
3522 <pre>
3523 while(!librdf_stream_end(stream)) {
3524 statement=(librdf_statement*)librdf_stream_next(stream);
3525 /* do something with the statement */
3526 }
3527 </pre>
3528
3529 <p>Redland 0.9.12:</p>
3530 <pre>
3531 while(!librdf_stream_end(stream)) {
3532 statement=(librdf_statement*)librdf_stream_get_object(stream);
3533 /* do something with the statement */
3534 librdf_stream_next(stream);
3535 }
3536 </pre>
3537
3538
3539 <p>A new method <code>get_context</code> was added returning a Node
3540 for the context of the Statement.</p>
3541
3542 <p>C Stream context example:</p>
3543 <pre>
3544 while(!librdf_stream_end(stream)) {
3545 statement=(librdf_statement*)librdf_stream_get_object(stream);
3546 context_node=(librdf_node*)librdf_stream_get_context(iterator);
3547 /* do something with the statement and its context node */
3548 librdf_stream_next(stream);
3549 }
3550 </pre>
3551
3552
3553
3554 <h3>Perl Interface Changes</h3>
3555
3556 <p>The <a href="docs/perl.html">Perl</a> interface
3557 moved to the <code>RDF::Redland</code> package (the <code>RDF</code>
3558 namespace was deprecated in 0.9.11).</p>
3559
3560 <p>The interface was updated to receive Redland error and warning
3561 messages callbacks. These can be set using the
3562 <code>RDF::Redland::set_error_handler</code>
3563 and <code>RDF::Redland::set_warning_handler</code> subroutines
3564 taking a subroutine argument. They are called with a single
3565 scalar argument which is the Redland message.</p>
3566
3567 <p>The interface was updated to match the Interator and Stream
3568 changes described above.</p>
3569
3570 <p>Perl iterator example for Redland 0.9.11 and earlier:</p>
3571 <pre>
3572 while(!$iterator->end) {
3573 my $node=$iterator->next;
3574 # do something with the node
3575 }
3576 </pre>
3577
3578 <p>Redland 0.9.12:</p>
3579 <pre>
3580 while(!$iterator->end) {
3581 my $node=$iterator->current;
3582 # do something with the node
3583 $iterator->next;
3584 }
3585 </pre>
3586
3587
3588 <p>Perl stream example for Redland 0.9.11 and earlier:</p>
3589 <pre>
3590 while(!$stream->end) {
3591 my $statement=$stream->next;
3592 # do something with the statement
3593 }
3594 </pre>
3595
3596 <p>Redland 0.9.12:</p>
3597 <pre>
3598 while(!$stream->end) {
3599 my $statement=$stream->current;
3600 # do something with the statement
3601 $stream->next;
3602 }
3603 </pre>
3604
3605
3606 <p>Perl example of using the Serializer class:</p>
3607
3608 <pre>
3609 # Use any rdf/xml parser that is available
3610 my $serializer=new RDF::Redland::Serializer("rdfxml");
3611 $serializer->serialize_model_to_file("output.rdf", $uri, $model);
3612 </pre>
3613
3614
3615 <h3>Python API Changes</h3>
3616
3617 <p>The <a href="docs/python.html">Python</a> interface
3618 gained pydoc comments, along with an
3619 <a href="docs/pydoc/RDF.html">HTML derived version</a>.
3620 </p>
3621
3622 <p>The interface was updated to receive Redland error and warning
3623 messages callbacks as python exceptions. These can be caught
3624 using the standard python try {} catch {} blocks.</p>
3625
3626 <p>The interface was updated to match the Interator and Stream
3627 changes described above.</p>
3628
3629 <p>Python iterator example for Redland 0.9.11 and earlier:</p>
3630 <pre>
3631 while not iterator.end():
3632 node=iterator.next()
3633 # do something with the node
3634 </pre>
3635
3636 <p>Redland 0.9.12:</p>
3637 <pre>
3638 while not iterator.end():
3639 node=iterator.current()
3640 # do something with the node
3641 iterator.next()
3642 </pre>
3643
3644
3645 <p>Python stream example for Redland 0.9.11 and earlier:</p>
3646 <pre>
3647 while not stream.end():
3648 statement=stream.next()
3649 # do something with the statement
3650 </pre>
3651
3652 <p>Redland 0.9.12:</p>
3653 <pre>
3654 while not stream.end():
3655 statement=stream.current()
3656 # do something with the statement
3657 stream.next()
3658 </pre>
3659
3660
3661 <p>Python example of using the Serializer class:</p>
3662
3663 <pre>
3664 # Use any rdf/xml parser that is available
3665 serializer=RDF.Serializer()
3666 serializer.serialize_model_to_file("output.rdf", model)
3667 </pre>
3668
3669
3670
3671 <h3>Java Interface Changes</h3>
3672
3673 <p>The <a href="docs/java.html">Java</a> classes were updated to have
3674 a <code>finished()</code> method that the user can call to cleanup
3675 objects replacing the rather useless Java <code>finalize()</code>
3676 method that gives no guarantees to when it is called.</p>
3677
3678 <p>The Java API is still experimental and may change further.</p>
3679
3680
3681 <h2 id="rel_older"><a name="rel_older">Redland 0.9.1 - Redland 0.9.11 Changes</a></h2>
3682
3683 <p>Release notes for 0.9.11 and earlier are in the
3684 <a href="NEWS.html">NEWS page</a> or
3685 <a href="ChangeLog">ChangeLog</a>
3686 </p>
3687
3688
3689
3690 <hr />
3691
3692 <p>Copyright (C) 2000-2013 <a href="http://www.dajobe.org/">Dave Beckett</a><br />Copyright (C) 2000-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p>
3693
3694 </body>
3695 </html>