-
Notifications
You must be signed in to change notification settings - Fork 62
/
RELEASE.html
4879 lines (3628 loc) · 172 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" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Raptor RDF Syntax Library - Release Notes</title>
</head>
<body>
<h1 style="text-align:center">Raptor RDF Syntax Library - Release Notes</h1>
<h2 id="rel2_0_17"><a name="rel2_0_17">Raptor2 2.0.17 changes</a></h2>
<p>Not yet released.
</p>
<h2 id="rel2_0_16"><a name="rel2_0_16">Raptor2 2.0.16 changes</a></h2>
<p>Release because ... it's been a while</p>
<p><a href="https://nvd.nist.gov/vuln/detail/CVE-2017-18926">CVE-2017-18926</a>
fixed in commit 590681e546cd9aa18d57dc2ea1858cb734a3863f</p>
<p><a href="https://nvd.nist.gov/vuln/detail/CVE-2020-25713">CVE-2020-25713</a>
fixed in commit 4f5dbbffcc1c6cf0398bd03450453289a0979dea</p>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=600">0000600</a>: Can't compile on Cygwin: sort_r.h "Cannot detect operating system"</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=606">0000606</a>: "JSON" format outputs invalid Unicode escapes</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=617">0000617</a>: heap buffer overflow in raptor_qname_format_as_xml</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=618">0000618</a>: heap buffer overflow in raptor_xml_writer_start_element_common</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=650">0000650</a>: Out of bounds read leads to segfault in raptor_xml_writer_start_element_common</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=652">0000652</a>: Manpage for the rapper utility describes the wrong Atom version</li>
</ul>
<h3>Parser changes</h3>
<p>The Turtle parser was improved to process input in chunks, rather
than all in one step (with a large memory buffer). This allows
Turtle to read and parse files much larger than the system memory; it
splits the inputs after the end of a turtle "sentence" that ends in a
<code>.</code>. Includes memory usage minimizing with AVLTree
pruning during serializing and addition of turtle serializer flush
implementation.
This improvment across multiple patches was contributed by
<a href="https://github.com/hroptatyr">Sebastian Freundt</a>. Thanks
<a href="https://github.com/dajobe/raptor/pull/37">Pull Request #37</a>
<a href="https://github.com/dajobe/raptor/pull/38">Pull Request #38</a>
</p>
<p>Turtle parser improvements for Bison 3+ and removing deprecated or
older style directives.
Thanks to fix from <a href="https://github.com/akimd">Akim Demaille</a>
<a href="https://github.com/dajobe/raptor/pull/43">Pull Request #43</a>
</p>
<p>Turtle parser fixes for cleaning up va_arg on failure paths.
[coverity CID 343351]
</p>
<p>grddl parser: fix leak on failure paths of WWW model methods
[coverity CID 343353]
</p>
<h3>Serializer changes</h3>
<p>Added a serializer for the
<a href="http://contextknowledgesystems.org/CKS.html">mKR (my Knowledge Representation)</a>
language with the name <code>mkr</code> Patch developed by Richard
H. McCullough based on the Turtle serializer. Thanks.
<a href="https://github.com/dajobe/raptor/pull/25">Pull Request #25</a>
</p>
<p>XML writer calculate max nspace declarations correctly.
Fixes Issues
<a href="https://bugs.librdf.org/mantis/view.php?id=617">#0000617</a>
and
<a href="https://bugs.librdf.org/mantis/view.php?id=618">#0000618</a>
</p>
<p>JSON writer changed to write UTF-8 for JSON literals
Add <code>RAPTOR_ESCAPED_WRITE_BITFLAG_UTF8</code> to
<code>RAPTOR_ESCAPED_WRITE_JSON_LITERAL</code>
Fixes Issue
<a href="https://bugs.librdf.org/mantis/view.php?id=606">#0000606</a>
</p>
<p>rdfxmla serializer was fixed to handle leak of iter object on some
failure pathes. [coverity CID 343354] [coverity CID 343358]
</p>
<p>Fix for RSS 1.0 serializing default namespaces.</p>
<h3>Writer changes</h3>
<p>XML Writer: compare namespace declarations correctly. Applied a patch from
0001-CVE-2020-25713-raptor2-malformed-input-file-can-lead.patch.1
that fixes
Issue <a href="https://bugs.librdf.org/mantis/view.php?id=650">#0000650</a>
which overwrote heap during XML writing in parse type literal
content. This was detected with clang asan. Thanks to fix from Michael Stahl
/ mst2.
</p>
<h3>Build and portability fixes</h3>
<p>CMake fixes</p>
<ul>
<li>Fix cmake builds for time.h check change, generated pc file.
Thanks to fix from <a href="https://github.com/Artturin">Artturin</a>.
<a href="https://github.com/dajobe/raptor/pull/52">Pull Request #52</a>
</li>
<li>Multiple cmake build fixes. Thanks to multiple changes from
<a href="https://github.com/mathvich">mathvich</a>.
<a href="https://github.com/dajobe/raptor/pull/50">Pull Request #50</a>
</li>
<li>Multiple fixes for Appveyor's Windows build using CMake
Thanks to fix from <a href="https://github.com/0u812">0u812</a>.
</li>
<li>Multiple fixes for Cmake build system to allow building from
source including running flex, bison and running the tests.
Thanks to fix from <a href="https://github.com/0u812">0u812</a>.
</li>
<li>Made Raptor build again with CMake under Windows via CI as a
service Appveyor. The resulting binaries and libraries were not
tested.</li>
</ul>
<p>Remove and fix obsolete autoconf: AC_PROG_LEX AC_HEADER_TIME AC_HEADER_STDC.
</p>
<p>Update bison check to find first new enough GNU bison</p>
<p>Fix configure.ac <code>-Wimplicit-function-declaration</code> in
<code>HAVE___FUNCTION__</code> test to provide Clang 16 support. Fix
from Sam James, thanks.
</p>
<p>Support newer ICU UC version (>=56) for newer NFC check
interface <code>unorm2_quickCheck()</code>..</p>
<p>Several minor fixes and workarounds for clang ASAN warnings or
false warnings - not able to understand raptor's reference model.</p>
<p>Updated fix-flex.pl script for newer flex naming conventions.</p>
<p>Portability fixes found with GCC 10 and newer compilers for wrong
error message callbacks in turtle and grddl parsers
</p>
<p>Later, updated to make bison 3.4 the minimum.</p>
<p>Update turtle parser and support scripts to work with Bison 3.0.5
Patch contributed by Adam Novak. Thanks.
<a href="https://github.com/dajobe/raptor/pull/39">Pull Request #39</a>
</p>
<p>Fix GNUInstallDirs for install paths to be able to install
libraptor2.a and raptor2.pc to a specific directory when
cross-compiling. Thanks to fix from
<a href="https://github.com/ariadnext">Eric Le Lay</a>.
<a href="https://github.com/dajobe/raptor/pull/36">Pull Request #36</a>
</p>
<p>Made some code changes to quiet GCC extra warnings.</p>
<p>Portability fixes for OpenBSD</p>
<p>Some portability for building under cygwin by Richard
H. McCullough while developing the mkr serializer.
</p>
<p>Portability fixes in the <code>raptor2.spec</code> file.
Thanks to fix by <a href="https://github.com/philjohn">philjohn</a>
</p>
<p>Enable <code>pkg-config</code> to work when cross-building such as
with yocto. Thanks to fix by Andreas Müller.
</p>
<p>Use only pkgconfig for libxslt and ICU UC. Patches from Hugh
McMaster. Thanks.
</p>
<p>Updated Travis configuration to try builds across a wider range of
compilers and with clang ASAN enabled.</p>
<h3>Other changes</h3>
<p>Handle deleting empty avltree. Fixes invalid pointer reference
reported by Li Qiang via email. Thanks.
</p>
<p>Change <code>rapper(1)</code> utility to count in longs instead of
ints. Because: billions and billions of triples. Thanks to patch
from <a href="https://github.com/JervenBolleman">Jerven Bolleman</a>.
</p>
<p>Accept cygwin as a Linux-like.
Fixes Issue <a href="https://bugs.librdf.org/mantis/view.php?id=600">#0000600</a>.
</p>
<p>Mention Atom 0.3 in docs and manual page
Fixes Issue <a href="https://bugs.librdf.org/mantis/view.php?id=652">#0000652</a>.
</p>
<p>Check <code>curl_easy_setopt()</code> return values for errors In
several places check for <code>curl_easy_setopt()</code> erorr
returns and fail. [coverity CID 343360]
</p>
<p>Fixed internal ICU string NFC check to convert to UTF-16 first
before trying to do a NFC normalization check. This allows returning
an error response.
</p>
<p><code>raptor_uri_counted_filename_to_uri_string()</code> fix to
copy NUL when copying the <code>file://</code>code prefix. Coverity
false positive since the following lines of code always add more
characters and a NUL. "Fixes" [Coverity CID 353858]
</p>
<h2 id="rel2_0_15"><a name="rel2_0_15">Raptor2 2.0.15 changes</a></h2>
<p>This release mainly made general bug fixes as well as several
fixes to the Turtle / N-Triples family of parsers and serializers. It
added utility functions for re-entrant sorting of objects and
sequences and a few other useful methods.<br />
</p>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=574">0000574</a>: Language tags with underscore</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=575">0000575</a>: Wrong API or wrong API documentation</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=576">0000576</a>: Wrong assert for a counted string being nul terminated</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=577">0000577</a>: iri parsing does not conform to REC-n-quads-20140225</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=579">0000579</a>: raptor_world_generate_bnodeid accepts world not parser</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=581">0000581</a>: My patch for parser and serializers count</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=584">0000584</a>: raptor fails to parse trig files with dos line endings</li>
</ul>
<h3>Parser changes</h3>
<p>Fixed <code>raptor_grddl_filter_triples()</code> check for three
URIs which has been broken since 2007 but just did more work. Found
via gcc5 warning.</p>
<p>The TRiG parser now accepts \r newlines between the graph name and
the following '{'.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=584">Issue #0000584</a>
</p>
<p>Turtle, TRiG, N-Triples and N-Quads parsers now check escapes
correctly for URI strings. \t \b \n \r \f are forbidden. Check that
raw ' ' or \u0020, \u003C or \u003E are also not accepted.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=577">Issue #0000577</a>
</p>
<p>N-Triples / N-Quads parsers nwo accept '_' as an alias for '-' in
lang strings. '_' is not legal.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=574">Issue #0000574</a>
</p>
<p>Updated RDFa parser (librdfa) to support full URLs for
<code>typeof</code> from upstream. Re-checked several tests which
have been passing for some time but the expected output was not a
correct conversion from the testsuite sparql.</p>
<h3>Serializer changes</h3>
<p>Turtle serializer now writes <code>()</code> instead of
<code>rdf:nil</code> via
<a href="https://github.com/dajobe/raptor/pull/16">Pull Request #16</a>
from Richard H. McCullough. Thanks!
</p>
<h3>I/O-stream class changes</h3>
<p><code>raptor_iostream_decimal_write()</code> and
<code>raptor_iostream_hexadecimal_write</code> now return non-0 if
they do not succeed in writing successfully.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=575">Issue #0000575</a>
</p>
<h3>Term class changes</h3>
<p><code>raptor_new_term_from_blank()</code> now also accepts "" as
the same as a NULL blank node ID argument.</p>
<h3>URI class changes</h3>
<p>Fixed <code>raptor_uri_counted_filename_to_uri_string()</code> to
use the passed in len, not look for end NUL char and count lengths.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=576">Issue #0000576</a>.
</p>
<p><code>raptor_new_uri_from_counted_string()</code> no longer
assumes a NUL terminated string. Remove a debug assert and use
<code>fwrite()</code> to emit the counted URI string to the debug
file handler.</p>
<p>Fixed <code>raptor_uri_normalize_path()</code> to check the size of
output buffer is big enough.</p>
<h3>Writer class changes</h3>
<p>Fixed <code>raptor_turtle_writer_quoted_counted_string()</code> to
use the passed in length, drop the <code>strlen()</code> call and use
the length internally.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=576">Issue #0000576</a>.
</p>
<h3>World class changes</h3>
<p>Added <code>raptor_world_get_parsers_count()</code>
and <code>raptor_world_get_serializers_count()</code>
with patch from Victor Porton. Thanks!
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=581">Issue #0000581</a>.</p>
<h3>Other Changes</h3>
<p>Made raptor work with Travis CI again; have to download and
install Bison 3.</p>
<p>Added <code>raptor_sort_r()</code> and
<code>raptor_sequence_sort_r()</code> re-entrant sort utility methods
based on the public domain <a
href="https://github.com/noporpoise/sort_r">sort_r</a> code by Isaac
Turner.
</p>
<p>Ensure <code>raptor_locator_format()</code> always adds a NUL to
terminate the output string.</p>
<p>Fix a -99 <= var <= 99 timezone interval check. Thanks to
Richard Trieu for the report.</p>
<p>Improve configure warning check using AC_LANG_WERROR</p>
<p>Use C99 <code>__FUNCTION__</code> replacing <code>__func__</code>
from C90.</p>
<p>Improve build-time flex and bison output to be more silent.</p>
<p>Added Intel C compiler (icc) support from Sebastian Freundt
(hroptatyr on GitHub) - Thanks.</p>
<h2 id="rel2_0_14"><a name="rel2_0_14">Raptor2 2.0.14 changes</a></h2>
<p>Many code quality fixes from clang and coverity primarily in error
path cleanups (out of memory cases) and dead code.</p>
<h3>Parser changes</h3>
<p>Turtle 1.1 parser: fixes about triple quoting alignment with
SPARQL from the www-rdf-comments list post REC
<a href="http://lists.w3.org/Archives/Public/public-rdf-comments/2014Feb/0018.html">report of problem</a>
and
<a href="http://lists.w3.org/Archives/Public/public-rdf-comments/2014Feb/0021.html">expected answer</a>.
</p>
<h3>Other changes</h3>
<p>Fixed RDFa 1.0 and RDFa 1.1 test suites to properly report
failures.</p>
<p>Updated the fix-flex and fix-bison scripts to remove dead
code that clang and coverity complain about.</p>
<h2 id="rel2_0_13"><a name="rel2_0_13">Raptor2 2.0.13 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=562">0000562</a>: N-Quads parsing of URIs with ' fails</li>
</ul>
<h3>Parser changes</h3>
<p>The N-Triples / N-Quads parser was updated to allow ' in URIs.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=562">Issue #0000562</a>.
</p>
<h3>Configuration changes</h3>
<p>Use the discovery of the <code>xml2-config(1)</code> /
<code>curl-config(1)</code> programs as test for presence of the
libraries. This fixes the issue where that after configuring, curl
was present but was not used for WWW fetching. This is seen when
the output of <code>curl-config --cflags</code> is empty / whitespace.
</p>
<p>Updated to use the <code>AC_CHECK_PROGS</code> macro to find jing
since <code>AC_CHECK_PROG</code> doesn't default to setting it as
found when present!
</p>
<h3>Internal changes</h3>
<p>The Turtle and parsedate parsers and the turtle lexer were updated
to use and require Bison 3.0.0.
</p>
<p>The JSON and turtle writers were updated to save several expensive
<code>strlen()</code> calls.</p>
<h2 id="rel2_0_12"><a name="rel2_0_12">Raptor2 2.0.12 changes</a></h2>
<h3>Parser changes</h3>
<p>The N-Triples / N-Quads parser was updated to pass all the two test
suites for the updated specifications:
</p>
<ul>
<li><a href="https://www.w3.org/TR/2013/CR-n-triples-20131105/">RDF 1.1 N-Triples - A line-based syntax for an RDF graph</a>, W3C Candidate Recommendation, 05 November 2013 (aka N-Triples 2013)</li>
<li><a href="https://www.w3.org/TR/2013/CR-n-quads-20131105/">RDF 1.1 N-Quads - A line-based syntax for an RDF datasets</a>, W3C Candidate Recommendation, 05 November 2013</li>
</ul>
<p>The main fixes were:</p>
<ul>
<li>allow <code>\b</code> and <code>\f</code> escapes (from Turtle, SPARQL)</li>
<li>fix the allowed blank node identifier characters</li>
<li>require all URIs to be absolute</li>
<li>handle a single short document with no end of line</li>
<li>support NULs inside literals</li>
<li>handle unescaped newlines inside literals</li>
</ul>
<h3>Term class changes</h3>
<p>Added <code>raptor_new_term_from_counted_string()</code> to
create a term from a Turtle or N-Triples string syntax. This is
the opposite of <code>raptor_term_to_turtle_counted_string()</code>
and <code>raptor_term_to_turtle_string()</code> and also reads the
strings created by <code>raptor_term_to_counted_string()</code> and
<code>raptor_term_to_string()</code>.
</p>
<h2 id="rel2_0_11"><a name="rel2_0_11">Raptor2 2.0.11 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=556">0000556</a>: Problem with relative URI in rdf:about, rdf:resource etc.</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=554">0000554</a>: RDF/XML serializer does not canonicalize attribute order in XMLLiterals</li>
</ul>
<h3>Parser changes</h3>
<p>N-Triples parser was updated to support all of
<a href="https://www.w3.org/TR/2013/CR-n-triples-20131105/">RDF 1.1
N-Triples - A line-based syntax for an RDF graph</a> (aka N-Triples 2013)
It now supports <code># comments</code> after the end of
lines, checks for illegal unicode escapes, checks for bad URIs and
checks language tags.
Also removed support for legacy N-Triples
<code>"foo"-LANGTOKEN</code>.
Many internal changes were also made.
</p>
<p>RDF/XML parser fixed the XML Canonicalization so that it writes
the XML attributes in sorted order.
Fixes
<a href="https://bugs.librdf.org/mantis/view.php?id=554">Issue #0000554</a>.
</p>
<h3>URI class changes</h3>
<p>Added <code>raptor_uri_uri_string_is_absolute()</code> to
check if a URI is absolute.</p>
<h3>QName class changes</h3>
<p>Added <code>raptor_qname_format_as_xml()</code> to turn a qname
into an XML declaration.
</p>
<h3>Configuration and build changes</h3>
<p>Restructured code to build an internal librdfa convenience library
(never installed) so that newer automake will stop moaning about
subdir-objects.
</p>
<p><code>configure</code> now checks for clang to correctly find
supported warnings.</p>
<p>Various portability and build fixes (Daniel Richard G)</p>
<p>Build fixes: <code>make check</code> will now work if jing is not
installed (for feed XML generation validation).
</p>
<h3>Other changes</h3>
<p>Fixed a few issues found with LLVM 3.4 (SVN) run with address
sanitizing.</p>
<h2 id="rel2_0_10"><a name="rel2_0_10">Raptor2 2.0.10 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=532">0000532</a>: configure.ac: required file `src/raptor_config.h.in' not found</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=535">0000535</a>: configure accepts bogus values for --with-xml2-config</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=545">0000545</a>: Reopen issue 503</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=548">0000548</a>: xml:lang inside rdf:parseType="Literal" are removed in parsed output</li>
</ul>
<h3>Parser changes</h3>
<p>Turtle parser was updated to handle
<a href="https://www.w3.org/TR/2013/CR-turtle-20130219/">Turtle Terse RDF Triple Language</a> W3C Candidate Recommendation 19 February 2013
(Turtle 2013)
The main changes were to align with SPARQL-style blank node names,
prefixes and local names.
</p>
<p>N-Triples parser was updated to handle
<a href="https://www.w3.org/TR/2013/NOTE-n-triples-20130409/">N-Triples - A line-based syntax for an RDF graph</a> W3C Working Group Note 09 April 2013 (N-Triples 2013)
The main changes were to allow \b \f, UTF-8 in strings and
URIs and the SPARQL-style blank node names.</p>
<p>RDF/XML parser updated to understand the new RDF 1.1 datatypes:
rdf:HTML and rdf:langString</p>
<h3>Serializer changes</h3>
<p>Updated N-Triples and Turtle serializers (via writers) for 2013
versions based on SPARQL 1.1 definitions. These new formats
have incompatible changes.
</p>
<p>Added functions for writing escaped Turtle / N-Triples terms:</p>
<pre>
int raptor_string_escaped_write(const unsigned char *string,
size_t len, const char delim, unsigned int flags, raptor_iostream *iostr);
int raptor_term_escaped_write(const raptor_term *term, unsigned int flags,
raptor_iostream* iostr);
int raptor_uri_escaped_write(raptor_uri* uri, raptor_uri* base_uri,
unsigned int flags, raptor_iostream *iostr);
</pre>
<p>These uses the new new <code>raptor_escaped_write_bitflags</code>
enum bitflag values for the <code>flags</code> argument.</p>
<p>Deprecated <code>raptor_string_python_write()</code> for
<code>raptor_string_escaped_write()</code> with flags.</p>
<h3>Configuration and build changes</h3>
<p><code>configure</code> now recommends flex 2.5.36</p>
<p><code>configure</code> was updated to switch configuring libxml
and libcurl to use the <code>PKG_PROG_PKG_CONFIG</code> and
<code>PKG_CHECK_MODULES</code> macros. The preference remains to
prefer looking for the xml2-config and curl-config programs before
trying pkg-config unless <code>--with-curl-config=no</code>
<code>--with-xml2-config=no</code> are used.
</p>
<p><code>configure</code> now dies if xml2-config or xslt-config
point at non executable files. Patch from Michael Stahl - thanks.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=535">Issue #0000534</a>
</p>
<p><code>configure</code> now adds curl or libxml pkg-config requires
only if they were found via pkg-config; this prevents unnecessary
dependency on pkg-config files if they are not needed.</p>
<p>Updated autogen.sh and code to handle variations of header
macro.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=532">Issue #0000532</a>
</p>
<h2 id="rel2_0_9"><a name="rel2_0_9">Raptor2 2.0.9 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=499">0000499</a>: Turtle parser fails to correctly parse valid syntax</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=508">0000508</a>: Raptor objects to possibly valid Turtle syntax</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=520">0000520</a>: compilation failure</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=521">0000521</a>: Python RDF 1.0.14.1 segfault when one tries to parse xhtml+rdf using the RDFa parser</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=526">0000526</a>: Document how to find gtkdocize in INSTALL.html</li>
</ul>
<h3>Parser Changes</h3>
<p>RDFa parser:
Handle non-namespaced elements without crash in RDFa.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=521">Issue #0000521</a>
</p>
<p>Turtle Parser: Added full support for
<a href="https://www.w3.org/TR/2013/CR-turtle-20130219/">Turtle Terse RDF Triple Language</a> W3C Candidate Recommendation 19 February 2013
</p>
<p>This includes accepting new keywords from SPARQL
(<code>BASE</code> and <code>PREFIX</code>), triples forms and
details of the characters allowed in URIs, Literals, Prefix Names,
Local Names and Blank Node identifiers. Some existing documents that
used <code>\</code>-escapes in URIs to encode characters not allowed
in URIs, are now forbidden. For example ASCII 32 (0x20) - space,
which should be written as <code>%20</code>.
</p>
<h3>Serializer changes</h3>
<p>Turtle Serializer: Added full support for
<a href="https://www.w3.org/TR/2013/CR-turtle-20130219/">Turtle Terse RDF Triple Language</a> W3C Candidate Recommendation 19 February 2013
which particular effects the encoding of URIs in the serializer.
</p>
<h3>Configuration and build changes</h3>
<p>Added CMake build framework for building Raptor on Microsoft
Windows. Removed the old <code>win32/</code> area and
<code>win32_raptor_config.h</code> references. Contributed by Daniel
Richard G. for Teragram Inc.
</p>
<p>Ensure that a small system BUFSIZ does not affect parser guessing
Patch from Daniel Richard G for Teragram Inc.</p>
<p>Added a compile-time check for
<code>raptor_world_guess_parser_name()</code> to ensure that
<code>RAPTOR_READ_BUFFER_SIZE</code> is at least as large as
<code>FIRSTN</code>, because otherwise the guesser sees fewer than
<code>FIRSTN</code> bytes from the document. Patch from Daniel
Richard G for Teragram Inc.
</p>
<p>Update <code>configure</code> to allow xml2-config and curl-config
to work for libxml and libcurl. It now report on the source of xml, curl
libraries in the configuration status.</p>
<p><code>autogen.sh</code> updates to abort the run if a configuring
program fails, Generate NEWS with old timestamp if missing so
automake can run.</p>
<p>Handle the libxml2 <code>ret->checked</code> field not being
present in older libxml2 versions. The entities checked field was
added 2006-10-10 in <a href="http://git.gnome.org/browse/libxml2/commit/?id=a37a6ad91a61d168ecc4b29263def3363fff4da6and">libxml2 GIT commit a37a6ad91a61d168ecc4b29263def3363fff4da6and</a>
released in libxml2 2.6.27 on 2006-10-25.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=520">Issue #0000520</a>
</p>
<h3>Other changes</h3>
<p><code>raptor_www_set_ssl_verify_options()</code> now supports the
Curl 7.28.1 removal of <code>CURLOPT_SSL_VERIFYHOST</code> with a
value of 2. Now <code>verify_host</code> non-0 means to verify CN, 0
means to not verify.</p>
<p>Remove <code>-m MODE</code> from the <code>rapper(1)</code> help
message which was removed in commit
f94fa561db05b21132b14a2b72f05b77e666c252 on Wed Apr 28 21:31:54 2010
-0700 as part of the Raptor V2 work.
</p>
<h2 id="rel2_0_8"><a name="rel2_0_8">Raptor2 2.0.8 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=381">0000381</a>: Raptor incorrectly serializes turtle lists when list nodes are URIs.</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=487">0000487</a>: Does raptor_world_guess_parser_name [librdf_parser_guess_name2] ever return NULL?</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=505">0000505</a>: Parsing certain escaped unicode strings in Turtle cases an error</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=507">0000507</a>: Turtle parse error causes fatal error</li>
</ul>
<h3>Parser class changes</h3>
<p>Guessing a parser with
<code>raptor_world_guess_parser_name()</code> now returns NULL failure
when the guess is very poor, rather just return the first bad result.
Fixes
<a href="https://bugs.librdf.org/mantis/view.php?id=487">Issue #0000487</a>
which was reported in <a href="https://librdf.org/">Redland librdf</a> but
is implemented here.
</p>
<p>Guess parser: now returns error file and line location information
from the guessed parser.</p>
<p>RDFa parser: Updated <a href="https://github.com/rdfa/librdfa">librdfa</a>
to the latest GIT supporting
<a href="https://www.w3.org/TR/2012/REC-rdfa-core-20120607/">RDFa 1.1</a>
with 30 tests still not passing - mostly issues in the core librdfa.
Made several resilience and crash fixes. Updated the RDFa 1.0 test
suite to latest tests and made fixes. The RDFa parser now accepts
aliases 'rdfa10', 'rdfa11' and the default 'rdfa' is RDFa 1.1
</p>
<p>RSS tag soup parser: Use <code>time()</code> when
<code>gettimeofday()</code> is not available. Fix several reference
leaks.
</p>
<p>RDF/XML parser: The range of RDF/XML entity recognizing heuristic was
broadened to allow recognition of documents produced by Stanford's
Protege software (and possibly others). Fixed some parser memory
leaks / double frees.
</p>
<p>Turtle parser: Do not report multiple errors for Turtle string decoding
problems. When a Turtle qname cannot be found, a fatal error is no
longer generated but a regular error message giving information on
the qname that failed (usually due to unknown prefix).
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=507">Issue #0000507</a>
</p>
<h3>SAX2 API changes</h3>
<p><code>raptor_sax2_inscope_xml_language()</code> will now return ""
for explicit no language (<code>xml:lang=""</code>) as well as NULL
for undefined language (no <code>xml:lang</code> present).
</p>
<h3>Serializer class changes</h3>
<p>Turtle: Do not emit a Turtle <code>(...)</code> collection if the
list item is a URI. This fixes
<a href="https://bugs.librdf.org/mantis/view.php?id=381">Issue #0000381</a>.
</p>
<h3>Term class changes</h3>
<p>Added <code>raptor_term_to_turtle_counted_string()</code> counted
string form of <code>raptor_term_to_turtle_string</code>.
</p>
<h3>Unicode class changes</h3>
<p><code>raptor_unicode_utf8_string_put_char()</code> and
<code>raptor_unicode_utf8_string_get_char()</code>
now allow reading / writing U+D800 to U+DFFF (UTF-16 surrogates).
rather than returning failure. BOMs remain forbidden - definitely not UTF-8.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=505">Issue #0000505</a>
</p>
<h3>URI class changes</h3>
<p>Fixed URI resolving with reference (relative) URIs that are bare
queries like '?y' with no path. Now matches the specification
RFC3986 section 5.4.1 Normal Examples.
</p>
<p>Added <code>raptor_new_uri_relative_to_base_counted()</code>
to construct URI relative to current base.
</p>
<p>Added <code>raptor_uri_to_turtle_counted_string()</code> counted
string form of <code>raptor_uri_to_turtle_string</code>.
</p>
<h3>WWW class changes</h3>
<p>The Curl WWW implementation now interprets
<code>Content-Location</code>code> header as absolute or relative URI.
</p>
<h3>Configuration and build changes</h3>
<p>All configure --with-foo options now handle --without-foo (and
--with-foo=no) to disable attempting to find the value in the PATH.
This can be used with --with-xml2-config, --with-xslt-config,
--with-curl-config, --with-icu-config and --with-libwww-config where
the value 'no' or --without-foo can be used to disable it and prevent
automatic searches for the config script in the PATH.
</p>
<p>The <code>-DRAPTOR_DEBUG</code> and <code>-DMAINTAINER_MODE</code>
flags are now written to the config header instead of added to
CPPFLAGS.
</p>
<p>The <code>-g</code> flag is no longer added to CFLAGS or CPPFLAGS
with <code>--enable-debug</code>.</p>
<p>The existing <code>--disable-release</code> (default) now
correctly removes -O options in flag variables for the maintainer.
</p>
<p><code>autogen.sh</code> now looks for the environment variable
<code>NOCONFIGURE</code> to prevent it running configure at the end
of the auto generation run.
</p>
<p>The <code>configure</code> vsnprintf() check was made more
comprehensive.
</p>
<h3>Other changes</h3>
<p>Multiple portability improvements to vsnprintf code and macros.
Also fixed uninitialized variable problems in non-c99 variant of
raptor_vsnprintf2(). Thanks to John Emmas for reporting.
</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 portability fixes for building on old Solaris versions.
Thanks to Daniel Richard G. for the patches.
</p>
<p>Multiple portability fixes for building on Windows including
strcasecmp(), windows headers, configuration fixes, parsedate code,
URI test builds, vsnprintf building. Thanks to Daniel Richard G.
for the patches.
</p>
<p>Updated the example <code>rdfguess</code> to accept a file called
or no arguments to read from stdin.</p>
<h2 id="rel2_0_7"><a name="rel2_0_7">Raptor2 2.0.7 changes</a></h2>
<p>CVE-2012-0037 fixed</p>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=448">0000448</a>: Turtle parser does not return error status from turtle_parse_chunk()</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=469">0000469</a>: Allow rapper to bypass server SSL certs checks in libcurl</li>
</ul>
<p>Removed Expat support since expat has not had a release in years
and libxml2 works well. This allows some code simplification.
Updated <code>configure</code> so that if Raptor is configured with
no parser that requires an XML parser, libxml2 will not be required.
</p>
<p>Removed internal Unicode NFC checking code used for checking
RDF/XML literals conformance which was expensive to check and a large
of compiled-in static dataset that was rather out of date. Replaced
with optional compiled use of <a href=https://icu.unicode.org">ICU</a>.
If ICU is not explicitly configured, no literal checking is done.</p>
<h3>Options changes</h3>
<p>Added new options:</p>
<dl>
<dt><code>RAPTOR_OPTION_NO_FILE</code><br/></dt>
<dd>Deny file requests during parsing. Enabled by default.</dd>
<dt><code>RAPTOR_OPTION_LOAD_EXTERNAL_ENTITIES</code><br/></dt>
<dd>Allow loading of XML external entity loading. Disabled by
default.</dd>
<dt><code>RAPTOR_OPTION_WWW_SSL_VERIFY_PEER</code><br/></dt>
<dd>Controls verifying an SSL peer during parsing / WWW. Takes an
integer value: non-0 to verify peer SSL certificate (default
1).</dd>
<dt><code>RAPTOR_OPTION_WWW_SSL_VERIFY_HOST</code><br/></dt>
<dd>Controls verifying an SSL host during parsing / WWW. Takes an
integer value: 0 none, 1 CN match, 2 host match (default). Other
values are ignored.</dd>
</dl>
<h3>Parser class changes</h3>
<p>The RDF/XML, RSS Tag Soup and RDFa parsers now pass on network,
file and entity loading parser options to the internal SAX2 to enable
enforcing of network, file and entity loading policy.</p>
<p>RDF/JSON parser handles an API change between YAJL V1 and V2.
</p>
<p>Turtle parser now returns parser errors to
<code>raptor_parse_chunk()</code>.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=488">Issue #0000488</a>
</p>
<h3>SAX2 class changes</h3>
<p>Added <code>raptor_sax2_set_uri_filter()</code> to set a URI
filter for any SAX2 calls that do internal lookups of URIs.
</p>
<p>Control file and network loading inside SAX2. Option
<code>RAPTOR_OPTION_LOAD_EXTERNAL_ENTITIES</code> now enforces
loading external XML entities and is by default enabled. If enabled,
<code>RAPTOR_OPTION_NO_FILE</code> and
<code>RAPTOR_OPTION_NO_NET</code> are also checked. All URIs loaded
are also passed through any URI filter, if set by
<code>raptor_sax2_set_uri_filter()</code>.
</p>
<h3>URI class changes</h3>
<p>Added new URI constructor
<code>raptor_new_uri_from_uri_or_file_string()</code>
to build a URI from a URI string or a filename string, normalizing
the result to a <code>file:</code> URI.
</p>
<p>Added
<code>raptor_uri_uri_string_to_counted_filename_fragment()</code> to
turn a URI string to a filename and URI fragment along with string
output string counts.
</p>
<p>Added utility methods for checking if a file: URI or filename is a
file that exists:
<code>raptor_uri_file_exists()</code> and
<code>raptor_uri_filename_exists()</code>
</p>
<h3>WWW class changes</h3>
<p>Added <code>raptor_www_set_ssl_verify_options()</code> to set SSL
verify options.
Fixes <a href="https://bugs.librdf.org/mantis/view.php?id=469">Issue# 0000469</a>.
</p>
<p>The <code>raptor_www_fetch()</code> call now returns the status
from any URI filter that returns a non-0 response.
</p>
<h3>Build changes</h3>
<p>Added <code>--with-icu-config=</code><em>PATH</em> option
to enable use of ICU for NFC checking.</p>
<p>Requires automake 1.11.2+ for <code>-Wextra-portability</code></p>
<p><code>configure</code> uses <code>AM_PROG_AR</code> to make
automake <code>-Wextra-portability</code> happy.
</p>
<h2 id="rel2_0_6"><a name="rel2_0_6">Raptor2 2.0.6 changes</a></h2>
<p>Fixed expat support which was broken in 2.0.5</p>
<p>Handle libCurl SSL options before 7.16.4 (that's 2007) since old
libcurl is still around on Enterprise (that means old) linux systems.
</p>
<h3>Sequence Changes</h3>
<p>Added utility functions to swap elements, reverse the sequence and
generate permuations:</p>
<pre>
int raptor_sequence_swap(raptor_sequence* seq,
int i, int j);
int raptor_sequence_reverse(raptor_sequence* seq,
int start_index, int length);
int raptor_sequence_next_permutation(raptor_sequence *seq,
raptor_data_compare_handler compare);
</pre>
<h2 id="rel2_0_5"><a name="rel2_0_5">Raptor2 2.0.5 changes</a></h2>
<p>Issues Fixed:</p>
<ul>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=465">0000465</a>: c99 snprintf usage</li>
<li><a href="https://bugs.librdf.org/mantis/view.php?id=476">0000476</a>: Add Format URIs to raptor_syntax_descriptions</li>