forked from dajobe/raptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.8
2234 lines (1620 loc) · 79.8 KB
/
ChangeLog.8
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
2007-12-31 Dave Beckett <[email protected]>
* src/raptor_iostream.c: (raptor_iostream_init_common): Added to
init iostream fields
* src/raptor_iostream.c: Replaced raptor_iostream_handler
structure with raptor_iostream_handler2
(raptor_new_iostream_from_handler2): Added.
(raptor_new_iostream_from_handler): Rewritten to use
raptor_new_iostream_from_handler2 and create an internal
raptor_iostream_handler2.
(raptor_new_iostream_from_sink, raptor_new_iostream_from_filename
raptor_new_iostream_from_file_handle,
raptor_new_iostream_from_string): Added for constructing read
iostreams.
(method raptor_iostream_read_bytes): Added for reading from read
iostreams.
* src/raptor.h: Added raptor_iostream_read_bytes_func Added
raptor_iostream_handler2 with version, private field and
read_bytes field. Deprecated raptor_iostream_handler structure
for raptor_iostream_handler2 structure. Added
raptor_new_iostream_from_handler2 and deprecated
raptor_new_iostream_from_handler Added
raptor_new_iostream_from_sink, raptor_new_iostream_from_filename
raptor_new_iostream_from_file_handle and
raptor_new_iostream_from_string for constructing read iostreams.
Added method raptor_iostream_read_bytes for read iostreams.
2007-12-28 Dave Beckett <[email protected]>
* src/raptor.h, src/raptor_internal.h: Move SAX2 to public
API. Added new raptor_sax2 typedef. Added XML type handlers
raptor_sax2_start_element_handler,
raptor_sax2_end_element_handler, raptor_sax2_characters_handler,
raptor_sax2_cdata_handler, raptor_sax2_comment_handler,
raptor_sax2_unparsed_entity_decl_handler,
raptor_sax2_external_entity_ref_handler. Added functions
raptor_new_sax2, raptor_free_sax2,
raptor_sax2_set_start_element_handler,
raptor_sax2_set_end_element_handler,
raptor_sax2_set_characters_handler, raptor_sax2_set_cdata_handler,
raptor_sax2_set_comment_handler,
raptor_sax2_set_unparsed_entity_decl_handler,
raptor_sax2_set_external_entity_ref_handler,
raptor_sax2_set_namespace_handler, raptor_sax2_parse_start,
raptor_sax2_parse_chunk, raptor_sax2_parse_handle_errors,
raptor_sax2_inscope_xml_language, raptor_sax2_inscope_base_uri
Moved log API to public API. Added raptor_log_level and
raptor_error_handlers typedefs. Added
raptor_error_handlers_init.
* src/raptor.h, src/raptor_xml.c: Added
raptor_xml_element_get_language
* src/raptor.h, src/raptor_qname.c: Added
raptor_qname_get_local_name and raptor_qname_get_value
* src/raptor_turtle_writer.c: cast
* src/raptor_xml_writer.c: cast
* src/raptor_turtle_writer.c: (raptor_turtle_writer_newline): Cast
for signed/unsigned int compare.
* src/raptor_xml_writer.c: (raptor_xml_writer_indent): Cast for
signed/unsigned int compare.
* tests/turtle/Makefile.am: Add bad-19.ttl
* tests/turtle/bad-19.ttl: bad-19 () in predicate position
2007-12-24 Dave Beckett <[email protected]>
* docs/raptor.types: Add gtkdoc file raptor.types
2007-12-19 Lauri Aalto <[email protected]>
* src/raptor_stringbuffer.c: (raptor_new_stringbuffer) Fixed
docs. Removed unnecessary local var and conditional.
2007-12-18 Lauri Aalto <[email protected]>
* src/turtle_parser.y: (raptor_trig_parse_recognise_syntax): Wrap
function in #ifdef RAPTOR_PARSER_TRIG. Used only if
RAPTOR_PARSER_TRIG is defined, avoids gcc warning on unused static
function.
2007-12-13 Lauri Aalto <[email protected]>
* src/raptor_uri.c: Portability: Use Windows-like path handling on
Symbian.
2007-12-09 Dave Beckett <[email protected]>
* docs/raptor-tutorial-parsing.xml: fix raptor_set_feature() call
to have 3 args
2007-11-28 Dave Beckett <[email protected]>
* tests/turtle/Makefile.am, tests/turtle/bad-17.ttl,
tests/turtle/bad-18.ttl, tests/turtle/manifest-bad.ttl: bad tests
17 and 18 to Forbid ' and '''-quoted strings
* src/turtle_lexer.l: Remove '-quoted strings
2007-11-26 Dave Beckett <[email protected]>
* autogen.sh: Update to handle OSX glibtoolize and optional ltdl
2007-11-15 Lauri Aalto <[email protected]>
* src/raptor_sax2.c: (raptor_sax2_parse_chunk) Fix compiler
warnings: unused variable, unused label.
2007-11-15 Dave Robillard <[email protected]>
* src/raptor_serialize_turtle.c:
(raptor_turtle_emit_subject_properties): Write ; statement
terminators with a leading space for consistency with . terminator
2007-11-12 Lauri Aalto <[email protected]>
* src/raptor_www.c: (raptor_www_init) Pull static initialized flag
from function scope to unit scope.
* src/raptor_nfc.h, src/raptor_nfc_data.c: Make raptor nfc data
const - eliminate ~53768 bytes of writable static.
* src/raptor_serialize_rss.c: Make raptor_rss10_spaces pointer const.
* src/n3_parser.y, src/raptor.h, src/raptor_internal.h,
src/raptor_namespace.c, src/raptor_rdfxml.c, src/raptor_rss.c,
src/raptor_sax2.c, src/raptor_serialize_dot.c,
src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c,
src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c,
src/raptor_turtle_writer.c, src/raptor_uri.c,
src/raptor_xml_writer.c, src/turtle_parser.y: Make
raptor_uri_handlers const. SOURCE COMPATIBILITY BREAK: Five raptor
API function signatures changed:
raptor_uri_set_handler()
raptor_uri_get_handler()
raptor_new_namespaces()
raptor_namespaces_init()
raptor_new_xml_writer()
* src/raptor_uri.c: (raptor_uri_set_handler) Assert inputs
2007-11-06 Lauri Aalto <[email protected]>
* src/raptor_serialize_turtle.c: fix eol style
* src/raptor_uri.c: (raptor_uri_set_handler) Treat uri handler as
const although the API does not say it is const.
* src/raptor.h: Allow RAPTOR_API to be externally defined e.g. in
a static config.h. Remove __SYMBIAN32__ case.
* src/turtle_lexer.l, src/turtle_parser.y: Rename
turtle {TRUE,FALSE} tokens to {TRUE,FALSE}_TOKEN to prevent
potential clashes with system headers.
* src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Remove
writable static data. Refactor turtle/xml writers to use a const
spaces_buffer.
* src/raptor_uri.c: Remove writable static data. Make
raptor_uri_handler const
* src/ntriples_parse.c, src/raptor_feature.c,
src/raptor_general.c: Remove writable static data. Make const
arrays const.
2007-11-05 Lauri Aalto <[email protected]>
* src/raptor_serialize_turtle.c: (raptor_turtle_serialize_init)
Fix lowmem issues: Do not use a NULL namespaces sequence or
nstack. NULL rdf_type is allowed. Check for uri creation
failures. Check for sequence push failures.
(raptor_turtle_serialize_terminate) Do not leave dangling pointers
behind.
2007-11-04 Dave Beckett <[email protected]>
* src/raptor_turtle_writer.c: (main): Write a proper double
* tests/turtle/test-28-out.ttl: Remove canonicalisation
* src/raptor_serialize_turtle.c: (raptor_turtle_emit_blank,
raptor_turtle_emit_subject, raptor_turtle_emit): Add more failure
pass ons.
* src/raptor_serialize_turtle.c: (raptor_turtle_emit_subject):
Fail when out of memory.
* src/raptor_serialize_turtle.c: (raptor_turtle_emit_subject):
Remove un-necessary use of snprintf to concat 2 strings.
* src/raptor_turtle_writer.c: (raptor_turtle_writer_double):
Removed, no longer used.
* src/raptor_turtle_writer.c: (raptor_turtle_writer_literal): Do
not canonicalise integer, double or decimal literals.
2007-10-31 Dave Beckett <[email protected]>
* tests/turtle/test-10.out, tests/turtle/test-21.out,
tests/turtle/test-22.out: Remove canonicalisation of integer and
double (Turtle spec change coming soon)
2007-10-30 Lauri Aalto <[email protected]>
* src/turtle_parser.y: Add {INTEGER,FLOATING}_LITERAL %destructors.
2007-10-30 Dave Beckett <[email protected]>
* src/turtle_lexer.l, src/turtle_parser.y: Turtle INTEGER_LITERAL
and FLOATING_LITERAL now are stored as strings, with no
canonicalisation. This is required for SPARQL compatibility.
2007-10-25 Lauri Aalto <[email protected]>
* src/n3_parser.y: (blank) Fix [ propertylist ] lowmem leaks.
* src/turtle_parser.y: (blank) Fix [ propertylist ] lowmem leaks.
2007-10-25 Dave Beckett <[email protected]>
* src/snprintf.c: Define round() and trunc() as macros if they
were not found by configure as functions/macros. They were
standardised with C99.
* configure.ac: Check for trunc and round in libm
* utils/rapper.c: Quote args to HELP_ARG_BOTH()
2007-10-24 Lauri Aalto <[email protected]>
* src/turtle_parser.y: Add destructors for turtle_parser
identifiers and sequences.
(triples) Free subject and propertylist on alloc failure.
* src/turtle_lexer.l: turtle_lexer: Check for alloc failures -
fail faster and do not pass NULLs to parser.
2007-10-23 Lauri Aalto <[email protected]>
* src/turtle_lexer.l: (QUOTEDURI) Always free stringbuffer
* src/turtle_lexer.l: turtle_lexer: Check for alloc failures
* src/n3_lexer.l: (n3_copy_string_token) Always free stringbuffer
if it is allocated.
* src/raptor_stringbuffer.c: (raptor_stringbuffer_append_string_common)
Free passed in string on alloc error if ownership was transferred.
* src/turtle_common.c: (raptor_stringbuffer_append_turtle_string)
Check for alloc failure.
* src/fix-flex, src/n3_lexer.l, src/raptor_internal.h,
src/turtle_lexer.l: Lowmem leak fixes. Ported experimental lexer
leak prevention code from sparql_lexer r12922 to
raptor {n3,turtle}_lexer. Flagged with LEXER_ALLOC_TRACKING,
disabled by default.
(raptor_parser_s) Added lexer_user_data.
* src/raptor_internal.h,
src/raptor_parse.c: (raptor_parse_uri_with_connection) Lowmem leak
fixes. Store raptor_www pointer to raptor parser object to allow
resource cleanup from client code in case raptor_parse_chunk()
fails in a lexer.
* src/n3_parser.y,
src/raptor_parse.c: (raptor_parse_uri_with_connection) Set parser
to failed state if raptor_parse_chunk() returned an error.
(raptor_n3_parse_chunk) Return error code from n3_parse().
2007-10-19 Lauri Aalto <[email protected]>
* src/n3_lexer.l, src/turtle_lexer.l: (n3_lexer, turtle_lexer)
Replace out-of-memory yyterminate()s with more informative error
reporting.
* src/fix-flex, src/n3_lexer.l, src/turtle_lexer.l: (fix-flex)
Import patches from rasqal fix-flex: remove generated
yy_fatal_error(), OOM checks to ensure_buffer_stack().
(n3_lexer_fatal_error,turtle_lexer_fatal_error) Added replacement
for generated fatal error handler.
* src/n3_lexer.l: (QNAME) OOM: Terminate instead of returning NULL
QNAME literal.
* src/n3_parser.y: (n3_parser) PREFIX should not be in %destructor list
2007-10-18 Lauri Aalto <[email protected]>
* src/fix-bison, src/fix-flex: (fix-bison, fix-flex) Fix #line
numbers in generated raptor lexers and parsers.
2007-10-15 Lauri Aalto <[email protected]>
* src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_serialize_statement)
indent tabs -> spaces
* src/raptor_serialize_rdfxmla.c: Fix low memory crashes.
(raptor_rdfxmla_serialize_init) Check for nstack alloc failure
before using it. Alloc independent objects in a batch and check
them with one if. Check the return value of raptor_sequence_push()
- moved to end since it depends on successful sequence allocation.
(raptor_rdfxmla_serialize_terminate) Set pointers to NULL to
prevent dangling pointers.
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_init)
Check sequence push ret val.
2007-10-12 Lauri Aalto <[email protected]>
* src/raptor_sequence.c: (raptor_sequence_set_at) Free passed in
data item also when returning due to invalid index.
2007-10-08 Dave Beckett <[email protected]>
* src/raptor_internal.h, src/raptor_serialize_turtle.c,
src/raptor_turtle_writer.c: (raptor_turtle_writer_literal,
raptor_turtle_writer_quoted): These may fail when out of memory,
change to return an int non-0 on failure
2007-10-06 Dave Beckett <[email protected]>
* src/raptor_sequence.c: comments on sequence design
2007-10-05 Lauri Aalto <[email protected]>
* src/raptor.h, src/raptor_sequence.c: (raptor_sequence_disown_at)
Removed. Was a hack that should not be in a public API. Functions
that needed this have been refactored to use
raptor_sequence_unshift() to get the item and its ownership.
* src/n3_parser.y: (propertyList) Refactored to not use
raptor_sequence_disown_at()
* src/turtle_parser.y: (propertyList) Refactored to not use
raptor_sequence_disown_at()
* src/raptor_sequence.c: Refactor raptor_sequence internals to
make shift/unshift as efficient as push/pop.
(raptor_free_sequence) Use RAPTOR_FREE macro instead of free() for
sequence.
(raptor_sequence_ensure) Added grow_at_front flag to describe
growth direction. Do not grow sequence if seq->capacity ==
capacity. Use RAPTOR_CALLOC instead of calloc() for sequence.
(raptor_sequence_grow) Removed.
(raptor_sequence_set_at) Do not allow setting items over +1
current size.
(main) Added test code.
2007-10-04 Lauri Aalto <[email protected]>
* src/turtle_parser.y: Memory leak fixes: Free allocated resources
and YYERROR on alloc failure.
(raptor_turtle_new_triple) Free identifiers on error.
* src/turtle_parser.y: (turtle_parse) Check lexer init return
value.
(raptor_turtle_parse_init) Return error code on failure.
* src/raptor_identifier.c: (raptor_copy_identifier) Return
non-zero on allocation failure. No need to check for non-null
uris: raptor_uri_copy returns NULL if passed in a null
uri. Removed duplicate copying of literal_language.
* src/turtle_parser.y: (triples, propertyList, literal, blank)
YYERROR on alloc failure.
(raptor_turtle_parse_terminate) Free uris only if not null.
* src/n3_parser.y: Memory leak fixes: free resources on error.
(verb, literal, resource, blank, collection) Additional checks for
alloc failures.
* src/n3_lexer.l: lexer: yyterminate() on alloc failure.
(n3_copy_token, n3_copy_string_token) Check for alloc failure.
* src/raptor.h, src/raptor_sequence.c: Add raptor_sequence_disown_at()
2007-10-02 Lauri Aalto <[email protected]>
* src/n3_parser.y: %destructors for %tokens and not just %types.
(directive) YYERROR if namespace alloc failed.
2007-10-02 Dave Beckett <[email protected]>
* NEWS.html, configure.ac, src/win32_raptor_config.h: Bumped
version to 1.4.17
2007-10-01 Lauri Aalto <[email protected]>
* src/raptor_identifier.c: (raptor_new_identifier) Free owned
items on alloc failure.
* src/n3_parser.y: (raptor_n3_new_triple) Free owned identifiers
on alloc error.
(n3_parse) Check lexer init return value.
* src/n3_parser.y: n3 parser YYERROR on alloc failure. Still leaks
memory on errors.
* src/n3_parser.y: n3 parser YYERROR on alloc failure.
* src/raptor_serialize_rdfxml.c: Fix indent + trim whitespace
2007-09-30 Dave Beckett <[email protected]>
* Snapshotted raptor_1_4_16 for 1.4.16 release (SVN 12743)
* docs/libraptor.3: Fix functions using raptor_unichar
GRDDL 2007-09-11
2007-09-29 Dave Beckett <[email protected]>
* docs/libraptor.3: Added
raptor_new_xml_element_from_namespace_local_name
* src/raptor.h, src/raptor_serialize_rdfxml.c, src/raptor_xml.c:
Alter raptor_new_xml_element_from_namespace_local_name signature
to take an xml_language parameter
* src/raptor_grddl.c: (raptor_grddl_run_recursive): Only set
content type handler when recursive parser is grddl.
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_end):
Make sure an empty legal RDF/XML document is written when 0
triples were serialized.
* src/raptor_grddl.c: Replaced all calls to get parser's current
base ID with raptor_parser_get_current_base_id
* src/raptor_guess.c: (raptor_guess_get_current_base_id): Pass on
the call to get the base ID to the internal parser using
raptor_parser_get_current_base_id
* src/raptor_internal.h,
src/raptor_parse.c: (raptor_parser_get_current_base_id): Added.
* src/raptor_grddl.c: (raptor_grddl_parse_chunk): Remove
#ifdef-out old <link> processing
* src/raptor_grddl.c: (raptor_grddl_ensure_internal_parser):
Re-init the guess parser each time so it does a fresh guess.
(raptor_grddl_run_grddl_transform_doc): Save and restore the genid
around recursive parsers, so blank nodes are numbered across
graphs.
(raptor_grddl_run_recursive): Switch to parser_name, flags args.
Pass on the filter to the internal parser call. Do not add parent
if the parser is not grddl. Pass on the ignore error flag to
raptor_grddl_fetch_uri. Save and restore the genid around
recursive parsers, so blank nodes are numbered across graphs. Do
not call rdfxml parser if selected parser is already rdfxml.
Update raptor_grddl_run_recursive calls to use parser name and
flags. Alter the <link> processing to use the guess parser to
figure out the mime type during the recursion. Do not filter the
triples.
Fixes Issue#0000238 http://bugs.librdf.org/mantis/view.php?id=238
* src/raptor_www.c: (raptor_www_file_handle_fetch): Ensure the
buffer has a NUL after the last byte read, it helps elsewhere when
using str*() functions on the results - such as guessing the
parser from content.
* src/raptor_grddl.c: (raptor_grddl_parse_chunk): Use
RAPTOR_LIBXML_HTML_PARSE_NONET to decide whether to enable libxml
HTML_PARSE_NONET with the html parser.
* configure.ac: Add test for libxml HTML_PARSE_NONET since it not
a define, it cannot be done at run-time with #ifdef
Define RAPTOR_LIBXML_HTML_PARSE_NONET if available
* src/raptor_grddl.c: Add declaration for libxml_options
* src/raptor_grddl.c: (raptor_grddl_parse_chunk): Use
RAPTOR_LIBXML_XML_PARSE_NONET to set XML nonet option if it was
set with raptor feature nonet.
* tests/grddl/test-01.html: lie about the mime type in order to
get the test to work
* src/raptor_grddl.c: (raptor_grddl_uri_xml_parse_bytes): Use
RAPTOR_LIBXML_XML_PARSE_NONET to check for enum value
XML_PARSE_NONET
* src/raptor_sax2.c: (raptor_sax2_parse_chunk): Use
RAPTOR_LIBXML_XML_PARSE_NONET to check for XML_PARSE_NONET enum
value.
* tests/grddl/Makefile.am: Call rapper with -f noNet to prevent
unnecessary fetches of HTML DTDs
* configure.ac: Add test for libxml XML_PARSE_NO_NET since it not
a define, it cannot be done at run-time with #ifdef
Define RAPTOR_LIBXML_XML_PARSE_NONET if available
* src/raptor_grddl.c: (raptor_grddl_fetch_uri): Reject a URI with
feature noNet only if it is not a file URI
* configure.ac, tests/Makefile.am, tests/grddl,
tests/grddl/Makefile.am, tests/grddl/data-01.nt,
tests/grddl/data-01.rdf, tests/grddl/data-02.rdf,
tests/grddl/test-01.html, tests/grddl/test-01.out: Added
tests/grddl dir and test-01
* AUTHORS: Added Lauri Aalto
2007-09-27 Lauri Aalto <[email protected]>
* src/n3_parser.y: (raptor_n3_parse_terminate) Do not assume the
parser is fully initialized.
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_ensure_writen_header,
raptor_rdfxml_serialize_statement) Memory leak fixes: make sure
base_uri is freed.
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_ensure_writen_header)
Memory leak fix. Set context->written_header flag early to prevent
running the function again when a previous call to this function
failed.
* src/raptor_uri.c: (raptor_uri_to_relative_counted_uri_string)
Fix memory leak - free uri details if suffix allocation fails.
2007-09-26 Dave Beckett <[email protected]>
* autogen.sh: Added an inline perl script to grep out the version
from programs.
2007-09-26 Lauri Aalto <[email protected]>
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_statement)
Skip statements with bad predicate uris, do not return an error.
* src/raptor_uri.c: (raptor_default_new_uri,
raptor_uri_path_make_relative_path,
raptor_uri_to_relative_counted_uri_string,
raptor_uri_uri_string_to_filename_fragment) Check for alloc
failures.
* src/raptor_serialize_rdfxml.c:
(raptor_rdfxml_serialize_statement) Make sure
xml_writer->current_element does not become a dangling pointer on
error.
(raptor_rdfxml_serialize_end) No-op if context->rdf_RDF_element is NULL.
* src/raptor_uri.c: (raptor_uri_to_counted_string) Copy uri
string, not uri struct - worked previously with raptor_uris but
breaks with librdf_uris. No need to allocate +sizeof(char*).
* src, tests, utils: Props: ignore .exes
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_ensure_writen_header)
Forgot to return 0 on success - oops
2007-09-25 Dave Beckett <[email protected]>
* autogen.sh: Use 3-part versions with perl to decode them. Still
broken for autoconf
2007-09-25 Lauri Aalto <[email protected]>
* src/raptor_xml_writer.c: (raptor_iostream_write_xml_element_start)
Check for alloc failures and clean up nspace_declarations on
failure.
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_ensure_writen_header)
Check for alloc failures. Return an error code on failure.
(raptor_rdfxml_serialize_statement) Check for
raptor_rdfxml_ensure_writen_header() return code.
(raptor_rdfxml_ensure_writen_header) Ignore
raptor_rdfxml_ensure_writen_header() return code in a cleanup
function.
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_statement)
Get a copy of predicate uri string for modification. Check for
alloc failures and clean up on error. Refactored to use
raptor_new_xml_element_from_namespace_local_name().
* src/raptor.h, src/raptor_xml.c: Refactoring: Added
raptor_new_xml_element_from_namespace_local_name(). Pulled from
rasqal_query_results_new_xml_element() - the same xml element
creation pattern recurs in other serializers as well.
2007-09-24 Lauri Aalto <[email protected]>
* autogen.sh: Do not compare versions as decimal, e.g. automake
1.10 should be treated newer than 1.7.
(update_prog_version) Convert [z.]x.y version strings to 100x+y.
2007-09-23 Dave Beckett <[email protected]>
* src/raptor_grddl.c: Revert GRDDL to the main algorithm of around
12377 which passes the tests again and
Fixes Issue#0000239 http://bugs.librdf.org/mantis/view.php?id=239
(raptor_grddl_parser_add_parent): Restored.
(raptor_grddl_copy_state): Removed
(raptor_grddl_new_child_parser): Removed.
(raptor_grddl_run_recursive): Remove reference to the above -
replacing raptor_grddl_new_child_parser with
raptor_grddl_ensure_internal_parser and replacing 'nparser'
references with grddl_parser->internal_parser.
* src/raptor_grddl.c: (raptor_grddl_discard_message): debug
message tweak.
* examples, tests, docs, docs/tmpl: props
* docs/tmpl/section-uri-factory.sgml, docs/tmpl/section-uri.sgml,
docs/tmpl/section-xml-namespace.sgml: Updated gtkdoc templates for
raptor_uri_compare
2007-09-21 Lauri Aalto <[email protected]>
* src/raptor.h, src/raptor_namespace.c:
(raptor_new_namespace): Check for alloc failures and clean up on
error.
(raptor_namespaces_init): Changed to return an error code.
* src/raptor_parse.c: (raptor_parse): Check for alloc
failures. Clean up on failure.
* src/raptor_rdfxml.c: (raptor_rdfxml_start_element_handler)
return on fatal error, do not use NULL pointers.
(raptor_rdfxml_end_element_grammar) abort() after reporting a
fatal error.
* src/raptor_serialize.c: (raptor_new_serializer): Check for alloc
failures. Clean up on failure.
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_init):
Check for alloc failures. Clean up on failure.
* src/raptor_namespace.c: raptor_namespace.c: Fix comment typo
* src/raptor_abbrev.c: (raptor_abbrev_subject_add_property) Free
passed in nodes on error.
* src/raptor_abbrev.c, src/raptor_sequence.c: raptor_sequence:
Delete items to be inserted on error.
Fixes Issue#0000237 http://bugs.librdf.org/mantis/view.php?id=237
* src/fix-bison: bison parsers / fix-bison: Fix compiler warning
about empty declarations (remove semicolon).
* src/raptor_parse.c: (raptor_guess_parser_name) Fix compiler
warnings about unnecessary const cast
* src/raptor_rfc2396.c: (raptor_new_uri_detail) Check for alloc
failure.
* src/raptor_serialize_rdfxml.c: raptor_serialize_rdfxml: Fix
compiler warnings about uninitialized variables.
* src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_ensure_writen_header)
Fix compiler warning about uninitialized variable.
* src/raptor_xml_writer.c: (raptor_iostream_write_xml_element_start)
Check for alloc failure
* src/raptor_internal.h: raptor_internal.h: Allow
RAPTOR_WWW_BUFFER_SIZE to be externally defined. Can save stack
space in some resource-constrained environments with smaller
buffers.
* src/raptor_internal.h: raptor_internal.h: Allow
RAPTOR_ASSERT_DIE to be externally defined e.g. in a makefile.
* src/raptor_internal.h: raptor_internal.h: Rearrange include file
guards to include stdlib.h without dmalloc.
* src/raptor_general.c: (raptor_init) Set initialized flag early
to allow cleanup with raptor_finish() on init errors.
* src/raptor_general.c: (raptor_log_error) Do not abort() on fatal
messages - leave it up to caller to enable resource cleanup.
* src/raptor_general.c: (raptor_statement_part_as_counted_string)
Fix compiler warnings about uninitialized variables.
* src/raptor_rss_common.c, src/raptor_sax2.c: Fix compiler
warnings about possible unwanted semicolons
* src/raptor_serialize.c: Fix typos in comments
* src/raptor_sax2.c: Fix indent
* Makefile.am, autogen.sh, configure.ac, data/Makefile.am,
docs/Makefile.am, examples/Makefile.am, src/Makefile.am,
tests/22-rdf-syntax-ns.rdf, tests/Makefile.am,
tests/all-escape.rdf, tests/bad-00.rdf, tests/bad-01.rdf,
tests/bad-02.rdf, tests/bad-03.rdf, tests/bad-04.rdf,
tests/bad-05.rdf, tests/bad-06.rdf, tests/bad-07.rdf,
tests/bad-08.rdf, tests/bad-09.rdf, tests/bad-10.rdf,
tests/bad-11.rdf, tests/bad-12.rdf, tests/bad-13.rdf,
tests/bad-14.rdf, tests/bad-15.rdf, tests/bad-16.rdf,
tests/bad-17.rdf, tests/bad-18.rdf, tests/bad-19.rdf,
tests/bad-20.rdf, tests/bad-21.rdf, tests/bad-22.rdf,
tests/bad-23.rdf, tests/daml-oil.rdf, tests/ex-00.rdf,
tests/ex-01.rdf, tests/ex-02.rdf, tests/ex-03.rdf,
tests/ex-04.rdf, tests/ex-05.rdf, tests/ex-06.rdf,
tests/ex-07.rdf, tests/ex-08.rdf, tests/ex-09.rdf,
tests/ex-10.rdf, tests/ex-11.rdf, tests/ex-12.rdf,
tests/ex-13.rdf, tests/ex-14.rdf, tests/ex-15.rdf,
tests/ex-16.rdf, tests/ex-17.rdf, tests/ex-18.rdf,
tests/ex-19.rdf, tests/ex-20.rdf, tests/ex-21.rdf,
tests/ex-22.rdf, tests/ex-23.rdf, tests/ex-24.rdf,
tests/ex-25.rdf, tests/ex-26.rdf, tests/ex-27.rdf,
tests/ex-28.rdf, tests/ex-29.rdf, tests/ex-30.rdf,
tests/ex-31.rdf, tests/ex-32.rdf, tests/ex-33.rdf,
tests/ex-34.rdf, tests/ex-35.rdf, tests/ex-36.rdf,
tests/ex-37.rdf, tests/ex-38.rdf, tests/ex-39.rdf,
tests/ex-40.rdf, tests/ex-41.rdf, tests/ex-42.rdf,
tests/ex-43.rdf, tests/ex-44.rdf, tests/ex-45.rdf,
tests/ex-46.rdf, tests/ex-47.rdf, tests/ex-48.rdf,
tests/ex-49.rdf, tests/ex-51.rdf, tests/ex-53.rdf,
tests/ex-54.rdf, tests/ex-55.rdf, tests/ex-56.rdf,
tests/ex-57.rdf, tests/ex-58.rdf, tests/ex-59.rdf,
tests/ex-60.rdf, tests/ex-61.rdf, tests/ex-62.rdf,
tests/turtle/Makefile.am, tests/turtle/bad-00.ttl,
tests/turtle/bad-01.ttl, tests/turtle/bad-02.ttl,
tests/turtle/bad-03.ttl, tests/turtle/bad-04.ttl,
tests/turtle/bad-05.ttl, tests/turtle/bad-06.ttl,
tests/turtle/bad-07.ttl, tests/turtle/bad-08.ttl,
tests/turtle/bad-09.ttl, tests/turtle/bad-10.ttl,
tests/turtle/bad-11.ttl, tests/turtle/bad-12.ttl,
tests/turtle/bad-13.ttl, tests/turtle/bad-14.ttl,
tests/turtle/manifest-bad.ttl, tests/turtle/manifest.ttl,
tests/turtle/rdf-schema.out, tests/turtle/rdf-schema.ttl,
tests/turtle/rdfq-results.out, tests/turtle/rdfq-results.ttl,
tests/turtle/rdfs-namespace.out, tests/turtle/rdfs-namespace.ttl,
tests/turtle/test-00.out, tests/turtle/test-00.ttl,
tests/turtle/test-01.out, tests/turtle/test-01.ttl,
tests/turtle/test-02.out, tests/turtle/test-02.ttl,
tests/turtle/test-03.out, tests/turtle/test-03.ttl,
tests/turtle/test-04.out, tests/turtle/test-04.ttl,
tests/turtle/test-05.out, tests/turtle/test-05.ttl,
tests/turtle/test-06.out, tests/turtle/test-06.ttl,
tests/turtle/test-07.out, tests/turtle/test-07.ttl,
tests/turtle/test-08.out, tests/turtle/test-08.ttl,
tests/turtle/test-09.out, tests/turtle/test-09.ttl,
tests/turtle/test-10.out, tests/turtle/test-10.ttl,
tests/turtle/test-11.out, tests/turtle/test-11.ttl,
tests/turtle/test-12.out, tests/turtle/test-12.ttl,
tests/turtle/test-13.out, tests/turtle/test-13.ttl,
tests/turtle/test-14.out, tests/turtle/test-14.ttl,
tests/turtle/test-15.out, tests/turtle/test-15.ttl,
tests/turtle/test-16.out, tests/turtle/test-16.ttl,
tests/turtle/test-17.out, tests/turtle/test-17.ttl,
tests/turtle/test-18.out, tests/turtle/test-18.ttl,
tests/turtle/test-19.out, tests/turtle/test-19.ttl,
tests/turtle/test-20.out, tests/turtle/test-20.ttl,
tests/turtle/test-21.out, tests/turtle/test-21.ttl,
tests/turtle/test-22.out, tests/turtle/test-22.ttl,
tests/turtle/test-23.out, tests/turtle/test-23.ttl,
tests/turtle/test-24.out, tests/turtle/test-24.ttl,
tests/turtle/test-25.out, tests/turtle/test-25.ttl,
tests/turtle/test-26.out, tests/turtle/test-26.ttl,
tests/turtle/test-27.out, tests/turtle/test-27.ttl,
tests/turtle/test-28-out.ttl, tests/turtle/test-28.out,
tests/turtle/test-28.ttl, tests/turtle/test-29.out,
tests/turtle/test-29.ttl, tests/turtle/test-30.out,
tests/turtle/test-30.ttl, utils/Makefile.am, win32/Makefile.am:
Fix EOL issues when building svn version on cygwin.
Partial fix to http://bugs.librdf.org/mantis/view.php?id=236
* tests/Makefile.am, tests/turtle/Makefile.am: Added $(EXEEXT)s to
Makefiles to fix "make clean" on cygwin. Partial fix to
Issue#0000235 http://bugs.librdf.org/mantis/view.php?id=235
* autogen.sh: raptor autogen.sh $dir quoting. Partial fix to
Issue#0000234 http://bugs.librdf.org/mantis/view.php?id=234
2007-09-20 Dave Beckett <[email protected]>
* src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax):
Check for presence of html in the mime type correctly.
2007-09-19 Dave Beckett <[email protected]>
* src/raptor_parse.c: (raptor_parse_uri_with_connection): Ensure a
parser is started if it wasn't started during WWW retrieval -
typically this is only if the file was empty (o bytes). Some RDF
syntaxes are legal as an empty file so can produce a valid empty
graph, such as N-Triples and Turtle.
2007-09-17 Dave Beckett <[email protected]>
* src/raptor_turtle_writer.c: Add xsd boolean, decimal, double,
integer URIs to structure
(raptor_turtle_writer_literal): Use raptor_uri_equal instead of
strcmps. In Redland, this means no strcmps.
* src/raptor_serialize_turtle.c: (raptor_turtle_serialize_start):
Remove call to raptor_turtle_writer_base since
raptor_new_turtle_writer will do it if necessary.
* src/raptor_turtle_writer.c: (raptor_new_turtle_writer): Call
raptor_turtle_writer_base with initial base URI if there is one.
(raptor_turtle_writer_base): Adedd. Back to possibly generating a
relative base, allowing this to be called multiple times and
setting the actual writer base URI, potentially to NULL.
(main): Adjust expected result to expect an @base
* tests/turtle/test-28-out.ttl: @base and relative prefix
* src/raptor_internal.h, src/raptor_serialize_turtle.c,
src/raptor_turtle_writer.c: (raptor_turtle_writer_base): Added to
generate @base as an absolute URI.
(raptor_turtle_serialize_start): Call it if there is an output
base URI.
2007-09-16 Dave Beckett <[email protected]>
* docs/raptor-sections.txt: Add raptor_uri compare_func funcs
* tests/turtle/manifest.ttl: Added test-26 to test-30 to manifest.
* src/raptor_uri.c: (main): Ensure called is inited
* src/raptor_uri.c: (main): Add tests for raptor_uri_compare and
interface versioning.
* src/raptor_uri.c: (raptor_uri_set_handler): Adjust handler to
not have to point to const data and to have V1 or V2 declared by
setting the initialised field. Truncate it to 1 or 2.
(raptor_uri_compare): Use interface version to decide whether to
invoke the uri_compare method.
(struct raptor_uri_default_handler): Set URI Interface version to 2.
* src/raptor.h: (struct raptor_uri_handler): Add URI Interface
versions 1 and 2 - adding raptor_uri_compare_func. Overload the
'initialised' field to store the API version. Existing Redland
sets that to 1.
(raptor_uri_set_handler): Adjust handler to not have to point to
const data.
* configure.ac, docs/libraptor.3, docs/raptor-parsers.xml,
raptor.rdf.in, src/raptor_grddl.c, src/raptor_internal.h,
src/raptor_parse.c: Remove RDFa support for now
2007-09-15 Dave Beckett <[email protected]>
* docs/libraptor.3: 1.4.16
2007-09-15 Dave Robillard <[email protected]>
* src/raptor.h, src/raptor_uri.c: (raptor_uri_handler): Move new
raptor_uri_compare method to end of struct to limit ABI breakage.
2007-09-15 Dave Beckett <[email protected]>
* src/raptor_internal.h, src/raptor_parse.c, src/raptor_rdfxml.c,
src/raptor_set.c: Make raptor_set_test less chatty
* tests/turtle/Makefile.am: Re-added test-30 now it's in SVN
* tests/turtle/test-30.out, tests/turtle/test-30.ttl: test-30 for @base
2007-09-15 Dave Robillard <[email protected]>
* docs/tmpl/section-uri.sgml, src/raptor.h, src/raptor_abbrev.c,
src/raptor_uri.c: (raptor_uri_compare): Added for librdf
overloading (rather than using strcmp directly).
* tests/turtle/Makefile.am: Remove references to nonexistant test-30
* src/raptor_abbrev.c, src/raptor_internal.h,
src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: Use
AVL tree rather than sequence for abbreviated serialisers (turtle
& rdfxmla), significant performance improvement for large
serialisations.
(raptor_abbrev_node_lookup): Use AVL tree search against
abbrev_node instead of linear sequence search.
(raptor_abbrev_node_cmp): Adapt old raptor_abbrev_node_equals to
provide strcmp-like ordering.
(raptor_abbrev_node_equals): Change to trivial wrapper around new
raptor_abbrev_node_cmp.
2007-09-14 Dave Robillard <[email protected]>
* src/raptor_serialize_turtle.c: Fix unwanted blank line at end of
Turtle list abbreviation. e.g. before:
:foo :bar (
1
2
3
) .
after:
:foo :bar (
1
2
3
) .
2007-09-11 Dave Beckett <[email protected]>
* src/turtle_lexer.l, src/turtle_parser.y: Added turtle @base
* tests/turtle/Makefile.am: Adde test-30 for @base
2007-09-08 Dave Beckett <[email protected]>
* src/raptor_sax2.c: (raptor_sax2_finish): Reset libxml error
handlers to defaults.
Fixes Issue#0000232 http://bugs.librdf.org/mantis/view.php?id=232
2007-09-06 Dave Beckett <[email protected]>
* src/turtle_common.c: docs fix
2007-09-03 Dave Beckett <[email protected]>
* src/turtle_lexer.l: {QUOTEDURI}: Apply turtle escapes to URIs
* tests/turtle/test-29.out, tests/turtle/test-29.ttl: Fix line
endings of test-29
* tests/turtle/Makefile.am, tests/turtle/test-29.out,
tests/turtle/test-29.ttl: test-29: Test all ntriples/turtle
escapes U+0001 to U+007F
* src/snprintf.c: Define __USE_ISOC99 to 1
* src/raptor_rss.c: (raptor_rss_end_element_handler): Fixed a bug
that silently discarded non-empty fields -- oops.
* src/raptor_rss.c: raptor_rss_uplift_map: copy atom:updated to
dc:date
* configure.ac: Make sure to define HAVE_CURL_CURL_H when
curl/curl.h is found
2007-09-01 Dave Beckett <[email protected]>
* docs/libraptor.3: Added RDFa
2007-08-28 Dave Beckett <[email protected]>
* docs/libraptor.3: Added description of new 1.4.16 functions
2007-08-27 Dave Beckett <[email protected]>
* src/raptor_grddl.c: GRDDL and RDFa
* src/snprintf.c: just leave raptor_format_float for now.
* docs/rdfcat.c, docs/rdfprint.c, docs/rdfserialize.c: Added C examples
2007-08-26 Dave Beckett <[email protected]>
* docs/raptor-tutorial-parsing.xml: parsing filtering tutorial docs
* docs/raptor-parsers.xml: GRDDL docs
* src/raptor_grddl.c: (raptor_grddl_fetch_uri): Set WWW timeout
from value of new parser feature RAPTOR_FEATURE_WWW_TIMEOUT
* src/raptor.h, src/raptor_feature.c, src/raptor_parse.c,
src/raptor_sax2.c, src/raptor_serialize.c,
src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Added parser
feature RAPTOR_FEATURE_WWW_TIMEOUT
2007-08-25 Dave Beckett <[email protected]>
* src/raptor_general.c, src/raptor_nfc.c,
src/raptor_serialize_ntriples.c, src/raptor_xml.c: Use
raptor_unichar instead of unsigned long for a Unicode codepoint
* src/raptor_utf8.c: (raptor_unicode_char_to_utf8,
raptor_utf8_to_unicode_char,
raptor_unicode_is_xml11_namestartchar,
raptor_unicode_is_xml10_namestartchar,
raptor_unicode_is_xml11_namechar, raptor_unicode_is_xml10_namechar
raptor_unicode_is_namestartchar, raptor_unicode_is_namechar):
Updated to take a raptor_unichar argument.
* src/raptor_internal.h: Update the raptor_unicode_* functions
that take a unicode char to use raptor_unichar:
raptor_unicode_is_namestartchar and raptor_unicode_is_namechar
* src/raptor.h: Define raptor_unichar for a Unicode codepoint
instead of unsigned long. Update the raptor_unicode_* functions
that take a unicode char to use it: raptor_unicode_char_to_utf8,
raptor_utf8_to_unicode_char,
raptor_unicode_is_xml11_namestartchar,
raptor_unicode_is_xml10_namestartchar,
raptor_unicode_is_xml11_namechar and
raptor_unicode_is_xml10_namechar.