forked from dajobe/librdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.7
1427 lines (1020 loc) · 49.5 KB
/
ChangeLog.7
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
2006-12-13 Dave Beckett <dave@dajobe.org>
* librdf/Makefile.am,
librdf/rdf_query_results.c: (librdf_query_results_as_stream) docs
2006-12-09 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage.c:
(librdf_storage_stream_to_node_iterator_get_method): Do not try to
copy a NULL context node.
* utils/rdfproc.c: Added --transactions/-T for enabling
transactions
2006-12-07 Dave Beckett <dave@dajobe.org>
* librdf/rdf_node.c: (main): Cast for size_t
* librdf/rdf_storage_mysql.c: off by 1 in table loop
* librdf/rdf_storage_mysql.c: (librdf_storage_mysql_release_handle):
Do not release if doing a transaction.
(librdf_storage_mysql_transaction_commit,
librdf_storage_mysql_transaction_rollback): Debug message and zap
transaction_handle before releasing it.
* librdf/rdf_storage_mysql.c: Put SQL configuration and variables
inside the mysql context Added LIBRDF_DEBUG_SQL define and macro
around all SQL queries.
(librdf_storage_mysql_init): Init context->config and
context->vars
(librdf_storage_mysql_terminate): Free config, vars.
* librdf/mysql-v1.ttl, librdf/mysql-v2.ttl: MyISAM and InnoDB
* librdf/rdf_storage_mysql.c: Add layout and config_dir to context.
(librdf_storage_mysql_init): Init layout and config_dir from options.
Use librdf_new_sql_config_for_storage() to get SQL create statements
and then invoke them with templated variables in a hash using
librdf_hash_interpret_template().
(librdf_storage_mysql_terminate): Free layout and config_dir
* librdf/mysql-v1.ttl: Only var is $(STATEMENTS_NAME)
* librdf/rdf_storage_sql.c: (librdf_new_sql_config_for_storage)
Add dir arg with default set if NULL.
* librdf/rdf_storage_internal.h: librdf_new_sql_config_for_storage
prototype gets dir arg
2006-12-06 Dave Beckett <dave@dajobe.org>
* librdf/rdf_model_storage.c: extra static defines
* librdf/Makefile.am, librdf/rdf_storage_sql.c,
librdf/rdf_storage_sql_test.c: Split out sql config test
* librdf/mysql.ttl: renamed mysql.ttl to mysql-v1.ttl
* librdf/rdf_storage_internal.h: Move librdf_sql_config
definitions and declarations to rdf_storage_internal.h
* librdf/rdf_storage_sql.c: (librdf_new_sql_config,
librdf_new_sql_config_for_storage): Add layout arg (main): Test
NULL and mysql v2 layout
* librdf/Makefile.am, librdf/mysql-v1.ttl (from
/librdf/trunk/librdf/mysql.ttl:11717), librdf/mysql-v2.ttl:
mysql-v1.ttl mysql-v2.ttl
2006-12-05 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_sql.c: (librdf_new_sql_config_for_storage): Added.
* librdf/Makefile.am, librdf/rdf_storage_sql.c: Added SQL config
reading from file
2006-12-04 Dave Beckett <dave@dajobe.org>
* librdf/mysql.ttl: $(NAME)
* Makefile.am: No need for Makefile.PL here
* Makefile.PL: No need for Makefile.PL here
* librdf/Makefile.am, librdf/mysql.ttl: Add mysql.ttl
* Redland.i: Export librdf_model_transaction_start
librdf_model_transaction_commit and
librdf_model_transaction_rollback
* librdf/rdf_storage_postgresql.c: Added transaction support.
librdf_storage_postgresql_context gains PGconn*
transaction_handle;
(librdf_storage_postgresql_get_handle): Return transaction_handle
if there is one.
(librdf_storage_postgresql_terminate): Free transaction_handle
(librdf_storage_postgresql_close): Rollback transaction on close.
(librdf_storage_postgresql_transaction_start,
librdf_storage_postgresql_transaction_start_with_handle,
librdf_storage_postgresql_transaction_commit,
librdf_storage_postgresql_transaction_rollback and
librdf_storage_postgresql_transaction_get_handle): Added.
(librdf_storage_postgresql_register_factory): register transaction
functions.
* librdf/rdf_storage_mysql.c: Added transaction support.
librdf_storage_mysql_context gains MYSQL* transaction_handle;
(librdf_storage_mysql_get_handle): Return transaction_handle if
there is one.
(librdf_storage_mysql_terminate): Free transaction_handle
(librdf_storage_mysql_close): Rollback transaction on close.
(librdf_storage_mysql_transaction_start,
librdf_storage_mysql_transaction_start_with_handle,
librdf_storage_mysql_transaction_commit,
librdf_storage_mysql_transaction_rollback and
librdf_storage_mysql_transaction_get_handle): Added.
(librdf_storage_mysql_register_factory): register transaction
functions.
* librdf/rdf_storage.c: (librdf_storage_transaction_start,
librdf_storage_transaction_start_with_handle,
librdf_storage_transaction_commit,
librdf_storage_transaction_rollback and
librdf_storage_transaction_get_handle): Added, all optional if the
factories support them.
* librdf/rdf_storage_internal.h: struct librdf_storage_factory_s
gains factory methods transaction_start,
transaction_start_with_handle, transaction_commit,
transaction_rollback and transaction_get_handle
* librdf/rdf_storage.h: Added prototypes for
librdf_storage_transaction_start,
librdf_storage_transaction_start_with_handle,
librdf_storage_transaction_commit,
librdf_storage_transaction_rollback and
librdf_storage_transaction_get_handle
* librdf/rdf_model_storage.c: (librdf_model_storage_transaction_start,
librdf_model_storage_transaction_start_with_handle,
librdf_model_storage_transaction_commit,
librdf_model_storage_transaction_rollback and
librdf_model_storage_transaction_get_handle): Added, all calling
the librdf_storage_* equivalent.
* librdf/rdf_model_internal.h: struct librdf_model_factory_s gains
factory methods transaction_start, transaction_start_with_handle,
transaction_commit, transaction_rollback and
transaction_get_handle
* librdf/rdf_model.c: (librdf_model_transaction_start,
librdf_model_transaction_start_with_handle,
librdf_model_transaction_commit, librdf_model_transaction_rollback
and librdf_model_transaction_get_handle): Added, all optional if the
factories support them.
* librdf/rdf_model.h: Added prototypes for
librdf_model_transaction_start,
librdf_model_transaction_start_with_handle,
librdf_model_transaction_commit, librdf_model_transaction_rollback
and librdf_model_transaction_get_handle
2006-12-03 Dave Beckett <dave@dajobe.org>
* librdf/rdf_hash.c: (main): Check for expected template result.
* librdf/rdf_hash.c: (librdf_hash_interpret_template): Free
returned librdf_hash_datum
* librdf/rdf_hash.c: (librdf_hash_interpret_template): Added, to
interpret key/values into a template.
(main): Test for the above.
* librdf/rdf_hash.h: Added prototype librdf_hash_interpret_template
2006-12-02 Dave Beckett <dave@dajobe.org>
* librdf/rdf_query_rasqal.c: (rasqal_redland_bind_match): Do not
throw away the rasqal node type information now, it is needed
later on in FILTER comparisons.
Fixes Issue#0000153 http://bugs.librdf.org/mantis/view.php?id=153
2006-11-30 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage.c: (librdf_storage_remove_reference): Call
librdf_storage_free to clean up if this is the last reference
* configure.ac: No need to add LIBRDF_CPPFLAGS to
LIBRDF_EXTERNAL_CPPFLAGS - they are only needed building inside
redland
2006-11-23 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_file.c: (librdf_storage_file_init): Free
options when finished with them.
2006-11-21 Dave Beckett <dave@dajobe.org>
* configure.ac: Minimum raptor version is 1.4.11
2006-11-19 Dave Beckett <dave@dajobe.org>
* Snapshotted redland_1_0_5 for 1.0.5 release
2006-11-18 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_sqlite.c: Track when a stream is active and
store pending queries for SQLite in a list an apply after.
(librdf_storage_sqlite_exec): When the execution returns
SQLITE_LOCKED and in a stream, save the query for running later.
(librdf_storage_sqlite_serialise,
librdf_storage_sqlite_find_statements,
librdf_storage_sqlite_context_serialise,
librdf_storage_sqlite_get_contexts): Mark in stream.
(librdf_storage_sqlite_serialise_finished,
librdf_storage_sqlite_find_statements_finished
librdf_storage_sqlite_context_serialise_finished): End in stream.
(librdf_storage_sqlite_query_flush): Added.
Fixes Issue #0000139
http://bugs.librdf.org/mantis/view.php?id=139
2006-11-13 Dave Beckett <dave@dajobe.org>
* librdf/rdf_model.c: (main): Add, still commented out, sqlite3 test.
2006-10-31 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_sqlite.c:
(librdf_storage_sqlite_find_statements): Tidy up correctly with
librdf_storage_sqlite_find_statements_finished if
librdf_new_statement_from_statement,
librdf_storage_sqlite_statement_helper or sqlite_compile fails.
(librdf_storage_sqlite_context_serialise): Tidy up correctly with
librdf_storage_sqlite_context_serialize_finished if
librdf_storage_sqlite_statement_helper or sqlite_compile fails.
Fixes Issue#0000137 http://bugs.librdf.org/mantis/view.php?id=137
* librdf/rdf_storage_sqlite.c:
(librdf_storage_sqlite_find_statements): Tidy up correctly with
librdf_storage_sqlite_find_statements_finished if
librdf_new_statement_from_statement,
librdf_storage_sqlite_statement_helper or sqlite_compile fails.
(librdf_storage_sqlite_context_serialise): Tidy up correctly with
librdf_storage_sqlite_context_serialize_finished if
librdf_storage_sqlite_statement_helper or sqlite_compile fails.
* librdf/Makefile.am: FIx AM_CPPFLAGS AM_CFLAGS
* Redland.i: Export raptor and rasqal version strings and integers
2006-10-22 Dave Beckett <dave@dajobe.org>
* configure.ac, librdf/win32_rdf_config.h: Bump version to 1.0.5
2006-10-21 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_sqlite.c: (librdf_storage_sqlite_literal_helper):
Check for no language or no datatype when they are NULL.
Fixes Issue#0000136 http://bugs.librdf.org/mantis/view.php?id=136
2006-10-14 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_sqlite.c: Add a 'sychronous' storage option
for the sqlite store with values off, normal or full.
(librdf_storage_sqlite_init, librdf_storage_sqlite_open): set
synchronous flag and do creation in a transaction.
(librdf_storage_sqlite_contains_statement,
librdf_storage_sqlite_context_add_statement): Add transaction
around operation.
(librdf_storage_sqlite_context_remove_statement): Add trailing ;
* librdf/rdf_storage_mysql.c: Revert change:
> r11074 | dajobe | 2006-07-29 17:18:34 -0700 (Sat, 29 Jul 2006) | 5 lines
> (librdf_storage_mysql_add_statements): Use
> librdf_storage_mysql_context_add_statements.
> (librdf_storage_mysql_context_add_statements): Add check for adding
> duplicate statements and remove the check when in bulk mode.
* examples/rss2ical.c: Skip results with non-resource node rather
than abort all results
2006-10-08 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_hashes.c:
(librdf_storage_hashes_add_remove_statement,
librdf_storage_hashes_contains_statement): Fix debug calls.
Fixes Issue#0000132 http://bugs.librdf.org/mantis/view.php?id=132
* librdf/rdf_query.c: (librdf_query_register_factory): Fix debug call.
Fixes Issue#0000132 http://bugs.librdf.org/mantis/view.php?id=132
* configure.ac: Fix --with-threads arg
Fixes Issue#0000125 http://bugs.librdf.org/mantis/view.php?id=125
* docs/storage.html: Added sqlite and postgresql
* librdf/rdf_serializer.c: (main): Reuse serializer
* librdf/rdf_node.c: (main): Free test big literal.
* librdf/rdf_node.c: (main): Add test for big 100,000-length
literal.
* librdf/rdf_node.c: (librdf_new_node_from_literal): Call
librdf_new_node_from_typed_counted_literal directly.
(librdf_new_node_from_typed_counted_literal): Added, with guts of
librdf_new_node_from_typed_literal.
(librdf_new_node_from_typed_literal): Call
librdf_new_node_from_typed_counted_literal with additional
strlen()s.
(librdf_node_encode, librdf_node_decode): Added new long literal
type 'N' when the string length > 0xFFFF. Does not affect
existing shorter literal encoding. Use
librdf_new_node_from_typed_counted_literal to save un-necessary
strlen()s.
* librdf/rdf_node.h: Added
librdf_new_node_from_typed_counted_literal prototype.
* librdf/rdf_node_internal.h: struct librdf_node_s now counts XML
language length
* librdf/rdf_node.c: Add tests for node encoding URIs, literals
* librdf/rdf_list.c, librdf/rdf_list_internal.h: rdf_list_context
restores current and next fields. When a node is deleted, just
adjust the next pointer.
2006-10-07 Dave Beckett <dave@dajobe.org>
* librdf/rdf_list.c: (librdf_list_iterators_replace_node): Remove
next field, just use librdf_iterator_next() to move on.
(librdf_list_get_iterator, librdf_list_iterator_next_method):
Remove use of next field.
* librdf/rdf_list_internal.h: struct
librdf_list_iterator_context_s looses the next field.
* librdf/rdf_storage_list.c: (librdf_storage_list_context_add_statement):
Free some fields before freeing the memory the pointers were
stored in after errors.
* librdf/rdf_storage.c: The stream to node iterator code was
altered to now save the grabbed object node and/or context nodes
taken from the shared librdf_stream that it converts so even if
the librdf_stream moves on, the librdf_nodes are preserved.
(librdf_storage_stream_to_node_iterator_next_method): Delete any
saved object/context nodes so they will get refreshed.
(librdf_storage_stream_to_node_iterator_get_method): Save
object/context nodes after retrieving them from the shared
librdf_statement got from the librdf_stream.
(librdf_storage_stream_to_node_iterator_finished): Free the new
saved node fields.
(librdf_storage_node_stream_to_node_create): Copy the node1, node2
explicitly rather than fake around with NULLing out them in the
librdf_storage_stream_to_node_iterator_finished function.
* librdf/rdf_serializer.c: (main): tests for serialize stream to
string/file handle
* librdf/Makefile.am: add test.rdf to CLEANFILES
* librdf/rdf_serializer_raptor.c: Removed unused var
* configure.ac: Add sys/stat.h
* librdf/ChangeLog: #changes
* librdf/rdf_serializer_internal.h: Added factory methods:
serialize_stream_to_file_handle,
serialize_stream_to_counted_string and
serialize_stream_to_iostream
* librdf/rdf_serializer_raptor.c:
(librdf_serializer_raptor_serialize_stream_to_file_handle,
librdf_serializer_raptor_serialize_stream_to_counted_string
librdf_serializer_raptor_serialize_stream_to_iostream): Added
*
librdf/rdf_serializer.c: (librdf_serializer_serialize_stream_to_file_handle,
librdf_serializer_serialize_stream_to_file,
librdf_serializer_serialize_stream_to_string,
librdf_serializer_serialize_stream_to_counted_string
librdf_serializer_serialize_stream_to_iostream): Added to satisfy
the request in Issue#000092
http://bugs.librdf.org/mantis/view.php?id=92
* librdf/rdf_serializer.h: Added prototypes for
librdf_serializer_serialize_stream_to_file_handle,
librdf_serializer_serialize_stream_to_file,
librdf_serializer_serialize_stream_to_string,
librdf_serializer_serialize_stream_to_counted_string and
librdf_serializer_serialize_stream_to_iostream
* librdf/rdf_parser.c: docs
* docs/redland-sections.txt: REDLAND_PRINTF_FORMAT unused
* docs/redland-sections.txt: add new fns
* Redland.i: Added librdf_parser_get_accept_header
* librdf/rdf_parser.c: (main): Add accept header test
* librdf/rdf_parser_raptor.c: (librdf_parser_raptor_get_accept_header):
fix
* librdf/rdf_parser_raptor.c: (librdf_parser_raptor_get_accept_header):
Added.
* librdf/rdf_parser.c: (librdf_parser_get_accept_header): Added.
* librdf/rdf_parser.h: Added librdf_parser_get_accept_header prototype.
* librdf/rdf_parser_internal.h: struct librdf_parser_factory_s
gains get_accept_header
* librdf/rdf_serializer_raptor.c: (librdf_serializer_raptor_constructor):
Grab and register the label with
librdf_serializer_register_factory.
* librdf/rdf_serializer_internal.h: struct
librdf_serializer_factory_s gains label field
* librdf/rdf_serializer.h: librdf_parser_register_factory gains
Add label arg. Added librdf_serializer_enumerate prototype
* librdf/rdf_serializer.c: Replace world->serializers with
raptor_sequence of parsers
(librdf_serializer_register_factory): Add label arg.
* librdf/rdf_init_internal.h: struct librdf_world_s field
serializers is now a raptor_sequence
* librdf/rdf_init_internal.h: struct librdf_world_s field parsers
is now a raptor_sequence
* librdf/rdf_parser_internal.h: struct librdf_parser_factory_s
gains label field
* librdf/rdf_parser.h: librdf_parser_register_factory gains Add
label arg. Added librdf_parser_enumerate prototype
* librdf/rdf_parser_raptor.c: (librdf_parser_raptor_constructor):
Grab and register the label with librdf_parser_register_factory.
* librdf/rdf_parser.c: Replace world->parsers with raptor_sequence
of parsers
(librdf_parser_register_factory): Add label arg.
* librdf/rdf_list.c: Less debugging of list iterator changes
2006-10-06 Dave Beckett <dave@dajobe.org>
* librdf/rdf_model.c: (test): During an iteration delete the
current triple item and the next triple item.
* librdf/rdf_list.c: Rename iterator_context fields to next_ic,
prev_ic. Store next pointer and use that to handle deleting the
next item.
* librdf/rdf_list_internal.h: Rename fields to next_ic, prev_ic
* librdf/rdf_list.c: Move structs to rdf_list_iternal.h
* librdf/rdf_list_internal.h: Add iterator contexts
* librdf/rdf_list.c: Added librdf_list_iterators_replace_node to
move iterators past deleted nodes.
* librdf/rdf_list.c: Moved internal structs here.
(librdf_list_add_iterator_context,
librdf_list_remove_iterator_context): Added.
(librdf_list_get_iterator): Add to list of iterators with
librdf_list_add_iterator_context on success.
(librdf_list_iterator_finished): Remove from list of iterators
* Redland.i: Fix typo to declare
librdf_query_results_get_binding_value to return a new object
* librdf/rdf_list.c: (librdf_free_list): Warn if iterators were
running at exit.
* librdf/rdf_list_internal.h: Add struct
librdf_list_iterator_context_s
* librdf/rdf_internal.h: Remove rdf_list_internal.h
* librdf/rdf_parser_raptor.c: statements field is now a dynamic
librdf_list*
* librdf/rdf_heuristics.c: statements field is now a dynamic
librdf_list*
* librdf/rdf_parser.c: (librdf_parser_parse_as_stream,
librdf_parser_parse_into_model): Allow NULL base_uri
(librdf_parser_parse_string_as_stream,
librdf_parser_parse_string_into_model,
librdf_parser_parse_counted_string_as_stream,
librdf_parser_parse_counted_string_into_model): Allow NULL
base_uri, remove assertion failure.
(main): Add const and count failures.
* librdf/rdf_parser_raptor.c: Changes to allow NULL base uris in
parsing, but to fail if it is omitted but required.
(librdf_parser_raptor_new_statement_handler): Incoming URIs are
always absolute so just use librdf_new_node_from_uri.
(librdf_parser_raptor_parse_file_handle_as_stream): Fail if
base_uri is NULL but required.
(librdf_parser_raptor_parse_as_stream_common): Fail if base_uri is
NULL but required. Report fopen failure as an error.
(librdf_parser_raptor_parse_uri_into_model_common): docs allowing
NULL base_uri.
(librdf_parser_raptor_parse_into_model_common): Fail if base_uri
is NULL but required.
(librdf_parser_raptor_parse_uri_into_model): docs allowing NULL
base_uri.
* librdf/rdf_heuristics.c: const in test data
* librdf/rdf_node.c: const in test data
*
librdf/rdf_storage_postgresql.c: (librdf_storage_postgresql_hash):
Take const type, string.
* librdf/rdf_storage_mysql.c: (librdf_storage_mysql_hash): Take
const type, string.
* librdf/rdf_storage_hashes.c: const in test data
* librdf/rdf_storage.c: (librdf_storage_enumerate): Do not check
unsigned int < 0
* librdf/rdf_serializer.c: const in test data
* librdf/rdf_query_results.c: (librdf_query_results_to_file): log
fopen failure error
* librdf/rdf_query.c: const in test data
* librdf/rdf_model.c: (librdf_model_enumerate): Do not check
unsigned int < 0
* librdf/rdf_log_internal.h: librdf_log prototype takes
REDLAND_PRINTF_FORMAT
* librdf/rdf_hash_internal.h: librdf_hash factory method open Take
const identifier. librdf_hash_open prototype changed to take const
identifier
* librdf/rdf_hash_memory.c: (librdf_hash_memory_open): Take const
identifier.
* librdf/rdf_hash_bdb.c: (librdf_hash_bdb_open): Take const
identifier.
* librdf/rdf_hash.h: Change librdf_hash_print_values prototype to
take const key_string.
* librdf/rdf_hash.c: (librdf_hash_open, librdf_hash_print_values):
Take const identifier, key_string. const in test data
* librdf/rdf_digest.c: const in test data
* librdf/librdf.h: Added REDLAND_PRINT_FORMAT
2006-10-05 Dave Beckett <dave@dajobe.org>
* configure.ac: Add -W flags that CC supports
2006-10-01 Dave Beckett <dave@dajobe.org>
* utils/rdfproc.c: Do not read from stream when parsing returns a
NULL pointer.
Fixes Issue#0000130 http://bugs.librdf.org/mantis/view.php?id=130
* utils/rdfproc.c: Allow base URI (for parsing) to be set to null
with -. Adjust info messages to handle this.
2006-09-10 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_sqlite.c: (librdf_storage_sqlite_literal_helper):
Move stringbuffer allocation to after sqlite_string_escape so if
it fails, no memory is lost.
(librdf_storage_sqlite_contains_statement): If
librdf_storage_sqlite_statement_operator_helper fails, free the
stringbuffer.
(librdf_storage_sqlite_context_remove_statement): If
librdf_storage_sqlite_statement_operator_helper fails, free the
stringbuffer.
Fixes issue #0000116 http://bugs.librdf.org/mantis/view.php?id=116
2006-09-04 Dave Beckett <dave@dajobe.org>
* librdf/rdf_serializer.c: (librdf_serializer_serialize_model_to_file):
Report an error when failed to fopen to create a file.
* librdf/rdf_storage_postgresql.c: (librdf_storage_postgresql_hash):
Take const char* string arg.
* librdf/rdf_storage_mysql.c: Add mysql reconnect option
2006-08-26 Dave Beckett <dave@dajobe.org>
* librdf/rdf_node.c: (librdf_new_node_from_blank_identifier): Autodocs
Fixes issue#00001114 http://bugs.librdf.org/mantis/view.php?id=114
2006-08-25 Dave Beckett <dave@dajobe.org>
* docs/Makefile.am: Use touch to build redland.3 when not in
maintainer mode
2006-08-24 Dave Beckett <dave@dajobe.org>
* utils/rdfproc.c: free uri_string
* configure.ac: Add missing sed op
2006-08-20 Dave Beckett <dave@dajobe.org>
* autogen.sh: Track where programs are discovered.
* docs/redland-sections.txt: Added librdf_basename
librdf_model_enumerate
* librdf/rdf_internal.h: tweak debug macros
2006-08-18 Dave Beckett <dave@dajobe.org>
* configure.ac: Strip more -O flags from incoming CFLAGS, CXXFLAGS
and CPPFLAGS. Do the same from the output of mysql_config --cflags
* configure.ac: Patch configure.ac to remove un-necessary tests
for C++ or F77++ compilers that libtool stupidly insists on
2006-08-16 Dave Beckett <dave@dajobe.org>
*
librdf/rdf_storage.c: (librdf_storage_context_remove_statements):
Doc fix
2006-08-11 Dave Beckett <dave@dajobe.org>
* librdf/rdf_query_rasqal.c: (rasqal_redland_new_triples_source):
Do not die if a sequence of data graphs is found, instead empty
the sequence of data graphs.
2006-07-29 Dave Beckett <dave@dajobe.org>
* librdf/rdf_heuristics.c, librdf/rdf_heuristics.h: Add some more
const fixes. Fixes Issue #0000107
http://bugs.librdf.org/mantis/view.php?id=107
* utils/rdfproc.c: Add world args to librdf_get_storage_factory
and librdf_storage_enumerate calls.
* librdf/rdf_init_internal.h: struct librdf_world_s gains
raptor_sequence of models
* librdf/rdf_model.c: Switch to a raptor_sequence of models.
(librdf_finish_model): Use raptor_free_sequence.
(librdf_delete_model_factories): Deleted.
(librdf_free_model_factory): Added helper for
raptor_free_sequence.
(librdf_model_register_factory, librdf_get_model_factory): Switch
to use sequences.
(librdf_model_enumerate): Added.
* librdf/rdf_model.h: Added librdf_model_enumerate
* librdf/rdf_model_storage.c: (librdf_init_model_storage): Update
for librdf_model_register_factory world arg.
* librdf/rdf_model_internal.h: struct librdf_model_factory_s loses
world, next fields, gains label. librdf_model_register_factory
gains label field librdf_get_model_factory gains world field
* librdf/rdf_storage.h: librdf_storage_enumerate gains world args.
* librdf/rdf_storage_internal.h: librdf_get_storage_factory gains
world args.
* librdf/rdf_storage.c: (librdf_get_storage_factory,
librdf_storage_enumerate): Add world args.
* librdf/rdf_storage.c: Switch to a raptor_sequence of storages.
(librdf_init_storage): Re-order, first thing registered is the
default.
(librdf_finish_storage): Use raptor_free_sequence.
(librdf_delete_storage_factories): Deleted.
(librdf_free_storage_factory): Added helper for
raptor_free_sequence.
(librdf_storage_register_factory, librdf_get_storage_factory,
librdf_storage_enumerate): Switch to use sequences.
* librdf/rdf_init_internal.h: (struct librdf_world_s): Add
raptor_sequence of storages
* librdf/rdf_storage_internal.h: (struct
librdf_storage_factory_s): Lose world and next fields.
* librdf/rdf_storage_sqlite.c: (librdf_storage_sqlite_context_remove_statements):
Remove unused vars
* utils/rdfproc.c: Check for invalid storage name with '-s' option
* librdf/rdf_storage_sqlite.c:
(librdf_storage_sqlite_context_remove_statements): Added.
Fixes Issue #0000103
http://bugs.librdf.org/mantis/view.php?id=103
* librdf/rdf_storage_sqlite.c: Wrap all sqlite_FREE calls on error
messages so that they are only called with SQLITE API v2.
Fixes Issue #0000105
http://bugs.librdf.org/mantis/view.php?id=105
* librdf/rdf_storage_postgresql.c:
(librdf_storage_postgresql_add_statements): Use
librdf_storage_postgresql_context_add_statements.
(librdf_storage_postgresql_context_add_statements): Add check for
adding duplicate statements and remove the check when in bulk mode.
* librdf/rdf_storage_mysql.c:
(librdf_storage_mysql_add_statements): Use
librdf_storage_mysql_context_add_statements.
(librdf_storage_mysql_context_add_statements): Add check for
adding duplicate statements and remove the check when in bulk mode.
2006-07-11 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_mysql.c: cast
2006-07-05 Dave Beckett <dave@dajobe.org>
* librdf/rdf_hash.c, librdf/rdf_heuristics.c,
librdf/rdf_iterator.c, librdf/rdf_model.c, librdf/rdf_node.c,
librdf/rdf_parser.c, librdf/rdf_query.c, librdf/rdf_serializer.c,
librdf/rdf_statement.c, librdf/rdf_storage.c, librdf/rdf_stream.c,
librdf/rdf_uri.c, librdf/rdf_utf8.c: (main): More const decls for
program
2006-07-04 Dave Beckett <dave@dajobe.org>
* librdf/rdf_digest.c: (main): Revalidate digest answers
* librdf/rdf_digest.c, librdf/rdf_hash.c, librdf/rdf_heuristics.c,
librdf/rdf_iterator.c, librdf/rdf_node.c, librdf/rdf_parser.c,
librdf/rdf_query.c, librdf/rdf_serializer.c,
librdf/rdf_statement.c, librdf/rdf_storage_internal.h,
librdf/rdf_stream.c, librdf/rdf_uri.c, librdf/rdf_utf8.c: Fixes
for calls to librdf_basename in unit tests
* librdf/rdf_storage_file.c: Add const for some char* args:
(librdf_storage_file_init): argument name
* librdf/rdf_storage_sqlite.c: Add const for some char* args:
(librdf_storage_sqlite_init): argument name
* librdf/rdf_storage_tstore.c: Add const for some char* args:
(librdf_storage_tstore_init): argument name
* librdf/rdf_storage_mysql.c: Add const for some char* args:
(librdf_storage_mysql_init): argument name
* librdf/rdf_storage_list.c: Add const for some char* args:
(librdf_storage_list_init): argument name
* librdf/rdf_storage_postgresql.c: Add const for some char* args:
(librdf_storage_postgresql_init): argument name
* librdf/rdf_init.c: Added string.h and (protected by
HAVE_UNISTD_H) unistd.h headers
* librdf/rdf_storage_hashes.c: Add const for some char* args:
(librdf_storage_hashes_register): argument name
(librdf_storage_hashes_register): argument name
(librdf_storage_hashes_init): argument name
* librdf/rdf_storage.c: Add const for some char* args:
(librdf_new_storage): argument storage_name
(librdf_new_storage_with_options): arguments storage_name, name
(librdf_new_storage_from_factory): argument name
* librdf/rdf_storage.h: Add const for some char* args:
librdf_new_storage argument storage_name
librdf_new_storage_with_options arguments storage_name, name
librdf_new_storage_from_factory argument name
* librdf/rdf_model.c: Update to add const for some char* args:
(librdf_new_model): argument options_string
(librdf_model_add_string_literal_statement): argument xml_language
(librdf_model_add_typed_literal_statement): argument xml_language
* librdf/rdf_digest.h: Add const for some char* args:
librdf_new_digest argument name
* librdf/rdf_model.h: Add const for some char* args:
librdf_new_model argument options_string
librdf_model_add_string_literal_statement argument xml_language
librdf_model_add_typed_literal_statement argument xml_language
* librdf/rdf_log.c: (librdf_log_simple): Handle attempting to
fputs a NULL message.
* librdf/rdf_storage_hashes.c: (librdf_storage_hashes_init_common):
Do not free any options here.
(librdf_storage_hashes_open): Free any options after passing them
to librdf_hash_open
* librdf/rdf_digest.c: (main): Count failures in digest checks and
return them in the return.
* librdf/rdf_digest.c, librdf/rdf_hash.c, librdf/rdf_heuristics.c,
librdf/rdf_iterator.c, librdf/rdf_model.c, librdf/rdf_node.c,
librdf/rdf_parser.c, librdf/rdf_query.c, librdf/rdf_serializer.c,
librdf/rdf_statement.c, librdf/rdf_storage.c, librdf/rdf_stream.c,
librdf/rdf_uri.c, librdf/rdf_utf8.c: use librdf_basename
* librdf/rdf_init.h: Added internal prototype for librdf_basename
* librdf/rdf_init.c: (librdf_basename): Added
2006-07-03 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_postgresql.c: make it legal C again
2006-07-02 Dave Beckett <dave@dajobe.org>
* librdf/rdf_query_rasqal.c: (rasqal_redland_bind_match): Tidy
docs and make the graph field (aka origin) match redland context.
(rasqal_redland_init_triples_match): If a context node is given,
use librdf_model_find_statements_in_context
* utils/rdfproc.c: Allow parse command to take an optional CONTEXT
argument
* configure.ac: postgresql test does not need pkg_config
2006-06-30 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage_postgresql.c:
(librdf_storage_postgresql_init): Use option 'database' like mysql
does as well as 'dbname'. If neither is present, allocate memory
for copying the user name rather than use a shared pointer.
2006-06-29 Dave Beckett <dave@dajobe.org>
* librdf/rdf_serializer_raptor.c: remove ORDINAL code comment
references
2006-06-18 Dave Beckett <dave@dajobe.org>
* librdf/rdf_storage.c: (librdf_storage_add_statement,
librdf_storage_add_statements, librdf_storage_contains_statement):
Document and enforce that only legal RDF triples are only allowed.
* librdf/rdf_statement.c: (librdf_statement_is_complete): Document
and enforce that only complete and legal RDF triples are only
allowed.
* librdf/rdf_model.c: (librdf_model_add_statement,
librdf_model_add, librdf_model_add_typed_literal_statement,
librdf_model_add_string_literal_statement,
librdf_model_contains_statement): Document and enforce legal RDF
triples are only allowed.
2006-06-05 Dave Beckett <dave@dajobe.org>
* librdf/rdf_model.c: docucomments typos
2006-05-11 Dave Beckett <dave@dajobe.org>
* examples/rss2ical.c: malloc +1 for nul
* examples/Makefile.am: make rss2ical
2006-05-10 Dave Beckett <dave@dajobe.org>
* examples/rss2ical.c: docs
2006-05-08 Dave Beckett <dave@dajobe.org>
* examples/rss2ical.c: (iso2vcaldate): handle shorter iso dats
* examples/rss2ical.c: (uri_to_calid): Added to form icalendar
identifiers from URIs
* examples/rss2ical.c: Use optional creator in query
* examples/rss2ical.c: (remove_html_entities): Remove leading
white space
* examples/rss2ical.c: Add dc:creator - bogus, but works for
planetRDF
(ical_format): Just use \n when wrapping long lines
(main): Output ATTENDEE name with value of creator
* examples/rss2ical.c: (remove_html_entities): Added, to get rid
of &#NNN; mostly, also doing amp, lt, gt.
* examples/rss2ical.c: Delete duration
* examples/rss2ical.c: rss2ical
2006-05-05 Dave Beckett <dave@dajobe.org>
* NEWS.html: 05-05 not 05-15
* NEWS.html, RELEASE.html: 1.0.4
* librdf/win32_rdf_config.h: bumped to 1.0.4
* Snapshotted redland_1_0_4 for 1.0.4 release
2006-05-02 Dave Beckett <dave@dajobe.org>
* librdf/rdf_utf8.c: (librdf_utf8_to_unicode_char,
librdf_utf8_to_latin1, librdf_utf8_print, main): Use
raptor_utf8_to_unicode_char.
* librdf/rdf_node.c: (librdf_new_node_from_literal,
librdf_new_node_from_typed_literal):
An empty language string is equivalent to a NULL pointer. This
makes calling this slightly easier from higher-level languages.
2006-05-01 Dave Beckett <dave@dajobe.org>
* Makefile.am: Added ChangeLog.6
2006-04-24 Dave Beckett <dave@dajobe.org>
* librdf/rdf_uri.c: (librdf_uri_is_file_uri): Replace raptor
1.4.9-deprecated raptor_uri_is_file_uri with
raptor_uri_uri_string_is_file_uri
* librdf/rdf_files.c: (main): Remove test for deprecated function.
* librdf/rdf_storage_postgresql.c: Use UINT64_T_FMT instead of
%llu for portability.
(librdf_storage_postgresql_init): Use escaped_name in query.
* librdf/rdf_storage_mysql.c: Use UINT64_T_FMT instead of %llu for
portability.
(librdf_storage_mysql_init): Use escaped_name in query.
* librdf/rdf_types.h: Define UINT64_T_FMT with the portable
sprintf formatting for a 64-bit unsigned int %I64u on win32,
%llu (gcc) elsewhere.
2006-04-09 Dave Beckett <dave@dajobe.org>
* docs/redland-chapter-intro.xml,
docs/redland-chapter-objects.xml, docs/redland-docs.xml: DocBook
XML V4.3
2006-03-27 Dave Beckett <dave@dajobe.org>
* redland.sln: redland win32 build files update from John Barstow
* librdf/win32/librdf.vcproj: redland win32 build files update
from John Barstow
* librdf/win32_rdf_config.h: redland win32 build files update from
John Barstow
* librdf/rdf_init.c: Protect #include <unistd.h> with defines as
elsewhere
* librdf/rdf_parser_raptor.c:
(librdf_parser_raptor_new_statement_handler): Allow
RAPTOR_IDENTIFIER_TYPE_RESOURCE and
RAPTOR_IDENTIFIER_TYPE_PREDICATE raptor predicate types again.
* examples/example5.c: Update to librdf_new_query change from long
ago
2006-03-18 Dave Beckett <dave@dajobe.org>
* librdf/Makefile.am: fix make libraptor.la & librasqal.la rules
2006-03-15 Dave Beckett <dave@dajobe.org>
* COPYING, COPYING.LIB, README.html, TODO.html,
librdf/rdf_parser_raptor.c: docs
2006-03-14 Dave Beckett <dave@dajobe.org>
* configure.ac: require rasqal 0.9.12
2006-03-13 Dave Beckett <dave@dajobe.org>
* configure.ac: BDB 4.4 now exists
2006-03-10 Dave Beckett <dave@dajobe.org>
* librdf/rdf_query.c: (main): Cast for size_t