forked from dajobe/librdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.4
4958 lines (3427 loc) · 165 KB
/
ChangeLog.4
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
2003-12-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* utils/rdfproc.c: tweak help text
* librdf/rdf_parser.h:
Note parser syntax name, not raptor factory name, which is in the
raptor parser context.
* librdf/rdf_parser_raptor.c:
Separate registered name from raptor parser name for all calls of
raptor_new_parser.
(librdf_parser_raptor_init): Convert the legacy parser name
'raptor' into 'rdfxml' internally.
(librdf_parser_raptor_constructor): Use raptor_parsers_enumerate
and hard code mime types, URIs here for now. Can use
raptor_syntaxes_enumerate later.
* raptor/raptor_rss.c, raptor/raptor_parse.c,
raptor/ntriples_parse.c, raptor/n3_parser.y: Use expanded
raptor_parser_register_factory with mime_type and uri_string args
where appropriate.
* raptor/libraptor.3, raptor/raptor.h: Added raptor_syntaxes_enumerate
* raptor/raptor_general.c (raptor_parser_register_factory):
Add mime_type and uri_string args, both optional.
(raptor_syntaxes_enumerate): Added to get syntax name, label,
mime_type or uri_string - all optional.
(raptor_parsers_enumerate): Uses raptor_syntaxes_enumerate.
* raptor/raptor_internal.h: Store parser mime_type, URI in
raptor_parser_factory Update raptor_parser_register_factory to
take mime_type, uri_string args.
* utils/rdfproc.c: tweak help formatting
* raptor/configure.ac: Bumped version to 1.2.0
* raptor/configure.ac:
Update RAPTOR_LIBTOOL_VERSION to reflect interfaces added,
none removed giving current 2:0:1
* raptor/libraptor.3: nroff/man style tweaks
* raptor/libraptor.3: Style
2003-12-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/configure.ac: words
* raptor/configure.ac:
Make flex version warnings mention N-Triples Plus more
* librdf/rdf_model_storage.c, librdf/rdf_model.h,
librdf/rdf_model.c (librdf_model_get_storage): Added, with factory
method to match - optional. The model_storage implementation
implements it.
2003-12-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* utils/rdf-tree.c, utils/rdf-load.c: indented
* raptor/libraptor.3: bump date
* raptor/raptor_stringbuffer.c (main):
Do not free as_string returned strings
* raptor/raptor_stringbuffer.c: brackets
* raptor/raptor_stringbuffer.c (raptor_free_stringbuffer):
Free any constructed string.
* configure.ac: Add AC_DEFINE for local MD5, SHA1, RIPEMD160
* utils/rdfproc.c: Tweak help text to look better without getopt_long
* librdf/rdf_serializer_rdfxml.c:
Some more unsigned char fixes for URIs
(librdf_serializer_print_statement_as_rdfxml): Try harder to find a
maximal length legal property element name; now works for
foaf:mbox_sha1sum - patch from Morten
* docs/api.sgml.in, docs/Makefile.am:
Added storage_mysql storage_tstore
* raptor/raptor_xml_writer.c:
Use raptor_stringbuffer to better grow the output cdata.
* raptor/raptor_stringbuffer.c: stringbuffer now uses unsigned char
Removed raptor_new|free_stringbuffer_node - used once, now inlined.
(raptor_stringbuffer_append_string_common): Added with
common append code merged here.
(raptor_stringbuffer_append_counted_string,
raptor_stringbuffer_append_string): Added do_copy arg.
(main): Test code updated for api changes.
* raptor/raptor_internal.h:
Added prototypes for raptor_stringbuffer class to internal API
* raptor/Makefile.am:
Re-added raptor_stringbuffer.c and raptor_stringbuffer_test
2003-12-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_uri.c, librdf/rdf_stream.c, librdf/rdf_statement.c, librdf/rdf_query.c, librdf/rdf_node.c, librdf/rdf_model.c, librdf/rdf_iterator.c, librdf/rdf_hash.c:
More C++ cast fixes mostly near URI and literal strings in test
code, the main function.
* librdf/Makefile.am: Added rdf_digest_sha1.c
* librdf/rdf_digest_sha1.c: SHA1 digest code
2003-12-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/rapper.1: Updated for 1.1.0, -a is gone. Added ntriples-plus
* raptor/libraptor.3: parser name is ntriples-plus
* raptor/libraptor.3: Updated for 1.1.0
* raptor/raptor.h:
remove raptor_namespaces_end_namespace - does not exist.
2003-12-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/Makefile.am:
Remove raptor_stringbuffer.c/test from dist - not used at present.
* raptor/configure.ac:
Added --with-xml-names to choose XML 1.0 name checking (default) or 1.1
* raptor/raptor_utf8.c (raptor_unicode_is_namestartchar):
Update to Namespaces in XML 1.1 WD
http://www.w3.org/TR/2003/PR-xml-names11-20031105/#NT-NCNameStartChar
and Extensible Markup Language (XML) 1.1 PR
http://www.w3.org/TR/2003/PR-xml11-20031105/#NT-NameStartChar
(raptor_unicode_is_namechar): Updated comment, no code changes
needed.
* raptor/tests/ntriplesplus/Makefile.am: No check-warn-rdf tests yet
* raptor/raptor_utf8.c:
Use RAPTOR_NFC_CHECK to wrap any use of the glib g_utf8_normalize.
* raptor/configure.ac: Define RAPTOR_NFC_CHECK when NFC check is needed
* raptor/configure.ac:
Added --disable-nfc-check to disable Unicode NFC checking even if a
suitable glib is present and providing it. Otherwise, autodetects
as before.
2003-12-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/examples/Makefile.am: Removed REDLAND_LIBS
2003-12-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* perl/Makefile.PL: OSX old perl before 5.8
* perl/Makefile.PL:
Another attempt to handle MakeMaker changes since perl5.8
* perl/Makefile.am:
Compile perl without the -W flags; it's just too noisy.
* librdf/redland.spec.in: Don't install perl twice.
2003-12-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_serializer_rdfxml.c (rdf_serializer_rdfxml_print_as_xml_content):
Redland strings are always UTF-8 and for now, the output encoding
is always UTF-8 so don't encode high bits, emit them.
* librdf/rdf_serializer_rdfxml.c: o
* librdf/rdf_serializer_rdfxml.c:
(librdf_serializer_rdfxml_serialize_model) Free rdf:RDF qname.
* raptor/raptor_parse.c, librdf/rdf_parser_raptor.c:
Update for changed raptor_generate_id handler calls - no const.
* raptor/raptor_general.c, raptor/raptor.h, raptor/raptor_internal.h:
raptor_generate_id handler does not take const string
* raptor/raptor_general.c, raptor/raptor.h, raptor/raptor_internal.h:
raptor_generate_id returns non const
* raptor/ntriples_parse.c (raptor_ntriples_parse_line):
Casts, unsigned char* for blank node IDs.
* raptor/ntriples_parse.c (raptor_ntriples_parse_line):
Enforce predicate must be URIref
2003-12-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* perl/t/test1.t: Don't use last when not in a loop
* raptor/ntriples_parse.c (raptor_ntriples_parse_line):
Pass blank node identifier generation
through raptor_generate_id. Rewrite returns into setting rc and jump
to cleanup to ensure allocated blank node IDs are freed.
* utils/Makefile.am: Added EXTRA_PROGRAMS to CLEANFILES
* utils/rdf-load.c, utils/rdf-tree.c:
Put explicit \n in multiline strings
* utils/rdf-tree.c:
Updates from Morten to use openssl lhash - this isn't portable.
* librdf/rdf_storage_mysql.c:
(librdf_storage_mysql_context_serialise_next_statement):
Fixes for over-eager use of multi-line string - add spaces before
the newlines.
Correct subject and object node creations.
* librdf/redland.pc.in: Add @LIBRDF_LDFLAGS@ @LIBRDF_LIBS@ to libs
* librdf/Makefile.am:
Use LIBRDF_EXTERNAL_CPPFLAGS, LIBRDF_EXTERNAL_LIBS
* redland-src-config.in: Put redland cflags, links first
* redland-config.in: Use LIBRDF_EXTERNAL_CPPFLAGS, LIBRDF_EXTERNAL_LIBS
* configure.ac: Added LIBRDF_EXTERNAL_CPPFLAGS,
LIBRDF_EXTERNAL_LIBS used for system raptor
* raptor/raptor.pc.in: Restore LDFLAGS, LIBS
* perl/Makefile.PL: Don't need MEM_LIBS in OBJECT
* utils/rdfproc.1: store to store-name in header
* utils/rdfproc.c: Added file|uri to parsing help
* utils/rdfproc.1: Document -n, -s, -t and parsing now turns files
into URIs if they exist.
* raptor/raptor-src-config.in: Removed --static-libs
* utils/rdfproc.c:
Added -n new - default is not to overwrite, i.e. parsing now appends
Added -s storage
Added -t storage-options
Parsing now turns files into URIs if they exist.
2003-12-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* php/test.php: tidy prints
* librdf/redland.pc.in: redland.pc.in
* php/test.php:
Better test code. Serializing crashes it - to fix later.
* php/Makefile.am:
Reorder compile args so PHP libs are first and overridden if need be.
* redland-src-config.in: Kill --static-libs
Use @with_raptor@ to pick either raptor-src-config or raptor-config
* configure.ac: AC_SUBST with_raptor
* php/Makefile.am:
Apply redland_wrap.c.patch when building redland_wrap.c
Use -d extension_dir=. for test-php
* php/redland_wrap.c.patch:
Patch to PHP wrapper to return empty string not C NULL
* librdf/Makefile.am: Install redland.pc to libdir/pkgconfig
* librdf/redland.spec.in: Updates:
- require raptor 1.1.0
- require libxml 2.4.0 or newer
- added pkgconfig redland.pc
- split redland/devel package shared libs correctly
* configure.ac: Added librdf/redland.pc
* librdf/Makefile.am: Added redland.pc.in
* raptor/raptor.pc.in: Just link -lraptor
* raptor/configure.ac: Remove use of have_redland for expat
sources (no longer shipped with redland anyway)
* raptor/configure.ac: Remove redland source check.
* configure.ac, Makefile.am:
Split SD subdirs into SD_PRE (must be made before librdf)
and SD_POST (after). raptor goes into PRE so that it is
both compiled and installed before librdf.
* raptor/Makefile.am: No need for librdf.la rule
* raptor/rdfdump.c, raptor/raptor_stringbuffer.c,
raptor/raptor_set.c, raptor/raptor_namespace.c,
raptor/Makefile.am: Remove all RAPTOR_IN_REDLAND code use of
REDLAND_LIBS, REDLAND_CFLAGS. Now the test and rdfdump programs
always just use raptor alone.
2003-12-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* perl/Makefile.am: Remove use of prefix; install where perl wants it
* perl/Makefile.PL:
Try again with the MakeMaker PM hash. Remove double RDF/RDF
* librdf/rdf_serializer_rdfxml.c (librdf_serializer_rdfxml_terminate):
Allow raptor_free_namespaces to
free the entire stack, including pcontext->rdf_ns
* perl/Makefile.am, perl/update-perl-api.pl: Remove old API updater
* librdf/rdf_node.h:
librdf_node_get_literal_value_as_latin1 returning char*
* librdf/rdf_node.c:
(librdf_node_get_literal_value_as_latin1) Returning char*
* examples/example4.c:
Removed body of code since it was turned into rdfproc.
* librdf/rdf_parser.h:
Update librdf_parser_parse_string_as_stream prototype
* librdf/rdf_model.h: Update librdf_model_query_string prototype
* librdf/rdf_storage_mysql.c:
(librdf_storage_mysql_node_hash) Casts for node char const strings.
* utils/Makefile.am:
Add mysql-utils target, don't build the mysql utilities by default.
* utils/rdf-digest.c, utils/rdf-load.c, utils/rdf-tree.c:
Redland MySQL storage utilities by Morten Frederiksen
* utils/rdfproc.c:
Updates for raptor changes - all URI strings are unsigned char*
Update URI APIs here to match.
Update all use of literal (UTF-8) strings to unsigned char* also.
Add more casts to make C++ happy especially near string functions
and malloc.
* utils/Makefile.am: Add redland libs, cppflags, cflags
* librdf/rdf_storage_mysql.c:
(librdf_storage_mysql_node_hash) Fix to created digest to distinguish
URIs 'R', literals 'L' and blank node identifiers 'B' in database.
(librdf_storage_mysql_context_serialise_next_statement): Call error
functions with the right world value.
* examples/example4.c, examples/example3.c, examples/example2.c, examples/example1.c, librdf/rdf_uri.h, librdf/rdf_uri.c, librdf/rdf_stream.c, librdf/rdf_storage_mysql.c, librdf/rdf_storage_list.c, librdf/rdf_storage.c, librdf/rdf_statement.h, librdf/rdf_statement.c, librdf/rdf_serializer_rdfxml.c, librdf/rdf_serializer_raptor.c, librdf/rdf_serializer.h, librdf/rdf_serializer.c, librdf/rdf_query_triples.c, librdf/rdf_query.h, librdf/rdf_query.c, librdf/rdf_parser_raptor.c, librdf/rdf_parser.h, librdf/rdf_parser.c, librdf/rdf_node.h, librdf/rdf_node.c, librdf/rdf_model_storage.c, librdf/rdf_model.h, librdf/rdf_model.c, librdf/rdf_iterator.c, librdf/rdf_init.h, librdf/rdf_init.c, librdf/rdf_hash_memory.c, librdf/rdf_hash_bdb.c, librdf/rdf_hash.h, librdf/rdf_hash.c, librdf/rdf_concepts.c:
Updates for raptor changes - all URI strings are unsigned char*
Update URI APIs here to match.
Update all use of literal (UTF-8) strings to unsigned char* also.
Add more casts to make C++ happy especially near string functions
and malloc.
* raptor/raptor_general.c (raptor_print_statement_part_as_ntriples):
Update call of
raptor_print_ntriples_string
* raptor/raptor.h: Update raptor_print_ntriples_string prototype
* raptor/raptor_general.c (raptor_print_ntriples_string):
Take unsigned const char*
2003-12-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac: mysql version reporting
* configure.ac: make --with-threestore, --with-mysql take CONFIG|yes|no
* configure.ac: Add BDB 4.2 to the list.
Fixes for 3store (--with-threestore) else search for 3store-config;
add glib to cflags/libs using pkg-config.
Report raptor version.
Report triple stores found.
2003-12-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_uri.h, librdf/rdf_uri.c, librdf/rdf_parser_raptor.c:
Updates for raptor API use of unsigned char* for URI strings.
Change redland URIs to take/return unsigned char* for URI strings
* librdf/rdf_hash.c (librdf_hash_print): replaced fprintf
* raptor/Makefile.am:
Narrower yyerrlabl fix since bison 1.875a no longer requires it
* raptor/examples/grapper.c:
Casts and updates to use URI strings from raptor as unsigned char*
and converting to/from gchar*
* raptor/rdfdump.c, raptor/raptor_xml_writer.c, raptor/raptor_xml.c, raptor/raptor_www_libxml.c, raptor/raptor_www.c, raptor/raptor_uri.c, raptor/raptor_sax2.c, raptor/raptor_rss.c, raptor/raptor_parse.c, raptor/raptor_namespace.c, raptor/n3_parser.y, raptor/n3_lexer.l:
Lots of casts for str* function args, return values between unsigned
char* as used for UTF8 and URI strings and char* used by str* functions.
Some further casts for strings from XML.
* raptor/raptor_www_test.c (write_bytes_fh): No return value.
(main) Test code casts unsigned char* for URI strings
Fix write_content_type and write_bytes_fh set handler methods.
* raptor/raptor_utf8.c (raptor_unicode_char_to_utf8):
unsigned char* arg.
(raptor_utf8_is_nfc): unsigned int, cast for unsigned char*
* raptor/raptor_sequence.c (raptor_sequence_ensure):
Use void** not void*. C++ cares.
(main): Test code casts to void* for args.
* raptor/raptor_qname.c (raptor_qname_string_to_uri):
cast for signed/unsigned int
comparison.
* raptor/raptor_locator.c (raptor_format_locator):
Use raptor_uri_as_counted_string to save a strlen.
* raptor/raptor_identifier.c:
(raptor_identifier_print) fputs arg cast [function for RAPTOR_DEBUG only]
* raptor/raptor_general.c (raptor_parsers_enumerate): Unsigned int.
(raptor_parse_uri_write_bytes): unsigned char* cast.
Declare raptor_xml_literal_datatype_uri_string.
(raptor_print_statement_detailed): Replace several fprintf with fputs
and fputc.
(raptor_print_ntriples_string): Use unsigned long/size_t for counts.
(raptor_statement_part_as_counted_string): unsigned char*
Use raptor_xml_literal_datatype_uri_string.
(raptor_statement_part_as_string): unsigned char*
(raptor_print_statement_part_as_ntriples): unsigned char*. Replace
several fprintf with fputs and fputc.
Use raptor_xml_literal_datatype_uri_string
(raptor_default_generate_id_handler): Casts for str* functions
(raptor_check_ordinal): unsigned char*
* raptor/ntriples_parse.c:
(raptor_ntriples_generate_statement,raptor_ntriples_string_as_utf8_string,
raptor_ntriples_parse_line):
Updated to take/return unsigned char* args and internals. Update
raptor_uri calls for similar changes.
Use raptor_xml_literal_datatype_uri_string
Lots of casts for str* functions char* arguments.
* raptor/Makefile.am:
Remove maintainer only n3 lex/yacc rules (flex/bison)
Post process the bison output to remove unused label to make g++ happier.
* raptor/raptor_internal.h:
Added raptor_xml_literal_datatype_uri_string for the RDF datatype
literal URI string, used several times.
raptor_check_ordinal takes unsigned char*
A couple of lengths, counts become unsigned int.
raptor_unicode_char_to_utf8, raptor_format_sax2_element,
raptor_xml_writer_cdata, raptor_xml_writer_comment,
raptor_xml_writer_as_string changed to
take/return unsigned char* for UTF8 strings.
* raptor/raptor.h:
raptor_new_uri_func, raptor_new_uri_from_local_name_func,
raptor_new_uri_relative_to_base_func, raptor_uri_as_string_func,
raptor_uri_as_counted_string_func URI factory methods
changed to all take/return unsigned char* for URI strings
raptor_statement_part_as_counted_string,
raptor_statement_part_as_string,
raptor_new_uri, raptor_new_uri_from_uri_local_name,
raptor_new_uri_relative_to_base, raptor_uri_as_string,
raptor_uri_as_counted_string
URI methods changed to take/return unsigned char* for URI strings
raptor_ntriples_string_as_utf8_string changed to return unsigned
char* for UTF8 string
raptor_uri_resolve_uri_reference, raptor_uri_filename_to_uri_string,
raptor_uri_uri_string_to_filename,
raptor_uri_uri_string_to_filename_fragment, raptor_uri_is_file_uri
Changed to use unsigned char* for URI strings, char* for filenames
2003-12-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor_set.c (raptor_set_stats_print): Debug printing tweak.
2003-11-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor_internal.h:
raptor_check_ordinal with now unsigned char* arg
raptor_sax2 content_cdata now unsigned char*
* raptor/raptor_general.c (raptor_check_ordinal): unsigned char *name
* raptor/raptor_parse.c: Lots of char/unsigned char casting.
* raptor/n3_common.h: Undo n3_syntax_error back to raptor_parser arg.
* raptor/n3_parser.y: (n3_parser_error) aka yyerror; take a void arg.
* raptor/n3_common.h:
The n3_syntax_error aka yyerror function takes a void arg.
* raptor/n3_parser.y: Casts for rdf_parser, strings.
* raptor/n3_lexer.l:
Define INPUT_FN as yyinput (C++) or input (otherwise)
Add more casts for C++ near rdf_parser, yytext.
(copy_token): More casts for malloc and string functions.
(copy_string_token): More size_t, casts.
* raptor/ntriples_parse.c (raptor_ntriples_term):
Use a size_t; cast for C++.
* raptor/ntriples_parse.c (raptor_ntriples_term_valid,raptor_ntriples_term):
Change
argument names from class to term_class to avoid C++ keyword.
* raptor/raptor_getopt.h: Protect prototypes for C++
* raptor/raptor_stringbuffer.c: casts for RAPTOR_*ALLOC returns
* raptor/n3_parser.y: oops, raptort -> raptor
* raptor/n3_parser.y: another cast for RAPTOR_MALLOC return
* raptor/n3_parser.y: casts for RAPTOR_CALLOC returns
* raptor/configure.ac:
Move adding pkg-config glib2.0 cppflags/libs till after the other
libraries since that's more likely to be system wide and least
effect libxml2, other libraries that might be elsewhere. Mostly
affects OSX which is more sensitive to link order.
* raptor/raptor_stringbuffer.c (main): declare at start of block
* raptor/configure.ac: Check for libxml/SAX2.h - the new SAX2 API
* raptor/raptor_libxml.c:
Added a pile of libxml2_* macros to use the libxml2 SAX2 functions
when they are present, otherwise the SAX1. Not using the SAX2 parts
of the libxml2 API at present.
* raptor/strcasecmp.c: Add debug message arg casts.
* raptor/configure.ac:
Include libxml/parser.h when checking for other libxml2 headers
* raptor/ntriples_parse.c: Add some debug message arg casts.
(raptor_ntriples_parse_chunk): At end of input, check that there is
no remaining junk.
* raptor/ntriples_parse.c (raptor_ntriples_parse_chunk):
Fix line counting problems when \r\n
crosses a buffer or when a line ends at the end of a buffer.
last_char recorded in state.
* raptor/raptor_stringbuffer.c (main): Free returned strings.
* raptor/Makefile.am:
Added raptor_stringbuffer.c raptor_stringbuffer_test code
* raptor/raptor.h: Added raptor_stringbuffer.
* raptor/raptor_stringbuffer.c: Stringbuffer class for growing strings
* raptor/raptor_libxml.c (raptor_libxml_init):
With libxml2 use raptor_xml_characters_handler
for sax->characters.
* raptor/raptor_parse.c (raptor_cdata_grammar): Added is_cdata arg.
(raptor_xml_characters_handler): Added, calling raptor_cdata_grammar.
(raptor_xml_cdata_handler): Updated to call raptor_cdata_grammar with
is_cdata=1.
(raptor_xml_parse_init): With expat use raptor_xml_characters_handler
with XML_SetCharacterDataHandler.
(raptor_cdata_grammar): Tidy error reporting; do not use
raptor_xml_writer_as_string for a simple print.
* raptor/raptor_internal.h:
Added raptor_xml_characters_handler prototype.
2003-11-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* perl/Makefile.PL:
List the .pm files explicitly since perl 5.8.1 broke scanning
2003-11-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/manifest.pl: Add withdrawn tests check
2003-11-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/tests/ntriplesplus/Makefile.am:
Added more N-Triples Plus tests (1-7) and bad (0-3)
* raptor/tests/ntriplesplus/test-07.out, raptor/tests/ntriplesplus/test-07.ntp, raptor/tests/ntriplesplus/test-06.out, raptor/tests/ntriplesplus/test-06.ntp, raptor/tests/ntriplesplus/test-05.out, raptor/tests/ntriplesplus/test-05.ntp, raptor/tests/ntriplesplus/test-04.out, raptor/tests/ntriplesplus/test-04.ntp, raptor/tests/ntriplesplus/test-03.out, raptor/tests/ntriplesplus/test-03.ntp, raptor/tests/ntriplesplus/test-02.out, raptor/tests/ntriplesplus/test-02.ntp, raptor/tests/ntriplesplus/test-01.out, raptor/tests/ntriplesplus/test-01.ntp:
More N-Triples Plus tests
* raptor/tests/ntriplesplus/bad-00.ntp, raptor/tests/ntriplesplus/bad-01.ntp, raptor/tests/ntriplesplus/bad-02.ntp, raptor/tests/ntriplesplus/bad-03.ntp:
N-Triples Plus bad tests
* raptor/n3_lexer.l:
In prefix state, always return to initial on matching '.', then
error out.
(n3_syntax_error): Copy removed here.
(main): Init enough more of parser/locator so that n3_syntax_error
in main library can be used.
2003-11-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/rdfdump.c: extra newline in version
* raptor/rdfdump.c: extra newline in help
2003-11-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_parser_raptor.c:
(librdf_parser_raptor_error_handler,librdf_parser_raptor_warning_handler):
Do not pass on buffer directly since it is not a format string and
might contain % such as when it is a URI. This causes libc to abort
in the middle of vsnprintf with an assertion failure :/
2003-11-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* demos/ntriples.pl: Style, HTML fixes.
Counting wasn't right.
* raptor/tests/Makefile.am:
Added check-ntriples-plus to check N-Triples Plus with the N-Triples
tests.
* raptor/n3_parser.y, raptor/n3_lexer.l, raptor/n3_common.h:
Added lineno to raptor_n3_parser context to track newlines for dos,
unix, mac since flex doesn't do that by default with yylineno.
* raptor/rdfdump.c: tidy help messages
* raptor/ntriples_parse.c:
Track newlines correctly for \r\n across chunks; move last_nl into
ntriples parser context.
(raptor_ntriples_parse_chunk,raptor_ntriples_parse_start): Use and
init last_nl in ntriples parser context.
2003-11-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor.h: Added raptor_ntriples_string_as_utf8_string
* raptor/ntriples_parse.c (raptor_ntriples_term):
Added allow_utf8 argument and new class
RAPTOR_TERM_CLASS_FULL which uses all the passed in string.
(raptor_ntriples_string_as_utf8_string): Added, using
raptor_ntriples_term as above.
(raptor_ntriples_parse_line): Use size_t len args.
* utils/rdfproc.c: Replace a bunch of fprintf(..., "\n") with fputc
* raptor/rdfdump.c:
Use f/puts instead of print/fprintf when there are no %s
* librdf/rdf_heuristics.c (main):
Make test code silent unless LIBRDF_DEBUG > 1
Tidy code a little.
* librdf/rdf_digest.c, librdf/rdf_hash.c:
Replace a bunch of fprintf(..., "\n") with fputc
* raptor/raptor_uri.c (raptor_default_new_uri_for_rdf_concept):
Remove duplicate strlen(base_uri)
2003-11-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/n3_lexer.l: Document more ntriples plus
Error out if @prefix's name doesn't match name
* raptor/raptor_utf8.c (raptor_unicode_is_namestartchar):
Two | changed to ||. Likely
worked anyway
2003-11-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/libraptor.3: Noted raptor_set_feature with non_nfc_fatal
* raptor/raptor.h:
Added RAPTOR_FEATURE_NON_NFC_FATAL to pick between NFC errors or warnings.
* raptor/raptor_general.c (raptor_set_feature):
Added RAPTOR_FEATURE_NON_NFC_FATAL to pick
between NFC errors or warnings.
(raptor_set_parser_strict): Set feature_non_nfc_fatal default off.
* raptor/raptor_internal.h:
Added feature_non_nfc_fatal to pick between NFC errors or warnings.
* raptor/raptor_parse.c:
Put 'quotes' around element/attribute names in messages.
Use feature_non_nfc_fatal to pick between NFC errors or warnings.
* raptor/tests/Makefile.am: check-bad-nfc-rdf - use strict mode
* raptor/rdfdump.c: Document -m/--mode arg
2003-11-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/configure.ac: Added tests/ntriplesplus
* raptor/tests/ntriplesplus/Makefile.am: N-Triples plus tests
* raptor/tests/ntriplesplus/test-00.ntp, raptor/tests/ntriplesplus/test-00.out:
N-Triples Plus default namespace test
* raptor/tests/Makefile.am: added ntriplesplus dir
* raptor/raptor_qname.c (raptor_qname_string_to_uri):
Keep original name around for error reporting.
* raptor/rdfdump.c, raptor/n3_parser.y: parser now called ntriples-plus
* raptor/n3_parser.y: parser called ntriplesplus
* raptor/n3_parser.y (production directive):
Fix declaring default namespace prefix
2003-11-09 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/tests/Makefile.am: added bad-20.rdf
* raptor/tests/bad-20.rdf:
check non-namespaced element does not crash parser
* raptor/raptor_qname.c (raptor_new_qname,raptor_new_qname_from_namespace_local_name):
Do not
die if no URI for qname is available. It might be <a xmlns="">
which is at least needed for some error reports or for embedded
qnames. Caused unnecessary crashes when parsing failed.
2003-11-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac:
Added --with-mysql-config and automatic search for mysql_config program.
Added STORAGE_OBJS
* librdf/rdf_storage_mysql.c, librdf/rdf_storage_mysql.h:
RDF Storage in MySQL DB
* AUTHORS: Added Morten as MySQL store author
* librdf/rdf_storage.h, librdf/rdf_storage.c: Added mysql store
* librdf/Makefile.am: Added STORAGE_OBJS
Added rdf_storage_mysql.c rdf_storage_mysql.h
* librdf/librdf.h: Added LIBRDF_ERROR3
* raptor/raptor_xml.c (main): Make tests less chatty on success
* raptor/raptor_uri.c (main): Make it less chatty on success
* raptor/raptor_uri.c (raptor_uri_uri_string_to_filename_fragment):
Allow file://a|/ and file://a:/
(main): For WIN32, check the above works.
* librdf/rdf_parser_raptor.c:
Add mapping of rdf:nodeID values to redland generated IDs.
(librdf_parser_raptor_init): Create the userid->redlandID hash map.
(librdf_parser_raptor_terminate): Added to delete the hash map.
(librdf_parser_raptor_generate_id_handler): Do the mapping.
* raptor/autogen.sh, autogen.sh:
remove ltmain.sh libtool before libtoolize
* python/redlandtest.py (class RedlandGetsCase):
Add test for making a new anon (no arg) blank node
* raptor/manifest.pl:
Emit test-results.rdf in the style of http://www.w3.org/2003/08/owl-systems/test-results-out
for machine processing of test runs
* raptor/raptor_general.c (raptor_parse_uri_with_connection):
Fail before parsing if
raptor_www_fetch failed.
* raptor/raptor_internal.h:
Added raptor_www_error_varargs internal prototype.
* raptor/raptor_www_libxml.c (raptor_www_libxml_http_error):
This was just all wrong, printing to
stderr and then exit(1). Change to use the proper
raptor_www_error_varargs callback.
* raptor/raptor_www.c (raptor_www_error_varargs):
Added, with va_list signature.
* raptor/raptor_general.c (raptor_parse_file):
When uri is given and base_uri is NULL, copy
the uri and free it later - fix to match the function documentation.
2003-10-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor_general.c (raptor_parse_file):
fclose only when fh is not NULL
2003-10-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_serializer_rdfxml.c (librdf_serializer_rdfxml_terminate):
Free namespace before stack.
* librdf/rdf_serializer_rdfxml.c:
Use updated raptor_(new|free)_namespaces
(librdf_serializer_rdfxml_init, librdf_serializer_rdfxml_terminate):
Make the rdf namespace
(librdf_serializer_rdfxml_serialize_model): declare rdf:RDF
using raptor_new_qname_from_namespace_local_name
* raptor/raptor_parse.c (raptor_xml_end_element_handler):
For RAPTOR_DEBUG, declare
element_name at start of function.
2003-10-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor.h:
raptor_namespace(s)_(new|free) renamed to raptor_(new|free)_namespace(s)
Added raptor_new_qname_from_namespace_local_name
* raptor/raptor_qname.c (raptor_new_qname_from_namespace_local_name):
Added.
* raptor/raptor_namespace.c:
raptor_namespaces_(new|free) renamed to raptor_(new|free)_namespaces
* raptor/raptor_namespace.c:
raptor_namespace_(new|free) renamed to raptor_(new|free)_namespace
* librdf/rdf_serializer_rdfxml.c:
Added a raptor_namespace_stack to the context.
(librdf_serializer_rdfxml_init): Updated with stack
(librdf_serializer_rdfxml_terminate): Added, to free stack.
(rdf_serializer_rdfxml_print_as_xml_attribute): Deleted.
(librdf_serializer_print_statement_as_rdfxml): Do less work in
finding max XML-name character for a property URI.
Replace use of rdf_serializer_rdfxml_print_as_xml_attribute
with calls to raptor_xml_escape_string.
(librdf_serializer_rdfxml_serialize_model): Use namespace stack
to declare rdf namespace - initial code.
(librdf_serializer_rdfxml_register_factory): Add terminate call.
* raptor/raptor_xml_writer.c:
raptor_namespaces_free renamed to raptor_namespaces_clear
* raptor/raptor_parse.c (raptor_xml_start_element_handler):
Use raptor_new_sax2_element.
raptor_namespaces_free renamed to raptor_namespaces_clear
* raptor/raptor_internal.h: Added raptor_new_sax2_element
* raptor/raptor_sax2.c (raptor_new_sax2_element): Added.
* raptor/raptor.h:
Added prototypes for raptor_namespaces_new, raptor_namespaces_clear
* raptor/raptor_namespace.c
(raptor_namespaces_new,raptor_namespaces_free):
Added for constructor and destructor.
raptor_namespaces_free renamed to raptor_namespaces_clear for
emptying a statically allocated namespace stack.
* raptor/n3_parser.y:
raptor_namespaces_free renamed to raptor_namespaces_clear
* librdf/rdf_serializer_rdfxml.c
(librdf_serializer_rdfxml_raptor_error_handler): Added.
(rdf_serializer_rdfxml_print_xml_attribute): Take world arg.
Use raptor_xml_escape_string to do the escaping.
(librdf_serializer_print_statement_as_rdfxml): pass world arg to
calls to rdf_serializer_rdfxml_print_xml_attribute
* librdf/rdf_utf8.h: Make librdf_unicode_char_to_utf8 match code
2003-10-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/n3_parser.y: Moved n3 lexer/parser stuff to n3_common.h
Added uri field to union.
URI_LITERAL and QNAME_LITERAL now are uri.
PREFIX now expects an IDENTIFIER to follow.
Remove all make qname/uri and free(copied token) sequences since the
lexer does it.
Added fake yy_init_globals to stop dumb warning.
* raptor/n3_lexer.l:
Make raptor_uris here from lexer tokens (qnames or URIs)
For @prefix, recognise following token as an identifier specially
rather than try to make it a URI.
(n3_token_free): Free string or raptor_uri.
(main): Lots of fixups to fake enough n3 parser structure to
get it working fairly standalone.
* raptor/Makefile.am: Added n3_common.h
Fixup free of null inside flex-generated lexer.
* raptor/n3_common.h: N3 parser/lexer shared internals
* raptor/raptor_internal.h: Moved n3 lexer/parser stuff to n3_common.h
* raptor/n3_parser.y (n3_qname_to_uri):
Replace with call to raptor_qname_string_to_uri
and added length parameter.
* raptor/raptor_qname.c (raptor_new_qname):
Replace raptor_namespace_local_name_to_uri
with use of raptor_new_uri_from_uri_local_name.
(raptor_qname_string_to_uri): Added, making only the URI
equivalent to the qname and handling N3/RDQL-style special
cases such as "prefix:", ":" and NULL.
* raptor/raptor_internal.h, raptor/raptor.h:
Moved raptor_qname, raptor_namespace, raptor_namespace_stack
classes into public API.
Added raptor_qname_string_to_uri
* raptor/raptor_namespace.c (raptor_namespace_local_name_to_uri):
Removed - only used once
internally and was never public.
2003-10-09 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/n3_lexer.l (n3_token_free): Added, for cleanup in debugging.
(main): Init and clear token/lval.
* raptor/tests/Makefile.am: Added ex-53
* raptor/tests/ex-53.out, raptor/tests/ex-53.rdf:
Check allowing optional rdf:RDF
* raptor/rdfdump.c:
--assume/-a feature_assume_is_rdf deleted; rdf:RDF is optional.
* raptor/raptor_general.c, raptor/raptor_parse.c:
feature_assume_is_rdf deleted; rdf:RDF is optional.
* raptor/raptor_internal.h: feature_assume_is_rdf deleted
2003-10-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_node.c: Fix debug calls when LIBRDF_DEBUG > 1
2003-10-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/tests/wine.out, raptor/tests/wine.rdf:
OWL Wine Ontology from http://www.w3.org/TR/owl-guide/wine.rdf
* raptor/tests/Makefile.am:
Added OWL Wine ontology from http://www.w3.org/TR/owl-guide/wine.rdf
as wine.rdf wine.out
2003-09-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/n3_parser.y:
Remove n3_parser_lex; re-#define yylex to call direct
* raptor/n3_lexer.l (copy_string_token):
Destroy malloced string on error return.
* raptor/n3_parser.y (n3_parse):
Don't delete buffer, pop buffer state; a successful lex
does that.
* raptor/raptor_internal.h: Remove n3_token_print
* raptor/n3_parser.y: Use reentrant yacc parser.
Store the lexer lval in the n3_parser context.
Lots of #define trickery to get flex/bison to talk nicely.
Make n3_parser_error take an rdf_parser arg (this isn't configurable
by bison itself, so is likely fragile).
Remove use of extern in lineno; get it from the lexer.
Remove N3_Parser global; use rdf_parser local.
(n3_parser_error): Update for having rdf_parser arg, update locator
lineno from scanner.
(n3_syntax_error, n3_qname_to_uri): Get lineno from scanner.
(n3_parse): Remove fixmes, no need for protecting globals.
(main): Update for reentrant parser; init locator from standalone
args.
* raptor/n3_lexer.l:
Remove n3_lexer.c/.h prototypes no longer(?) needed with re-entrant lexer.
Remove use of lineno; let lexer do it.
Change lexer call to pass in lval from reentrant parser.
(n3_token_print): Pass in lval.
(main): Update for api changes.
2003-09-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor_internal.h: Updates for reentrant lexer.
* raptor/n3_parser.y: Use reentrant lexer API.
Define YYLEX_PARAM to be scanner arg, from current grammar.
(n3_parser_lex): Take scanner arg.
(n3_syntax_error): Add rdf_parser arg.
(n3_parse): Init and destroy reentrant lexer.
(raptor_n3_parse_terminate): Tidy up any lexer stuff.
(main): Check for file not found, report it.
* raptor/n3_lexer.l:
Switch to reentrant lexer. Pass rdf_parser into code, yyextra