-
Notifications
You must be signed in to change notification settings - Fork 28
/
RELEASE.html
3743 lines (2742 loc) · 125 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_18"><a name="rel1_0_18">Redland 1.0.18 changes</a></h2>
<p>Not yet released.
</p>
<h2>Merged pull requests</h2>
<ul>
<li>#10 from hroptatyr:
Intel C compiler (icc) support
</li>
<li>#8 from mro:
Develop a fix in sqlite storage when ‘contains’ check within
add_statement returns an error.
</li>
<li>#7 from hroptatyr:
Load virtuoso query engine (vsparql) in modular builds as well
</li>
<li>#6 from stbergmann:
Missing NUL
</li>
</ul>
<h2>Portability fixes</h2>
<p>General autogen.sh improvements across all Redland libraries</p>
<p>Removed obsolete autoconf macros from configure.ac.</p>
<p>Use size_t for all MD5 buffer sizes instead of ints.</p>
<p>Fix redland calloc() macro for calling convention. Syntax only fix.</p>
<p>Fixes for newer gcc, clang - removing unreachable code, changed but
never used variables.
</p>
<p>Update to support raptor 2.0.16 or later
raptor_www_set_http_accept2() as well as raptor_www_set_http_accept()
for older.
</p>
<p>Updated to support rasqal 0.9.33 or later
rasqal_query_results_formats_check() as well as fix
broken query_results_formats_check() calling convention.</p>
<p>Use unsigned int for sizes in hash memory storage internals.</p>
<h2 id="rel1_0_17"><a name="rel1_0_17">Redland 1.0.17 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=529">0000529</a>: MySql storage error on initial creation</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=540">0000540</a>: configure: remove obsolete --with-xml-parser/--with-openssl-digests</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=541">0000541</a>: configure pkg-config checks not overridable</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=542">0000542</a>: win32_rdf_config.h doesn't work on MSVC2008</li>
<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>
</ul>
<h2>Concept class changes</h2>
<p>Added <code>rdf:HTML</code> and <code>rdf:langString</code> from
RDF 1.1.</p>
<h2>Storage class changes</h2>
<p>Update deprecated MySQL engine type syntax. Patch from olberger on github.
</p>
<h2>Configuration and build fixes</h2>
<p>Make configure restore CPPFLAGS after virtuoso test. Helps
portabilty and Debian hardening.
</p>
<p>Fixes to Win32 builds with MSVC2008 from Michael Stahl.</p>
<h2>Internal fixes</h2>
<p>Several alignment and error path fixes from clang and llvm.</p>
<p>Fix <code>rasqal_query_results_next_triple()</code> call with NULL.
Patch from Michael Stahl.</p>
<h2 id="rel1_0_16"><a name="rel1_0_16">Redland 1.0.16 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=443">0000443</a>: "1"^^xsd:boolean does not evaluate as true</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=460">0000460</a>: librdf error - storages already registered</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=497">0000497</a>: "1"^^xsd:boolean and "true"^^xsd:boolean are not true</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=518">0000518</a>: Blank node parsing error</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=519">0000519</a>: SPARQL query-related methods crash on certain literals</li>
</ul>
<h3>General changes</h3>
<p>
Requires <a href="http://librdf.org/raptor/">Raptor</a> 2.0.7 or newer<br />
</p>
<h3>Model class changes</h3>
<p><code>librdf_model_contains_statement()</code> now returns > 0
only for invalid statements according to the API contract.
NULL statements are considered invalid.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=489">Issue #0000489</a>
</p>
<h3>Node class changes</h3>
<p>All the constructors now normalize the nodes (Raptor terms) so
that equality is a cheap pointer comparison.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=443">Issue #0000443</a>.
</p>
<h3>Query class changes</h3>
<p><code>librdf_query_results_get_binding_value()</code> and
<code>librdf_query_results_get_binding_name()</code> now fail when
called with negative offsets.
</p>
<h3>Serializer class changes</h3>
<p>Serializing (using Raptor) now sets the statement graph field to
make serializing to N-Quads work.
</p>
<h3>Storage class changes</h3>
<p>Loading the same storage multiple times no longer gives a runtime
error.</p>
<p><code>librdf_storage_contains_statement()</code> now returns >
0 only for invalid statements according to the API contract. Uses
<code>librdf_statement_is_complete()</code> for testing statement
validity.
</p>
<p>hashes storage: Make matching a statement work when using graph
names (redland contexts).
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=515">Issue
#0000515</a>
</p>
<p>mysql storage: Defaulted storage configuration host to 'localhost'
if it is not given. Opening a store with missing configuration now
reports the required keys.
</p>
<p>postgres storage: Fixed a bad malloc result test during query
allocation that probably caused
<code>librdf_model_find_statements()</code> to fail. Fix from
'zoggy' on github - thanks. Made loading triples from a stream to
postgresql actually work via
<code>librdf_model_add_statements()</code>. Defaulted storage
configuration host to 'localhost' if it is not given. Opening a
store with missing configuration now reports the required keys.
</p>
<h3>Unicode module changes</h3>
<p>Added <code>librdf_latin1_to_utf8_2()</code> with size_t args.
Deprecates librdf_latin1_to_utf8().</p>
<p>Added <code>librdf_utf8_to_latin1_2()</code> with size_t args and
new default arg for replacing out of range characters. Deprecates
librdf_utf8_to_latin1().</p>
<h3>World class changes</h3>
<p>Added <code>librdf_world_set_raptor_init_handler()</code> and
<code>librdf_world_set_rasqal_init_handler()</code> methods to set
handlers for configuring internal raptor and rasqal after they have
been constructed but before they are initialized; before
<code>raptor_world_open()</code> or <code>rasqal_world_open()</code>
are run, respectively. Added new typedefs
<code>librdf_raptor_init_handler</code> and
<code>librdf_rasqal_init_handler</code> for the handlers.
</p>
<h3>Other API changes</h3>
<p>Added <code>librdf_license_string</code> and
<code>librdf_home_url_string</code> static strings to public API
following Raptor and Rasqal naming convention.
</p>
<h3>Other changes</h3>
<p>No longer gives an error when the same storage module is attempted
to be loaded more than once. This is a harmless error and can be
generated by installations that include the shared library storage
module in a '.so' file and the '.la' file associated with it.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=460">Issue #0000460</a>
</p>
<p>Multiple fixes for newer GCC warnings.</p>
<p>Multiple internal fixes for signed int conversions especially
around size_t and allocation.</p>
<p>Removed old debugging memory allocation options
<code>--with-dmalloc</code> for dmalloc and
<code>--with-memory-signing</code> for internal signing of memory
blocks. Valgrind and static analyzers replace this.
</p>
<p>Multiple portability fixes for building out of the source tree.
Out of source tree 'make check' and 'make dist' should both work.
Thanks to Daniel Richard G. for the patches.
</p>
<p>Multiple internal error path cleanup issues and int/size_t issues
found via clang static analyzer.</p>
<p>configure now looks for Oracle DB (aka Sleepycat DB aka Berkeley
DB) 5.3</p>
<p>autogen.sh now supports the NOCONFIGURE variable like
Lib{XML2,XSLT}, aborts the run if an progrma fails and creates the
NEWS if it does not exist to aid building from GIT and 'make dist'.</p>
<h2 id="rel1_0_15"><a name="rel1_0_15">Redland 1.0.15 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=461">0000461</a>: librdf error - query language vsparql already registered</li>
<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>
<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>
<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>
<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>
<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>
</ul>
<h3>General changes</h3>
<p>Added new API functions <code>librdf_alloc_memory()</code>,
<code>librdf_calloc_memory()</code> and <code>librdf_free_memory()</code>
to allow freeing memory allocated inside librdf shared library, such
as on windows with DLLs. (Lauri Aalto)
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=475">Issue #0000475</a>
</p>
<h3>Hash class changes</h3>
<p>Export <code>librdf_new_hash()</code> to the public API.
</p>
<p>BDB Hash now uses the newer 7 args open form in preference to the 6 args
form. (Peter O'Gorman / pogma).
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=468">Issue #0000468</a>
</p>
<h3>Statement class changes</h3>
<p>Reverted <code>librdf_new_statement_from_statement()</code> to the
pre-<code>raptor_term</code> deep copy contract for the function.
(Lauri Aalto)
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=478">Issue #0000478</a>
</p>
<p>Added <code>librdf_new_statement_from_statement2()</code>
providing a shallow copy of statement which was the
post-<code>raptor_term</code> semantics of
<code>librdf_new_statement_from_statement()</code>.
(Lauri Aalto)
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=478">Issue #0000478</a>
</p>
<h3>Storage class changes</h3>
<p>Virtuoso storage:</p>
<ul>
<li>Added switch for VIRTUOSO_DV_TIMESTAMP_OBJ.</li>
<li>Prevent virtuoso query being registered twice in non-modular build
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=461">Issue #0000461</a>.
</li>
</ul>
<h3>Other changes</h3>
<p>Fixed the parser test to actually test 3 parsers rather than a
non-deterministic number. Emits warnings when parser constructor
fails since a syntax may not be supported.</p>
<p>Set up the libltdl build dependencies and linking flags properly.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=485">Issue #0000485</a>
</p>
<p>Portability changes were made to rdfproc for windows.</p>
<p>Add the <code>REDLAND_CALLBACK_STDCALL</code> attribute macro in
the serializer log handler for windows.</p>
<p>Multiple librdf and <code>rdfproc(1)</code> changes to allocate
and free memory using librdf_alloc_memory, librdf_calloc_memory and
librdf_free_memory to ensure memory is allocated correctly across
libraries (DLLs). (Lauri Aalto).
</p>
<p>Several code style changes were made.
</p>
<h2 id="rel1_0_14"><a name="rel1_0_14">Redland 1.0.14 Changes</a></h2>
<p>Rasqal minimum version is now 0.9.25 for the new
<code>rasqal_world_get_query_language_description()</code> function.
</p>
<p>Issues Fixed:</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=">Issue #0000375</a>: Add functionality to parse from iostream (or similar)</li>
<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>
<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>
<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>
</ul>
<h3>Hash Class Changes</h3>
<p>BDB Hash (name 'bdb'): Add checks for Oracle Berkeley DB 5.1, 5.0
and 4.9 and updated <code>configure</code> messages with the new
name. The 5.x storage has the same API but has a new on-disk format
that will require a use of the <code>db-upgrade(1)</code> utility in
the utils directory.
</p>
<p>Fixed <code>librdf_hash_get_as_boolean()</code> 'false' string
fixed to actually be a False value.
</p>
<h3>Node Class Changes</h3>
<p><code>librdf_node_write()</code> is defined to now always write
N-Triples format.</p>
<p>Blank node ID generation and mapping from parsing is now
consistently made across Redland librdf rather than relying on some
Raptor defaults.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=432">Issue #0000432</a>
</p>
<p>Fixed URI reference leak in
<code>librdf_new_node_from_uri_local_name()</code>
and
<code>librdf_new_node_from_normalised_uri_string()</code>
constructors.
</p>
<h3>Parser Class Changes</h3>
<p>Do not report programmer errors via logging, just runtime
errors.</p>
<p>Added
<code>librdf_parser_parse_iostream_as_stream()</code> and
<code>librdf_parser_parse_iostream_into_model()</code>
from patch by Norman Gray with style fixes by Lauri Aalto. Thanks.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=375">Issue #0000375</a>
</p>
<h3>Query Class Changes</h3>
<p>Added <code>librdf_query_language_get_description()</code> to
return the full description of of the query language. Deprecates
<code>librdf_query_languages_enumerate()</code>
</p>
<h3>Statement Class Changes</h3>
<p>Restored <code>librdf_statement_decode_parts()</code> to the
public ABI/API which was accidently removed. It has been deprecated
for <code>librdf_statement_decode2()</code> for some time and now
always fails.
</p>
<h3>Storage Class Changes</h3>
<p>Storage Hashes (name 'hashes'): Fixed a reference leak and shared
values issue when cloning a storage. The BDB hash type (current
default) was updated for Oracle DB 5.1; see above.
</p>
<p>Storage SQLite (name 'sqlite'):
Do not add duplicate statements if a context is given.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=418">Issue #0000418</a>.
Fixed a librdf_node reference leak when serializing model with context nodes.
</p>
<h3>UTF8 Module</h3>
<p>Made functions that were already declared in a public header file
and documentation into part of the API.
</p>
<p>Added but deprecated for Raptor equivalents (they are wrappers for them):</p>
<pre>
int librdf_unicode_char_to_utf8(librdf_unichar c,
unsigned char *output, int length);
int librdf_utf8_to_unicode_char(librdf_unichar *output,
const unsigned char *input, int length);
</pre>
<p>Added:</p>
<pre>
unsigned char* librdf_utf8_to_latin1(const unsigned char *input,
int length, int *output_length);
unsigned char* librdf_latin1_to_utf8(const unsigned char *input,
int length, int *output_length);
void librdf_utf8_print(const unsigned char *input, int length,
FILE *stream);
</pre>
<h3>Other Changes</h3>
<p>The internal Redland librdf AVL Tree implementation was removed
and the 'trees' storage changed to use the AVL Tree implementation in
Raptor (<code>raptor_avltree</code>) which is newer and has bug fixes
beyond the Redland librdf version.
</p>
<p>Redland librdf was ran through the
LLVM <a href="http://clang-analyzer.llvm.org/">clang</a> static code
analyzer and several issues fixed, mostly in unused variables and
values computed that were needed but also included a few use of
uninitialized variables especially in error cases. one problem
fixed was in <code>librdf_world_set_feature()</code> to actually set
the value for the genid base and genid counter features
(<code>LIBRDF_WORLD_FEATURE_GENID_BASE</code> and
<code>LIBRDF_WORLD_FEATURE_GENID_COUNTER</code> respectively)
</p>
<p><code>configure</code> now tries harder to find the Oracle
Berkeley DB library using Debian multiarch directories if present.
This is yet another heuristic and rather a hack. For a consistent
approach the <code>--with-bdb</code>, <code>--with-bdb-lib</code>,
<code>--with-bdb-include</code> and <code>--with-bdb-dbname</code>
options to <code>configure</code> should be used.
</p>
<p>Use <code>raptor.h</code> header from Raptor V2.
</p>
<p>Removed Raptor V1 support code as librdf no longer supports Raptor
V1.</p>
<p>Updated RPM spec file to make Redland librdf package require
Raptor V2 (raptor2 package) and Rasqal (rasqal package).
</p>
<p>Add sanity checking when initialising Raptor so that there are
always parsers and serializers, or something went very wrong and
librdf will not work, so return an error.
</p>
<p>Removed internal cache module that no code used, didn't seem to
entirely work and was never in the public API.
</p>
<p>Now configure generates the (untested) win32_rdf_config.h for
(untested) WIN32 builds.
</p>
<h2 id="rel1_0_13"><a name="rel1_0_13">Redland 1.0.13 Changes</a></h2>
<p>Raptor minimum version is now 2.0.0. Raptor V1 support was removed.</p>
<p>Rasqal minimum version is now 0.9.22. Removed use of deprecated
Rasqal functions that were conditioned on older rasqal versions.
</p>
<p>Issues Fixed:</p>
<ul>
<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>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=404">Issue #0000404</a>: Parsing errors when parsing RDFa</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=419">Issue #0000419</a>: Syntax error when debugging enabled</li>
</ul>
<h3>Node class changes</h3>
<p>Mark <code>librdf_node_to_string()</code> and
<code>librdf_node_to_counted_string()</code> as deprecated.
</p>
<h3>Parser class changes</h3>
<p><code>librdf_new_parser()</code> now logs failure to find a parser
for the given name, type and/or uri rather than just returning NULL.
</p>
<p>Added <code>librdf_parser_get_description()</code> deprecating
<code>librdf_parser_enumerate()</code>.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=325">Issue #0000325</a>
</p>
<h3>Query results class changes</h3>
<p>Added <code>(librdf_query_results_formats_get_description()</code>
deprecating
<code>librdf_query_results_formats_enumerate()</code>.</p>
<p>Removed toy 'triples' query language. Use 'sparql' instead.
</p>
<h3>Serializer class changes</h3>
<p><code>librdf_new_serializer()</code> now log failure to find a
serializer by the given name, type and/or uri rather than just
returning NULL.
</p>
<p>Added <code>librdf_serializer_get_description()</code> deprecating
<code>librdf_serializer_enumerate()</code>.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=325">Issue #0000325</a>
</p>
<p>The graph name is now provided to Raptor serializers so that they
can write out quads, if supported. At present this works with the
'nquads' serializer.
</p>
<h3>Storage class changes</h3>
<p><code>librdf_new_storage()</code>,
<code>librdf_new_storage_with_options()</code> now log failure to
find storage by the given name rather than just returning NULL.
</p>
<h3>Other changes</h3>
<p>Add new generated version defines to librdf.h:
<code>LIBRDF_VERSION</code>, <code>LIBRDF_VERSION_STRING</code>,
<code>LIBRDF_VERSION_MAJOR</code>, <code>LIBRDF_VERSION_MAJOR</code>
<code>LIBRDF_VERSION_MINOR</code> and
<code>LIBRDF_VERSION_DECIMAL</code> (already in earlier versions).
</p>
<p>Removed all code in user build of library that calls abort() and
replaced with an error log, then failure.
</p>
<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>