forked from dajobe/librdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRELEASE.html
3166 lines (2333 loc) · 106 KB
/
RELEASE.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Redland librdf RDF API Library - Release Notes</title>
<style type="text/css">
<!--
pre
{
margin: 1em 4em 1em 4em;
background-color: #eee;
padding: 0.5em;
border-color: #006;
border-width: 1px;
border-style: dotted;
}
-->
</style>
</head>
<body>
<h1>Redland librdf RDF API Library - Release Notes</h1>
<h2 id="rel1_0_12"><a name="rel1_0_12">Redland 1.0.12 Changes</a></h2>
<p>The main changes in this release are:</p>
<ul>
<li>Enable <code>librdf.h</code> to be used as the top-level header in addition to <code>redland.h</code></li>
<li>Fix linking issues when building with GNU ld with DT_NEEDED disabled</li>
</ul>
<p>Issues Fixed:</p>
<ul>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=348">Issue #0000348</a>: linking failure fix</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=391">Issue #0000391</a>: librdf_free_foo(0)</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=392">Issue #0000392</a>: librdf_stream_get_context returns void*</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=393">Issue #0000393</a>: librdf_storage_hashes_context_serialise_get_statement</li>
</ul>
<h3>General changes</h3>
<p>The main header file for Redland librdf is <code>redland.h</code>
but some applications used <code>librdf.h</code> direct, which no
longer works in 1.0.11 since some Rasqal symbols were needed.
<code>librdf.h</code> now includes the raptor and rasqal headers and
<code>redland.h</code> is a simple wrapper around librdf.h
</p>
<p>Redland librdf now links with symbols in libraries used indirectly (only
Raptor) to help systems that use GNU ld with a different linking
model to previous versions. This is quite technical and hard to
understand but see Fedora's
<a href="http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking">change in implicit DSO linking</a> and
<a href="http://fedoraproject.org/wiki/UnderstandingDSOLinkChange">Understanding the (Proposed) Change to DSO Linking</a>
that were introduced in Fedora Core 13 released in February 2010.
Redland librdf was packed with patches to fix this, which are now merged
into the sources.
</p>
<h3>Stream Class changes</h3>
<p>Added <code>librdf_stream_get_context2()</code> returning a
<code>librdf_node*</code> deprecating
<code>librdf_stream_get_context()</code> that returns a void pointer.
Fixes
<a href="http://bugs.librdf.org/mantis/view.php?id=392">Issue #0000392</a>.
</p>
<h3>SWIG Bindings Interface</h3>
<p>Export <code>librdf_statement_is_complete</code> to bindings languages.
Fixes
<a href="http://bugs.librdf.org/mantis/view.php?id=329">Issue #0000329</a>
</p>
<h3>Configuration changes</h3>
<p>Rasqal minimum version has been 0.9.19 for some time but is now
enforced in <code>configure</code>.</p>
<p>Updated <code>configure</code> to work with newer autoconf that
enforces <code>AC_LANG_SOURCE</code>.
</p>
<h3>Other changes</h3>
<p>Updated examples to build with Raptor V2 also.
</p>
<p>The node and statement destructors for the Raptor V2 build now
allow NULL pointers like the Raptor V1 versions.
Related to
<a href="http://bugs.librdf.org/mantis/view.php?id=391">Issue #0000391</a>
which had already been fixed for other classes.
</p>
<h2 id="rel1_0_11"><a name="rel1_0_11">Redland 1.0.11 Changes</a></h2>
<p>The main changes in this release are:</p>
<ul>
<li>Virtuoso storage backend querying now fully works</li>
<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>
<li>Several new convenience APIs were added</li>
<li>Several APIs were deprecated for better APIs calls</li>
</ul>
<p>Issues Fixed:</p>
<ul>
<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>
<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>
<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>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=334">Issue #0000334</a>: rdfproc chatters unmercifully; hard to use in scripts</li>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=341">Issue #0000341</a>: undefined symbol error from virtuoso storage .so</li>
<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>
<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>
<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>
<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>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=380">Issue #0000380</a>: SPARQL queries using Virtuoso do not work</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=382">Issue #0000382</a>: simple graph query returns no results</li>
<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>
</ul>
<h3>Raptor V2 API support</h3>
<p>This release adds support for building with Raptor V2 API as an
alternate to the Raptor V1 API. When built with Raptor V2 , librdf
uses the Raptor V2 URI, Term and Statement to fully implement the
librdf equivalents. Specifically when this is enabled the following
are typedefed as equivalent:</p>
<ul>
<li><code>librdf_uri</code> = <code>raptor_uri</code></li>
<li><code>librdf_node</code> = <code>raptor_term</code></li>
<li><code>librdf_statement</code> = <code>raptor_statement</code></li>
</ul>
<h3>Configuration and build changes</h3>
<p>Added <code>--enable-raptor2</code> to enable librdf to build with
Raptor V2 API. This requires a rasqal built with Raptor V2 API (with
the <code>--enable-raptor2</code> argument to Rasqal's
<code>configure</code>). The librdf <code>configure</code> will
check that Rasqal was built this way and only enable Raptor V2 API
support if it will work.
</p>
<p>The minimum Raptor version is now 1.4.19 (or Raptor V2 beta 1.9.0+)
</p>
<p>Tests now use the in-memory storage if the BDB (Sleepycat DB)
storage is not available.
</p>
<p>Updated to prevent an error when used with autoconf 2.68+</p>
<h3>Hash Class Changes</h3>
<p>Exposed <code>librdf_hash_from_string()</code> function to public
API for converting from a string to a <code>librdf_hash</code>
object. This is useful for building storage options.
</p>
<p>Added <code>librdf_hash_to_string()</code> function for converting
a <code>librdf_hash</code> back ito a string, intended to be the
opposite of <code>librdf_string_to_hash()</code> and takes a filter
arg to help hide arguments such as 'password'.</p>
<h3>Log Class Changes</h3>
<p>Added a <code>LIBRDF_FROM_RAPTOR</code> log facility.
</p>
<h3>Model Class Changes</h3>
<p>Added <code>librdf_model_write()</code> deprecating
<code>librdf_model_print()</code> debug routine.
</p>
<h3>Node Class Changes</h3>
<p>Added <code>librdf_new_node_from_counted_uri_string()</code>
to make an RDF node from a URI string and length avoiding a <code>strlen()</code>.
</p>
<p>Added <code>librdf_node_get_counted_blank_identifier()</code>
to return ID with length.
</p>
<p>Added <code>librdf_new_node_from_counted_blank_identifier()</code>
with counted ID string.
</p>
<p>Added <code>librdf_node_new_static_node_iterator()</code> with
world arg added deprecating
<code>librdf_node_static_iterator_create()</code> without it.
</p>
<p><code>librdf_node_write()</code> added to write a redland node to
an iostream, formatted as N-Triples.</p>
<p>Adjusted <code>librdf_node_print()</code> to use
<code>librdf_node_write()</code>. If anyone was relying on this
unsupported debug format, this changes the result. Fixes
<a href="http://bugs.librdf.org/mantis/view.php?id=124">Issue#0000124</a>
</p>
<p>Deprecate <code>librdf_node_to_string()</code>,
<code>librdf_node_to_counted_string()</code> for
<code>librdf_node_write()</code> since these were really only meant
for internal use.</p>
<p>Adjusted <code>librdf_node_to_string()</code>,
<code>librdf_node_to_counted_string()</code> to use construct an
iostream to a string and use <code>librdf_node_write()</code> to
create the strings. Thus the format is now an N-Triples term rather
than the older debug format. These functions are still for debugging
and deprecated for <code>librdf_node_write()</code>.
</p>
<h3>Query Class Changes</h3>
<p>Fix rasqal query engine integration to allow querying over
the Redland graph names (context URIs) and binding variables to the names.
Fixes
<a href="http://bugs.librdf.org/mantis/view.php?id=382">Issue #000382</a>.
</p>
<p>Fix query engine to prevent runtime warning for models with no
contexts (graphs) when using GRAPH in a query.
</p>
<p>Added <code>librdf_query_languages_enumerate()</code> function
to list supported query languages.
</p>
<p>Made the Virtuoso storage engine (name 'virtuoso') use the internal
Rasqal query results formatting API rather than an internal copy of
a few query result formatters.
</p>
<h3>Query Results Class Changes</h3>
<p>Added
<code>librdf_new_query_results_formatter2()</code> with
name, mime type and fomrat URI args deprecating
<code>librdf_new_query_results_formatter()</code> and
<code>librdf_new_query_results_formatter_by_mime_type()</code>
with a mixture.
</p>
<p>Altered all query result formatters to all take format name,
mime_type and uri args. Added
<code>librdf_query_results_to_counted_string2()</code>,
<code>librdf_query_results_to_string2()</code>,
<code>librdf_query_results_to_file_handle2()</code>,
<code>librdf_query_results_to_file2()</code> deprecating the
functions without the 2 suffix.
</p>
<h3>Serializer Class Changes</h3>
<p><code>librdf_serializer_serialize_stream_to_iostream()</code> and
<code>librdf_serializer_serialize_model_to_iostream()</code> now
document their ownership transfer of the <code>raptor_iostream</code>
object. Fixes
<a href="http://bugs.librdf.org/mantis/view.php?id=372">Issue #0000372</a>
</p>
<h3>Statement Class Changes</h3>
<p>Added <code>librdf_statement_encode2()</code>,
<code>librdf_statement_encode_parts2()</code>,
<code>librdf_statement_decode2()</code> taking a world arg,
deprecating those without the 2 suffx and no world arg.
</p>
<p>Added <code>librdf_statement_write()</code>
using <code>librdf_node_write()</code> to format the statement as
N-Triples.
</p>
<p>Adjusted <code>librdf_statement_to_string()</code> to
use librdf_statement_write() to write statement in N-Triples format
rather than the previous format.
</p>
<h3>Stream Class Changes</h3>
<p>Added <code>librdf_stream_write()</code> deprecating
<code>librdf_stream_print()</code> debug routine.
</p>
<h3>Storage Class Changes</h3>
<p><code>librdf_storage_context_remove_statement()</code> now checks
that statement is non-NULL and allows NULL context. Now matches
function spec.
</p>
<p>Storage Postgresql (name 'postgresql'). Fix the
contains-statement method as called by
<code>librdf_storage_contains_statement()</code> to work using patch
from Andrew Malton - thanks.
</p>
<p>Storage Trees (name 'trees'). Fix the crash bug when comparing
nodes one of which has a language and the other doesn't.
<a href="http://bugs.librdf.org/mantis/view.php?id=350">Issue #0000350</a>.
</p>
<p>Storage Virtuoso (name 'virtuoso'). Fix to use the internal Rasqal
query formatting API to allow returning any result format. This is
not using a very efficient mechanism since it results in about 3
copies of the result set: in librasqa;, librdf and virtuoso but it
works and does not duplicate code. Update the storage to support
newer Virtuoso versions such as recent ODBC extensions. Added support
for
<code>SQL_DESC_COL_LITERAL_LANG</code>
<code>SQL_DESC_COL_LITERAL_TYPE</code> and
<code>SQL_DESC_COL_BOX_FLAGS</code> from
Virtuoso ODBC Implementation -
<a href="http://docs.openlinksw.com/virtuoso/odbcimplementation.html#virtodbcsparql">Virtuoso ODBC RDF Extensions for SPASQL</a>.
Tested with Virtuoso 5.0.13 open source edition.
</p>
<h3>URI Class Changes</h3>
<p>Added <code>librdf_new_uri2()</code> taking a counted URI string
argument, avoiding <code>strlen()</code>s.
</p>
<h3>World Class Changes</h3>
<p>Export <code>librdf_world_set_raptor()</code> and
<code>librdf_world_get_raptor()</code> to get/set the raptor world.
These are only used when librdf is built with Raptor V2.
</p>
<h3>Internal changes</h3>
<p><code>struct librdf_query_factory_s</code> methods
<code>new_results_formatter</code> and
<code>new_results_formatter_by_mime_type</code> are replaced by one
<code>new_results_formatter</code> method that takes name, mime type
and format URI args. It also gains a
<code>new_results_formatter2</code> factory method for query results
formatting. The only implementor of this factory is the internal
Rasqal query results formatter.
</p>
<h3>Language Bindings (SWIG) changes</h3>
<p>Exposed several functions (some new) that make sense to
higher-level libraries bound to librdf via SWIG:</p>
<ul>
<li><code>librdf_hash_from_string()</code> to build a hash from a string; useful for encoding storage options.</li>
<li><code>librdf_hash_to_string()</code> to turn a hash into a string; useful for decoding storage options.</li>
<li><code>librdf_model_add_typed_literal_statement()</code> to add a typed literal statement direct to a graph.</li>
<li><code>librdf_new_node_from_normalised_uri_string()</code> to create a URI node.</li>
<li><code>librdf_new_node_from_uri_local_name()</code> to create a URI node</li>
<li><code>librdf_node_get_li_ordinal()</code> to get the 1 from a rdf:_1 predicate node.</li>
<li><code>librdf_parser_check_name()</code> for checking parser names.</li>
<li><code>librdf_query_results_is_syntax()</code> to check if query result is a syntax.</li>
<li><code>librdf_query_results_to_file2()</code> supplementing the deprecated <code>librdf_query_results_to_file()</code></li>
<li><code>librdf_query_results_to_string2()</code> supplementing the deprecated <code>librdf_query_results_to_string()</code></li>
<li><code>librdf_serializer_check_name()</code> for checking serializer names.</li>
<li><code>librdf_serializer_serialize_stream_to_file()</code> to go along with it's pair that serializes a model to a file.</li>
<li><code>librdf_serializer_serialize_stream_to_string()</code> to go along with the pair that serializes a model to string.</li>
<li><code>librdf_world_set_logger()</code> to set for logging callbacks.</li>
</ul>
<h3>Other changes</h3>
<p><code>rdfproc(1)</code> utility now send non-result information
messages to stderr, indented to make this more useful for scripting.
It also gains '-q' (--quiet) and '-V' options (--verbose) to control
this output - entirely removing it (quiet) or being more verbose.
That is '-q -v' is equivalent to the default verbosity. Change based
on patch by Norman Gray in issue - thanks! Fixes
<a href="http://bugs.librdf.org/mantis/view.php?id=334">Issue #0000334</a>
</p>
<p><code>rdfproc(1)</code> utility now fails with error when using -n
(make a new storage) to a read only operation such as a query. Fixes
<a href="http://bugs.librdf.org/mantis/view.php?id=383">Issue #0000383</a>.
</p>
<p>Switched to GIT source control.
</p>
<p>Added HACKING.md documenting code style.
</p>
<p>Added <code>examples/example8.c</code> to show how to serializer
query results to strings when queries return either variable bindings
or triples forms.
</p>
<h2 id="rel1_0_10"><a name="rel1_0_10">Redland 1.0.10 Changes</a></h2>
<p>The main changes in this release are:</p>
<p>Added a <a href="http://sourceforge.net/projects/virtuoso/">Virtuoso</a> storage by Patrick van Kleef<br />
Support <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.17 API<br />
Fix compiling against sqlite 3.6.17 or newer<br />
Fix modular storage dynamic loading linking problems.
</p>
<p>Building requires installed Raptor (1.4.17 or newer) and Rasqal
(0.9.16 or newer) libraries, preferably with <code>pkg-config</code>
to provide the compile/link details.
</p>
<p>Issues Fixed:</p>
<ul>
<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>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=311">Issue #0000311</a>: Incorrect literal comparison in tree structure</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=315">Issue #0000315</a>: cannot compile library on linux 2.6.31</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=317">Issue #0000317</a>: rdf_init_test fails if threads are enables</li>
</ul>
<h3>Configuration and build changes</h3>
<p>Default to environment LIBS, CPPFLAGS, LDFLAGS in
<code>configure</code> to address Gentoo issue
<a href="http://bugs.gentoo.org/show_bug.cgi?id=267405">267405</a>
</p>
<p>Make redland-src-config work for external raptor and rasqal again.
This is for the maintainers only.
</p>
<p>Put modular build libltdl includes and libs into INTERNAL macros
</p>
<h3>Parser Class Changes</h3>
<p><code>librdf_parser_check_name()</code> added to check if a parser name is
valid:</p>
<pre>
int librdf_parser_check_name(librdf_world* world, const char *name);
</pre>
<h3>Query Class Changes</h3>
<p>Support Rasqal 0.9.17 API changes including versioned triple
factory and triple sources, <code>RASQAL_LITERAL_UDT</code>
user-defined datatype literals. Use
<code>rasqal_literal_get_rdf_term_type</code> when available or
fall back to internal version.
</p>
<h3>Serializer Class Changes</h3>
<p><code>librdf_serializer_check_name()</code> added to check if a
serializer name is valid:</p>
<pre>
int librdf_serializer_check_name(librdf_world* world, const char *name);
</pre>
<h3>Storage Class Changes</h3>
<p>Update storage module link dependencies so that they depend on
librdf library to prevent unresolved symbol errors.
</p>
<p>More validation of storage module names.</p>
<p>Storages 'file' and 'uri'. These get new storage option
<code>format</code> with a name value to set the on disk / remote
URI) syntax format. For the both storages it has to be a legal
parser name and for the file storage it has to be a legal serializer
name too. This pretty much limits the values to ntriples, rdfxml and
turtle for the file storage (depending on how raptor is built).
</p>
<p>Storage 'postgresql'. Replace deprecated PQescapeString with
PQescapeStringConn that takes a PGconn connection handle and when
encoding takes into consideration any connection properties such as
character encodings in force.</p>
<p>Storage 'sqlite'. Change define SQLITE_API to REDLAND_SQLITE_API
to allow redland to compile with sqlite 3.6.17 or newer where the
SQLITE_API macro is defined. Thanks to Samuli Suominen for the
report and fix.
</p>
<p>Storage 'virtuoso'. Added a <a href="http://sourceforge.net/projects/virtuoso/">Virtuoso</a> storage patch from
<a href="http://bugs.librdf.org/mantis/view.php?id=284">Issue#0000284</a>
by Patrick van Kleef with some parts omitted for passing through
SPARQL queries that used rasqal internals.
</p>
<h3>Other changes</h3>
<p>Export the list helper class to the public API, primarily for use
by external storage modules.
</p>
<p><code>rdfproc</code> utility: for the 'parse' command, get the
warning count from the warning_count_node, not the (just freed)
error_count_node.</p>
<p>Fix totally bogus memset in <code>librdf_cache_set_common()</code>
that zeroed junk on the stack rather than the memory expected.
</p>
<h2 id="rel1_0_9"><a name="rel1_0_9">Redland 1.0.9 Changes</a></h2>
<p>The main changes in this release are:</p>
<p>Made storages modular by default - separate dynamically loaded
modules discovered from presence in the
<em>PREFIX</em><code>/lib/redland</code> directory.
or from the directory defined in the
<code>REDLAND_MODULE_PATH</code> environment variable directory.
</p>
<p>Building requires installed Raptor (1.4.18 or newer) and Rasqal libraries.
</p>
<p>Issues Fixed:</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=272">Issue #0000272</a>: Casts for g++</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=282">Issue #0000282</a>: Documentation fixes</li>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=285">Issue #0000285</a>: <code>librdf_storage_postgresql_get_contexts()</code> fix</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=286">Issue #0000286</a>: multiple postgresql storage fixes.</li>
</ul>
<h3>General Changes</h3>
<p>Developer builds from Subversion now require libtool 2.2.0 or
newer to <code>libtoolize</code> from <code>configure.ac</code>.</p>
<p><code>configure</code> now discovers Berkeley DB 4.7</p>
<p><code>configure</code> options <code>--with-raptor=internal</code>
and <code>--with-rasqal=internal</code> were removed.
</p>
<p>Removed openssl digest support - not used much and an extra large
dependency. MD5 and SHA1 remain builtin.
</p>
<h3>Statement Class Changes</h3>
<p>Fix to <code>librdf_statement_encode_parts()</code> for buffer
overrun error that could occur with certain size buffers. Patch from
Lou Sakey - thanks.
</p>
<h3>Storage Class Changes</h3>
<p>Made the redland storage module API
<code>librdf_storage_factory</code> public. What was called the
storage <em>context</em> is now less confusingly called the storage
<em>instance</em>.
</p>
<p>Moved iterator and stream <code>get_method</code> flags to public
API as new enums since they are used by the storage modules API.
</p>
<p>Moved <code>librdf_log()</code> and <code>librdf_log_simple()</code>
into public API to allow external storage modules to log messages.
</p>
<p>More checks for failure during storage instance allocation.
</p>
<p>postgresql storage: Fixes for "Numerous leaks, potential NULL
pointer use, and dropped postgresql errors and buffer overruns in the
postgresql storage module" based on patches in Issue #0000286.
</p>
<p>sqlite storage: Fixes to prevent deadlocks with <code>BEGIN
IMMEDIATE</code> instead of the default <code>BEGIN DEFERRED</code>.
No longer writes to the sqlite database when just querying. Several
other fixes.
</p>
<p>trees storage: Several fixes.
</p>
<h3>Other Changes</h3>
<p>Multiple Win32 build fixes based on patches from Lou Sakey - thanks.
</p>
<p>Added <code>librdf_parser_guess_name2()</code> to SWIG API.
</p>
<h3>Internal Changes</h3>
<p>Added LRU cache for internal use.</p>
<p>Several autogen.sh updates for libltdl.</p>
<p>Use libtool's <code>libltdl</code> to dynamially load storage
modules. Will link in a copy from sources if not present in the
system from libtool.
</p>
<p>Internal raptor and rasqal sources removed - now use
<code>pkg-config(1)</code> to find external libraries to compile and
link to.
</p>
<p>Fixes for AVL Tree: update parent pointers when deleting - patch
from Aymeric Barthe - thanks.
</p>
<p>Added internal support for upcoming Raptor V2 API. Not yet enabled.
Added <code>librdf_world_get_raptor()</code> and
<code>librdf_world_set_raptor()</code> methods.
Added <code>librdf_parser_guess_name2()</code> with librdf_world parameter
and deprecated <code>librdf_parser_guess_name()</code> without it.
</p>
<p>Wrapped deprecated functions with <code>REDLAND_DISABLE_DEPRECATED</code>
blocks.
</p>
<h2 id="rel1_0_8"><a name="rel1_0_8">Redland 1.0.8 Changes</a></h2>
<p>The main changes in this release are:</p>
<p>Updated to use
<a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.16
(<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_16">Rasqal 0.9.16 release notes</a>)
from 0.9.15. NOTE: Rasqal's ABI and API changed so Redland 1.0.8
requires 0.9.16 or newer.
</p>
<p>Updated to use
<a href="http://librdf.org/raptor/">Raptor</a> 1.4.18
(<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_18">Raptor 1.4.18 release notes</a>)
from 1.4.16.
</p>
<p>Added a new in-memory indexed storage 'trees' using AVL Trees</p>
<p>Issues Fixed:</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=256">0000256</a>: mysql reconnect not working (MySQL v5 only?)</li>
</ul>
<blockquote>
<p><strong>NOTE:</strong> The next release of redland will NOT
include raptor and rasqal in the tarball, they will be separate
download dependencies.</p>
<p><strong>NOTE</strong>: In the next release of redland, the
<code>redland-config</code> utility that provides the compile and
link args will be deprecated, generate a warning when run and will
turn into a wrapper for <code>pkg-config redland ...</code>
It will be removed in a future release.</p>
</blockquote>
<h3>General Changes</h3>
<p><code>configure</code> was updated to ensure that redland 1.0.8+
will work with rasqal 0.9.16 to 0.9.99 only.
</p>
<h3>Parser Class Changes</h3>
<p><code>librdf_parser_set_feature()</code> now handles setting
feature values as strings or integers, depending on the required
type (although Raptor will handle this too).
</p>
<p>Added <code>librdf_parser_parse_file_handle_as_stream()</code> and
<code>librdf_parser_parse_file_handle_into_model()</code> helper
methods.
</p>
<h3>Serializer Class Changes</h3>
<p><code>librdf_serializer_set_feature()</code> now handles setting
feature values as strings or integers, depending on the required
type (although Raptor will handle this too).
</p>
<h3>Storage Class Changes</h3>
<p>Added a new in-memory storage named "trees" by Dave Robillard that
uses AVLTrees internally for faster indexed triple store/querying.
This is an alpha quality storage since it is brand new and it may be
changed in future.
</p>
<h3>Other Changes</h3>
<p><code>LIBRDF_URI_RDF_MS</code>, <code>LIBRDF_URI_RDF_SCHEMA</code>
public API macros changed definition to pass in a world parameter.
</p>
<p>Added <code>librdf_get_concept_ms_namespace()</code> and
<code>librdf_get_concept_schema_namespace()</code> to make the
concept macros above work.
</p>
<p>Added an rss2atom example program.</p>
<p>Update configure to use autoconf 2.5.x <code>AC_CHECK_TYPES</code>
for testing byte, u32 and u64.</p>
<p>Fixes for resilence under low memory and allocation failures.</p>
<h3>Internal Changes</h3>
<p>Applied some updates from running the Linux 'sparse' utility.</p>
<p>Allow get_context method calls in stream/iterator map functions.
Originally
<a href="http://lists.usefulinc.com/pipermail/redland-dev/2008-May/001756.html">reported on redland-dev 6 May 2008</a>
by John Fieber.
</p>
<p>The storage method
<code>librdf_storage_find_statements_in_context()</code> now uses the
storage factory method find_statements_in_context if it exists,
instead of always using the find_statements factory method and
filtering.
</p>
<h2 id="rel1_0_7"><a name="rel1_0_7">Redland 1.0.7 Changes</a></h2>
<p>The main changes in this release are:</p>
<p>Updated to use
<a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.15
(<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_15">Rasqal 0.9.15 release notes</a>)
from 0.9.14. NOTE: Rasqal's API will change in 0.9.16 so Redland 1.0.7
requires 0.9.15 exactly - no newer, no older.
</p>
<p>Updated to use
<a href="http://librdf.org/raptor/">Raptor</a> 1.4.16
(<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_16">Raptor 1.4.16 release notes</a>)
from 1.4.15.
</p>
<p>Added modular storage backends. When
<code>--enable-modular</code> is given to configure, all the storage
major backends are compiled as dynamically loadable modules. The
memory, file and uri storages are always available. This is not
enabled by default as it is a new feature.
</p>
<p>Issues Fixed:</p>
<ul>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000189">0000189</a>: librdf_uri_is_file_uri: wrong return value</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000203">0000203</a>: API declarations for Symbian portability</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000205">0000205</a>: Memory leak in rdf_query_rasqal.c</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000209">0000209</a>: Null dereference + assertion failures in minimal librdf setup-cleanup</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000213">0000213</a>: Multiple instances of world object make trouble</li>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000218">0000218</a>: librdf_query_execute does not assert model parameter</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000229">0000229</a>: Segmentation fault when invoking librdf_new_model_from_model()</li>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000234">0000234</a>: autogen.sh $dir quoting</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000235">0000235</a>: $(EXEEXT) in tests</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=0000236">0000236</a>: EOL issues when building svn version on cygwin</li>
</ul>
<h3>General Changes</h3>
<p><code>configure</code> was updated to ensure that redland 1.0.7
will work with rasqal 0.9.15 only due to the future API change coming
in the next rasqal version.
</p>
<p>Make lots of writable static data truly constant especially from
writable static data from rdf_concepts. This causes a
<strong>SOURCE COMPATIBILITY BREAK</strong>: the
<code>rdf_concepts.h</code> public API node and uri
macros now require a <code>librdf_world*</code> parameter.
</p>
<h3>Parser Class Changes</h3>
<p>Added <code>librdf_parser_set_uri_filter()</code> and
<code>librdf_parser_get_uri_filter()</code> to set and get parser
URI filters, passed on into raptor.
</p>
<h3>Storage Class Changes</h3>
<p>Several SQLite storage improvements and fixes were made:</p>
<ul>
<li>Added transaction support</li>
<li>Handle SQL errors more gracefully</li>
<li>the contains_statement method now works with a blank subject node.</li>
<li>Resource allocation and low mwmory fixes</li>
</ul>
<h3>URI Class Changes</h3>
<p>Added <code>librdf_uri_compare()</code> to compare uri objects
rather than rely on stringifying them and comparing the strings.
</p>
<h3>Internal and Other Changes</h3>
<p>Many low memory and error path, resource leak fixes for parsers,
streams, module factory construction and module initialising.
</p>
<p><code>librdf_serializer_set_namespace()</code> now allows NULL uri
and prefix to be given.
</p>
<p><code>librdf_storage_mysql_transaction_commit()</code> now
terminates if there is no work to commit.
</p>
<p>autogen.sh version comparsion was fixed so that 1.10 is seen as
newer than 1.9.
</p>
<h2 id="rel1_0_6"><a name="rel1_0_6">Redland 1.0.6 Changes</a></h2>
<p>The main changes in this release are:</p>
<p>Updated to use
<a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.14
(<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_14">Rasqal 0.9.14 release notes</a>)
from 0.9.13.
</p>
<p>Updated to use
<a href="http://librdf.org/raptor/">Raptor</a> 1.4.15
(<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_15">Raptor 1.4.15 release notes</a>)
from 1.4.13.
</p>
<p>Plus a new transactions API for changes to the graph, implemented
and tested for MySQL.</p>
<p>Added a new query results formatter class to turn a query results
object into a syntax.</p>
<h3>Model Class Changes</h3>
<p>Added a model transaction API:</p>
<ul>
<li><code>librdf_model_transaction_start()</code> to begin the transaction</li>
<li><code>librdf_model_transaction_start_with_handle()</code> to begin it
using an existing connection pointer (such as a MySQL connection)</li>
<li><code>librdf_model_transaction_commit()</code> to commit the changes</li>
<li><code>librdf_model_transaction_rollback()</code> to abort them (automatic
if not commited before a close)</li>
<li><code>librdf_model_transaction_get_handle()</code> to
get a handle associated with a connection.</li>
</ul>
<p>Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=38">Issue #0000038</a>
</p>
<p>Implemented the Transaction API for MySQL (tested) and PostgreSQL
(not tested).
</p>
<p>Invert test in <code>librdf_model_add_submodel()</code>.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=175">Issue#0000175</a>
</p>
<h3>Parser Class Changes</h3>
<p>Added <code>librdf_parser_guess_name()</code> to guess a parser
name from content, similar to how a parser is constructed from
content.
</p>
<p>Added functions to return the namespaces declared during a parse:
<code>librdf_parser_get_namespaces_seen_count()</code> to return the
number seen, <code>librdf_parser_get_namespaces_seen_prefix()</code> to
get the prefix string and
<code>librdf_parser_get_namespaces_seen_uri()</code> to get the
<code>librdf_uri*</code>.
</p>
<h3>Query and Query Results Class Changes</h3>
<p>Added a new <em>Query Results Formatter</em> class building
<code>librdf_query_results_formatter*</code> objects
to turn a query results into a syntax such as SPARQL query results
formats, JSON. New functions:</p>
<ul>
<li>Constructors: <code>librdf_new_query_results_formatter()</code> and
<code>librdf_new_query_results_formatter_by_mime_type()</code>.
</li>
<li>Destructor: <code>librdf_free_query_results_formatter()</code></li>
<li>Method: <code>librdf_query_results_formatter_write()</code>
to write the query results to an iostream.</li>
<li>Helper functions: <code>librdf_query_results_formats_check()</code>
and <code>librdf_query_results_formats_enumerate()</code></li>
</ul>
<p>Added <code>librdf_query_results_is_syntax()</code> to
check if a query result is a syntax, and not any of the other
possibilities - bindings, boolean or graph.
</p>
<h3>Serializer Class Changes</h3>
<p>Default to serializer named "rdfxml" if no name is given to ensure
another rdfxml serializer such as XMP is not returned.
</p>
<h3>Storage Class Changes</h3>
<p>The MySQL storage implements the transaction API. It batches up
all the pending insertions and aggregates them so that any set of
triple writes during the transaction sequence are all done at one
point, with 4 INSERTs only.
</p>
<p>Added a supporting
functions <code>librdf_hash_interpret_template()</code> to
interpolate variables into strings using a librdf_hash of
key/values.</p>
<p>The MySQL storage now takes an optional storage option 'layout'
that can choose between the v1 and v2 SQL schemas (only the table
type has changed). The SQL fragments are described in Turtle files
that are installed and read on startup.
</p>
<h3>Configuration and Build Changes</h3>
<p><strong>Packagers note</strong>: two new files are installed into
PREFIX/lib/redland for the MySQL schemas. Without them installed,
the MySQL storage will not work.
</p>
<p>Removed the <code>configure</code> script option
<code>--enable-parsers</code> since Raptor is always required and
always used inside Redland whether or not any parsers were configured.
</p>
<p>Use <code>pkg-config</code> Libs.private in
<code>redland.pc</code> for internal dynamically linked libraries.
</p>
<p><code>redland-config</code> gains an --private-libs option to hold
private libraries moved from --libs which now only contains -L and a
-lrdf.
</p>
<p>Added a building utility <code>touch-mtime.pl</code>
to handle <code>touch -r</code> which does not work on SunOS.
Fixes
<a href="http://bugs.librdf.org/mantis/view.php?id=159">Issue #0000159</a>
</p>
<h3>Other Changes</h3>