forked from dajobe/raptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.11
5416 lines (3687 loc) · 175 KB
/
ChangeLog.11
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
2010-12-29 Dave Beckett <dave@dajobe.org>
* src/raptor_parse.c:
(raptor_world_guess_parser_name): Fix guessing by URI
* src/Makefile.am, src/raptor.h.in, src/raptor_parse.c,
src/raptor_serialize.c, src/raptor_syntax_description.c: Restore
array counts to syntax description.
Pull out common validation.
raptor_syntax_description gains names_count, mime_types_count and
uri_strings_count all computed at registration.
(raptor_syntax_description_validate): Added to public API to
validate and compute counts.
(raptor_world_register_parser_factory,
raptor_world_register_serializer_factory): Call above for common
validation checks.
* src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_guess.c,
src/raptor_json.c, src/raptor_librdfa.c, src/raptor_parse.c,
src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_serialize.c,
src/raptor_serialize_dot.c, src/raptor_serialize_html.c,
src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c,
src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c,
src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c,
src/turtle_parser.y: Update parsers and serializers to use
uri_strings for syntax description.
* src/raptor.h.in: raptor_syntax_description has an array of URI
strings, loses mime types count.
2010-12-02 Dave Beckett <dave@dajobe.org>
* src/raptor_rss.c:
Lower RSS mime type q values to 0.8 since that
is good enough, raptor cannot ever reach 100%
2010-12-01 Dave Beckett <dave@dajobe.org>
* NEWS.html, RELEASE.html, configure.ac,
src/win32_raptor_config.h:
Bumped version to 1.9.2
* README.html:
N-Quads
2010-12-01 Dave Beckett <dave@dajobe.org>
* Snapshotted raptor2_1_9_1 for 1.9.1 release (GIT
697d55552c5897afab65715d16abbce838acd3e7)
2010-11-30 Dave Beckett <dave@dajobe.org>
* src/raptor_www_curl.c: Respect Content-Location: header in HTTP
responses for final URI
(raptor_www_curl_update_status): If HTTP header Content-Location:
was found, use that rather than the HTTP 3xx redirect URI.
(raptor_www_curl_header_callback): Use raptor_strncasecmp rather
than strncmp to find content type and content location. If
content location is found, set the final_uri
Fixes Issue#0000402 http://bugs.librdf.org/mantis/view.php?id=402
* docs/Makefile.am, docs/raptor1-eol.html: Add raptor1-eol.html
* INSTALL.html:
update - encouraging the released tarballs path
* src/raptor_abbrev.c, src/raptor_internal.h,
src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c:
Remove unused created_p args / variables from raptor_abbrev
internal APIs
2010-11-29 Dave Beckett <dave@dajobe.org>
* src/raptor.h.in, src/raptor_term.c: Added convenience methods
for constructing URI terms
(raptor_new_term_from_counted_uri_string,
raptor_new_term_from_uri_string): Added to replace a common
pattern of make uri, make term, free uri.
2010-11-22 Dave Beckett <dave@dajobe.org>
* src/raptor_general.c, src/raptor_internal.h: Update defensive
code for checking raptor_world
* src/raptor_general.c: autodocs
* docs/raptor-sections.txt: Add new symbols
2010-11-21 Dave Beckett <dave@dajobe.org>
* docs/tmpl/section-world.sgml:
Update tmpls
* src/.gitignore:
ignore raptor.h
* configure.ac, src/Makefile.am, src/raptor.h, src/raptor.h.in,
src/raptor_general.c:
(raptor_new_world): Turn into a macro around the internal
raptor_new_world_internal()
* src/raptor_general.c, src/raptor_internal.h,
src/raptor_iostream.c, src/raptor_libxml.c,
src/raptor_namespace.c, src/raptor_parse.c, src/raptor_qname.c,
src/raptor_sax2.c, src/raptor_serialize.c, src/raptor_statement.c,
src/raptor_term.c, src/raptor_turtle_writer.c, src/raptor_uri.c,
src/raptor_www.c, src/raptor_xml_writer.c: Check world object is
valid for Raptor V2 in every constructor
RAPTOR2_WORLD_MAGIC: Alter the RAPTOR_MAGIC value to be different
for raptor V2 and rename it in code. RAPTOR1_WORLD_MAGIC is the
old value.
(raptor_check_constructor_world): Added to handle the check and
provide a function to debugger-break on. It warns once about the
pointer problems using a static var.
(RAPTOR_CHECK_CONSTRUCTOR_WORLD): Macro added to call
raptor_check_constructor_world() and replace generic
RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE check.
* src/raptor_librdfa.c:
(raptor_librdfa_parse_start): Call
rdfa_set_processor_graph_triple_handler with context.
* scripts/process-changes.pl:
print_statement_field_renames_as_perl_script added.
labels
* docs/raptor-1-to-2-map.tsv: more notes
* scripts/process-changes.pl: Update titles
* scripts/process-changes.pl: Fix delete enum output
* docs/raptor-1-to-2-map.tsv: RAPTOR_FEATURE_ASSUME_IS_RDF and
RAPTOR_FEATURE_START_URI were deleted.
* docs/raptor-1-to-2-map.tsv:
Add enum changes
* scripts/process-changes.pl: Handle enums
* docs/Makefile.am: upgrade-script.pl depends on tsv file
2010-11-17 Dave Beckett <dave@dajobe.org>
* src/raptor_librdfa.c: Replace rdfa_set_triple_handler with
rdfa_set_default_graph_triple_handler
* librdfa/rdfa.c, librdfa/rdfa.h, librdfa/triple.c: Update to
librdfa GIT 1a1a08c790b7649a7f6c12fb9e40c0d3dbe70481
2010-11-08 Dave Beckett <dave@dajobe.org>
* src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_internal.h,
src/turtle_parser.y: Fixes for C++ - Casts for C++ from void* to
typed pointer/function pointers - Rename some prototype args to
avoid 'explicit' C++ keyword.
2010-11-07 Dave Beckett <dave@dajobe.org>
* docs/raptor-sections.txt, docs/tmpl/section-stringbuffer.sgml,
docs/tmpl/section-triples.sgml: Update generated docs
* src/raptor_stringbuffer.c: docs
* UPGRADING.html: deleted questions
* RELEASE.html: 1.9.1
* RELEASE.html, src/raptor.h, src/raptor_term.c: Removed
raptor_term_as_counted_string() and raptor_term_as_string()
replaced by _to_ versions. These were 'deprecated' in GIT but
since 1.9.0 Raptor V2 was beta, it is OK to delete them.
* RELEASE.html: 1.9.1
2010-10-27 Dave Beckett <dave@dajobe.org>
* src/raptor_avltree.c:
(raptor_avltree_print): Free avltree_iterator at end
2010-10-22 Dave Beckett <dave@dajobe.org>
* src/ntriples_parse.c: N-Quads code tidying
* tests/ntriples/Makefile.am: Remove N-Quads from N-Triples test
files so Turtle parser doesn't barf.
* tests/ntriples/Makefile.am: #typo
* configure.ac: Typo in AM_CONDITIONAL enabling N-Quads parser
* tests/ntriples/Makefile.am: Add $(NQ_OUT_FILES) to dist
* tests/json/Makefile.am: example4.nt
* configure.ac, src/Makefile.am, src/ntriples_parse.c,
src/raptor_internal.h, src/raptor_parse.c,
tests/ntriples/Makefile.am, tests/ntriples/testnq-1.nq,
tests/ntriples/testnq-1.out: Added N-Quads parser. Hey, that was
easy!
Don't allow literal graphs/contexts despite that being in the spec
at http://sw.deri.org/2008/07/n-quads/ because it's a stupid idea.
Added test from the spec
2010-10-18 Dave Beckett <dave@dajobe.org>
* src/raptor.h, src/raptor_stringbuffer.c:
(raptor_stringbuffer_append_uri_escaped_counted_string): Added
* src/raptor.h, src/raptor_stringbuffer.c:
(raptor_stringbuffer_append_hexadecimal): Added
2010-10-18 Lauri Aalto <laalto@iki.fi>
* src/raptor_serialize.c: #doc typo
2010-10-17 Dave Beckett <dave@dajobe.org>
* src/raptor_iostream.c: Fix major copying too much error with
raptor_read_string_iostream_read_bytes() memcpy
(raptor_read_string_iostream_read_bytes): Adjust copied bytes to
the maximum available in the buffer, not the maximum requested by
user. Could cause crashes since memcpy is called to always copy
the maximum amount the user requests, whatever amount of data is
in the string.
2010-10-15 Dave Beckett <dajobe@digg.com>
* src/raptor_serialize.c:
(raptor_serializer_start_to_iostream): Reset free_iostream_on_end
flag to prevent crashes on reuse.
2010-10-11 Dave Beckett <dave@dajobe.org>
* src/ntriples_parse.c:
(raptor_ntriples_parse_recognise_syntax): Refuse to handle .ttl or
.n3 named content.
2010-10-09 Dave Beckett <dave@dajobe.org>
* librdfa/rdfa.c, librdfa/rdfa.h: Update to librdf GIT commit
ddead5d1f72acd7fcd9e4c42503eadcce9d6ec87
2010-10-07 Dave Beckett <dave@dajobe.org>
* docs/raptor-1-to-2-map.tsv: Add raptor_parser_parse_iostream -
was new in 1.9.0
2010-10-01 Dave Beckett <dave@dajobe.org>
* src/raptor_log.c:
(raptor_log_error): code tidy
* src/raptor.h: raptor_log_message: autodocs
2010-09-28 Dave Beckett <dave@dajobe.org>
* src/raptor_uri.c: Remove use of strncmp when strings are same
length
(raptor_uri_equals): Use memcmp() on same length strings to remove
need for strncmp that looks for NULs.
(raptor_uri_compare): Use memcmp() on same length strings to
remove need for strncmp that looks for NULs. Sort shorter urls
earlier by comparing lengths.
2010-09-28 Nicholas J Humfrey <njh@aelius.com>
* tests/json/Makefile.am, tests/json/example4.json,
tests/json/example4.nt: Added a more 'real-world' JSON pasing test
file, that includes a rdf:type URI.
* src/raptor_uri.c:
(raptor_uri_equals): small optimisation - URI lengths are now
compared before comparing strings.
* src/raptor_uri.c:
(raptor_uri_compare): URI comparison now takes into account the
stored string length, and does not depend upon NULL-termination of
strings.
2010-09-24 Dave Beckett <dave@dajobe.org>
* configure.ac:
Use AC_LANG_SOURCE for gcc flag test
2010-09-19 Dave Beckett <dave@dajobe.org>
* ChangeLog, ChangeLog.10, Makefile.am:
Added ChangeLog.10 for 2009
* NEWS.html, RELEASE.html, configure.ac, src/win32_raptor_config.h:
Bumped version to 1.9.1
* src/raptor_rss_common.c:
(raptor_new_rss_block): Copy block_term when needed, do not own
it.
2010-09-16 Dave Beckett <dave@dajobe.org>
* src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c:
Use raptor_term as arg to raptor_new_rss_block
(raptor_new_rss_block): Change blank node ID to a raptor_term arg.
(raptor_rss_start_element_handler): Adjust call to
raptor_new_rss_block.
2010-09-13 Dave Beckett <dave@dajobe.org>
* src/raptor_serialize_rss.c:
(raptor_rss10_store_statement): Code tidy to move checks out of
loop.
2010-09-12 Dave Beckett <dave@dajobe.org>
* src/raptor_abbrev.c, src/raptor_serialize_rss.c: Remove internal
uses of deprecated raptor_term_as_string()
* src/raptor_serialize_rss.c: Copy statements when saving them for
later.
(raptor_rss10_store_statement): Move copy statement only when not
handled, no need to do copy/free.
(raptor_rss10_serialize_statement): Pass on handled but do not do
copy statmenethere.
* src/raptor_serialize_rss.c: When debugging free memory allocated
by raptor_term_as_string()
* src/raptor.h, src/raptor_term.c:
Deprecated raptor_term_as_..._string() for _to_...string form
(raptor_term_to_counted_string): Added replacing
raptor_term_as_counted_string.
(raptor_term_to_string): Added replacing
raptor_term_as_string.
(raptor_term_as_counted_string, raptor_term_as_string):
Deprecated.
* src/raptor_librdfa.c: Make rdfa (librdfa) parser correctly
initialize static statement
(raptor_librdfa_parse_init): Init static statement with
raptor_statement_init() so reference counting and copying works.
* src/raptor_rss.c: Make RSS parser correctly initialize static
statement
(raptor_rss_parse_init): Init static statement with
raptor_statement_init() so reference counting and copying works.
* src/raptor_serialize_rss.c:
(raptor_rss10_store_statement): Never call raptor_free_statement()
* src/raptor_serialize_rss.c:
(raptor_rss10_serialize_statement): Tidy logic looking for type
triples.
* src/raptor_serialize_rss.c: Update debug messages to emit raptor
term not assume URIs
* src/raptor_serialize_rss.c:
(raptor_rss10_serialize_statement): Do not set block URIs from
blank nodes
* src/raptor_serialize_rss.c:
Fix crash in serializing to atom when comparing blank node as URI
(raptor_rss10_serialize_statement): Do not assume object is URI.
NOTE: This should use raptor_term_equals and be rewritten to
remove the item_uri code.
2010-09-02 Nicholas J Humfrey <njh@aelius.com>
* src/raptor_serialize_json.c:
(raptor_json_serialize_start): Corrected option macro name from
RAPTOR_OPTION_RELATIVE_URIS to RAPTOR_OPTION_JSON_CALLBACK.
2010-08-22 Nicholas J Humfrey <njh@aelius.com>
* raptor2.rdf.in:
Normalised tabs into spaces #ws
2010-08-17 Dave Beckett <dave@dajobe.org>
* src/raptor_nfc_test.c: Update for Raptor 2 API.
2010-08-16 Dave Beckett <dave@dajobe.org>
* Snapshotted raptor2_1_9_0 for 1.9.0 release (GIT
9223bfb82c7291dfc778d5bde690a6ecdb652e8e)
2010-08-15 Dave Beckett <dave@dajobe.org>
* UPGRADING.html: remove overview section
* INSTALL.html, LICENSE.html, NEWS.html, README.html,
RELEASE.html, UPGRADING.html: Tidy HTML style and change title to
Raptor RDF Syntax Library
* TODO.html: Empty document and point at bugs.librdf.org
* UPGRADING.html, Makefile.am: Added UPGRADING.html
* docs/tmpl/section-general.sgml: Update tmpl for adding
raptor_log_message
* src/raptor.h: Remove newline so raptor_log_message gets scanned
by gtk-doc!
* docs/raptor-sections.txt: Add raptor_log_message
* docs/.gitignore: Ignore raptor-fake.i for real
* docs/.gitignore: Ignore raptor-fake.i
* docs/Makefile.am, docs/tmpl/section-general.sgml: Make
raptor-fake.i generate properly
* scripts/Makefile.am: restore CLEANFILES
* docs/Makefile.am, scripts/Makefile.am,
scripts/fix-gtkdoc-header.pl: Attempt to fix raptor.h header to
make gtk-doc happier
* docs/raptor-1-to-2-map.tsv: more words in notes
* docs/raptor-tutorial-parsing.xml: need base uri pointer
* docs/raptor-tutorial-serializing.xml: enumeration
* docs/raptor-tutorial-parsing.xml: enumeration
* docs/raptor-tutorial-querying-functionality.xml: typo
* docs/raptor-tutorial-parsing.xml: raptor 2
* docs/raptor-tutorial-intro.xml: raptor 2
* docs/.gitignore: Ignore upgrade-script.pl
* scripts/build-formats.c: Call emit_format_to_syntax_list() at
end to emit last seen mime type.
* scripts/build-formats.c:
(emit_format_to_syntax_list): Added to emit format -> list of
parser/serializers.
* scripts/build-formats.c: print previous mime type in types index
* src/raptor_serialize_ntriples.c: Label nquads as "N-Quads"
2010-08-14 Dave Beckett <dave@dajobe.org>
* docs/libraptor2.3: Cut down for raptor2 and point to API docs in
HTML
* README.html: N-Quads serializer
* docs/raptor-parsers.xml: JSON parser
* INSTALL.html, README.html, raptor2.rdf.in: Update docs to point
to GitHub source and browse
* 000-README-GIT.txt: Remove migration text
* AUTHORS: Add Nicholas J Humfrey
* docs/tmpl/section-locator.sgml: Update generated tmpl for
locator rename
* RELEASE.html: 1.9.0 notes
* docs/raptor-serializers.xml: Add N-Quads section
* tests/trig/Makefile.am: Add bug370.out to dist
* tests/trig/Makefile.am, tests/trig/bug370.out,
tests/trig/bug370.trig, tests/trig/example1.out,
tests/trig/example2.out, tests/trig/example3.out:
Convert TRiG output results file to N-Quads to check graph
parameter.
* configure.ac, src/Makefile.am, src/raptor_internal.h,
src/raptor_serialize.c, src/raptor_serialize_ntriples.c:
Add N-Quads serializer name 'nquads' using N-Triples serializer.
Add conditions in makefile to allow ntriples and/or nquads
serializers
raptor_ntriples_serializer_context rename dummy field to is_quads
(raptor_ntriples_serialize_statement): Pass on flag to print
graph.
(raptor_nquads_serializer_register_factory): Added to register
nquads serializer with text/n-quads mime type
(raptor_init_serializer_nquads): Added
2010-08-11 Dave Beckett <dave@dajobe.org>
* tests/turtle/Makefile.am, tests/turtle/bad-23.ttl:
Add bad test bad-23 for
http://bugs.librdf.org/mantis/view.php?id=369
2010-08-09 Dave Beckett <dave@dajobe.org>
* docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt,
src/raptor.h, src/raptor_locator.c: Revert
raptor_locator_uri_string to raptor_locator_uri to protect Reland
SWIG API
* configure.ac, src/raptor_general.c, src/raptor_internal.h:
Remove --with-dmalloc and dmalloc library support
2010-08-09 Lauri Aalto <laalto@iki.fi>
* src/raptor_term.c: STANDALONE flagging for raptor_term unit
tests
2010-08-08 Dave Beckett <dave@dajobe.org>
* docs/raptor-1-to-2-map.tsv: ID function rename typo
2010-08-08 Dave Beckett <dave@dajobe.org>
* docs/tmpl/section-parser.sgml, docs/tmpl/section-triples.sgml,
docs/tmpl/section-world.sgml: Update tmpls
2010-08-08 Dave Beckett <dave@dajobe.org>
* docs/raptor-sections.txt: Update sections for ID handler changes
* configure.ac: Protect checks for optional configure tests
with quoting and X
2010-08-08 Nicholas J Humfrey <njh@aelius.com>
* src/raptor_json.c: The JSON parser supports both
Resource-Centric and Triples.
2010-08-06 Dave Beckett <dave@dajobe.org>
* src/raptor_grddl.c: Simplify libxslt save/restore logic
(raptor_libxslt_set_global_state): Always save default
security prefs.
(raptor_libxslt_reset_global_state): Always restore default
security prefs.
(raptor_init_parser_grddl_common): Init sec prefs if policy
allows and NULL
* src/raptor_grddl.c: Alter GRDDL init/cleanup of libxslt to be
done around transform
This means that raptor can operate in a single threaded
environment with other libxslt users, since it saves/restores all
the libxslt global vars that it needs back to their original state
after every xslt transform.
raptor_grddl_parser_context gains saved_xsltGenericError,
saved_xsltGenericErrorContext and saved_xsltSecurityPrefs fields.
(raptor_grddl_run_grddl_transform_doc): Use
raptor_libxslt_set_global_state() and
raptor_libxslt_reset_global_state() to save restore around
transforms.
(raptor_init_parser_grddl_common): Do not set default security
prefs.
(raptor_terminate_parser_grddl_common): NULL security prefs after
freeing them.
(raptor_libxslt_set_global_state): Added to save libxslt shared
state that grddl parser needs to overwrite.
(raptor_libxslt_reset_global_state): Added to reset state back to
original values.
Candidate for backporting to raptor1 since it has no API impact.
* src/raptor_grddl.c: Document libxslt global settings.
(raptor_grddl_run_grddl_transform_doc): set per-transform generic
error handler
* docs/raptor-1-to-2-map.tsv: Update from genid changes
Renamed 1.9.0 genid functions are renamed again, moving to world
class.
- raptor_world_set_generate_bnodeid_parameters renamed from
raptor_parser_set_default_generate_id_parameters
- raptor_world_set_generate_id_handler renamed from
raptor_parser_set_generate_id_handler
New 1.9.0 genid function renamed:
- raptor_world_generate_bnodeid renamed from
raptor_parser_get_new_generated_id and loses type arg.
* src/raptor_general.c, src/raptor_grddl.c, src/raptor_internal.h:
Make XSLT security preference setting totally disableable
(raptor_world_set_libxslt_security_preferences): If user sets any
value, even NULL, record that.
(raptor_init_parser_grddl_common): If pointer is NULL and user
didn't set it, only then make raptor-specific policy.
(raptor_terminate_parser_grddl_common): If pointer is not NULL and
raptor set it, then free policy.
xslt_security_preferences_policy field of raptor_world internal
renamed from free_xslt_security_preferences
This patch is a candidate for backporting to raptor1.
* src/raptor_www.c:
(raptor_www_set_user_agent): memcpy comment
* src/raptor_libxml.c: memcpy replacing more strcpy for known
length strings. Check NUL copying.
* src/raptor_www.c: memcpy replacing more strcpy for known length
strings. Check NUL copying.
* src/raptor_sax2.c:
(raptor_sax2_start_element): memcpy replacing strcpy with known
length string.
* src/raptor_qname.c: memcpy replacing more strcpy for known
length strings. Check NUL copying.
* src/raptor_namespace.c:
(raptor_new_namespace_from_uri): memcpy replacing strcpy
* src/raptor_uri.c:
(raptor_uri_filename_to_uri_string): memcpy replacing strcpy
* src/raptor_uri.c:
(raptor_new_uri_for_rdf_concept): memcpy replacing strcpy
* src/raptor_uri.c:
(raptor_new_uri_from_id): memcpy replacing strcpy
* src/raptor_uri.c:
(raptor_uri_print): Correct error check and simplify code.
2010-08-05 Nicholas J Humfrey <njh@aelius.com>
* src/raptor_term.c: Changed behaviour of
raptor_new_term_from_counted_blank() and
raptor_new_term_from_blank() to generate a new identifier if NULL
is passed in.
* src/ntriples_parse.c: Fix for ntriples parsing after the
raptor_world_generate_bnodeid() changes. Fix was to delete code -
blank nodes must be named in ntriples.
2010-08-04 Dave Beckett <dave@dajobe.org>
* src/raptor_guess.c, src/raptor_internal.h: Remove internal
raptor_parser_get_current_base_id and raptor_parser_factory method
* src/ntriples_parse.c, src/raptor.h, src/raptor_general.c,
src/raptor_grddl.c, src/raptor_internal.h, src/raptor_parse.c,
src/raptor_rdfxml.c, src/raptor_rss.c, src/turtle_parser.y: Move
generate ID code from raptor_parser to raptor_world class
(raptor_world_generate_bnodeid): Replaces
raptor_parser_internal_generate_id with arg
RAPTOR_GENID_TYPE_BNODEID.
Enum raptor_genid_type deleted - only RAPTOR_GENID_TYPE_BNODEID was
ever used.
raptor_generate_bnodeid_handler handler typedef renamed from
raptor_generate_id_handler since it now just applies to blank node
IDs.
raptor_generate_bnodeid_handler handler renamed from
raptor_generate_id_handler.
(raptor_free_world): Free user genid prefix if set.
(raptor_world_set_generate_bnodeid_handler): Renamed from
raptor_parser_set_generate_id_handler.
(raptor_world_generate_bnodeid): Renamed from
raptor_parser_get_new_generated_id and loses type arg.
(raptor_world_set_generate_bnodeid_parameters): Renamed from
raptor_parser_set_default_generate_id_parameters.
Update all callers to mostly use raptor_world_generate_bnodeid()
except where a user bnode ID is given, such as in Turtle _:foo or
RDF/XML rdf:nodeid="foo".
Remove copying of genid fields from parsers to parsers when
creating sub-parsers for e.g. grddl.
typedef raptor_parser loses generate_id* and default_generate_id*
fields.
(raptor_world_internal_generate_id): Renamed from
raptor_parser_internal_generate_id and loses type arg.
typedef raptor_world gains generate_bnodeid and
default_generate_bnodeid fields.
(raptor_free_parser): Lose tidying user genid prefix.
(raptor_parser_copy_user_state): Remove copying of genid fields
between parser user states.
(raptor_parser_get_current_base_id): Deleted, no longer needed to
support copying genids between parser states.
2010-08-03 Dave Beckett <dave@dajobe.org>
* src/raptor_term.c: More raptor_term unit tests
* src/Makefile.am, src/raptor_term.c: Add unit tests for
raptor_term
2010-08-02 Dave Beckett <dave@dajobe.org>
* src/raptor_term.c:
(raptor_term_equals): Make terms *different* not equal if lengths
are different
2010-07-20 Dave Beckett <dave@dajobe.org>
* tests/rdfa/Makefile.am: typo
* tests/rdfa/Makefile.am: Use automake conditional
RAPTOR_PARSER_RDFA to enable tests
* tests/json/Makefile.am: Use automake conditional
RAPTOR_PARSER_JSON to enable tests
* tests/grddl/Makefile.am: Use automake conditional
RAPTOR_PARSER_GRDDL to enable tests
* docs/raptor-parsers.xml: Added json parser section
* src/raptor_json.c: Note this is RDF/JSON parser (resource
centric) today
* src/raptor_serialize_json.c: Accept "text/json" mime type with
low Q for json serializers
* INSTALL.html: words
* INSTALL.html: correct autotools min versions
* INSTALL.html: GIT
* INSTALL.html: add YAJL pointers
* configure.ac: add yajl pointer
* configure.ac: Added --with-yajl=DIR (or 'no') to configure where
yajl is installed.
* scripts/process-changes.pl: docs
2010-07-02 Lauri Aalto <laalto@iki.fi>
* tests/json/Makefile.am: Run JSON parser tests only if the parser
is enabled
2010-07-01 Nicholas J Humfrey <njh@aelius.com>
* src/raptor_json.c: Added space after commas in parameter lists
* src/raptor_json.c: Removed spaces after if
* src/raptor_json.c: Changed single line if-statments to two line
if statements
* src/raptor_json.c: Changed C++ style comments to C style
* tests/json/Makefile.am, tests/json/bad-13.json: Added a Test
Case for missing out the term type
* src/raptor_json.c: Textual changes to error messages.
2010-06-30 Nicholas J Humfrey <njh@aelius.com>
* src/raptor_json.c: Removed unused debugging code.
* tests/json/Makefile.am, tests/json/bad-00.json,
tests/json/bad-01.json, tests/json/bad-02.json,
tests/json/bad-03.json, tests/json/bad-04.json,
tests/json/bad-05.json, tests/json/bad-06.json,
tests/json/bad-07.json, tests/json/bad-08.json,
tests/json/bad-09.json, tests/json/bad-10.json,
tests/json/bad-11.json, tests/json/bad-12.json: Added example of
bad RDF/JSON to check for parse errors.
* src/raptor_json.c: Slightly stricter parsing of JSON. Better
error messages then things go wrong.
* src/raptor_json.c, tests/json/Makefile.am,
tests/json/example3.json, tests/json/example3.nt: Enabled allowing
comments in JSON
* src/raptor_json.c: Fixed comparision between signed and unsigned
integers.
2010-06-29 Nicholas J Humfrey <njh@aelius.com>
* src/raptor_json.c: Improved JSON syntax detection to look at the
content.
* src/raptor_json.c: Lots of code re-factoring.
- Improved error handling
- Using Raptor memory allocation
- Improved memory management
* src/raptor_json.c: Changed malloc() to RAPTOR_MALLOC, free() to
RAPTOR_FREE().
* src/raptor_json.c: Rewrote fprintf(stderr, ...) to
raptor_parser_fatal_error(...)
2010-06-28 Dave Beckett <dave@dajobe.org>
* src/raptor_uri.c:
(raptor_new_uri_from_counted_string): autodoc to note counted
string need not be NULL-terminated.
* src/raptor_term.c: autodocs to note counted string constructors
need not be given NULL-terminated strings.
2010-06-27 Nicholas J Humfrey <njh@aelius.com>
* src/raptor_json.c: Added RATOR_JSON_ prefix to symbols. Code
cleanup.
* src/raptor_json.c, tests/json/Makefile.am,
tests/json/example1.json, tests/json/example1.nt,
tests/json/example2.json, tests/json/example2.nt: Added support
for parsing resource-centric JSON
* configure.ac, tests/Makefile.am, tests/json/Makefile.am,
tests/json/example1.json, tests/json/example1.nt,
tests/json/example2.json, tests/json/example2.nt: Created some
tests for RDF/JSON.
* src/raptor_json.c: Added support for Bnodes and Datatyped
literals. Fix for parsing small files.
* src/raptor_json.c: Commiting initial work on writing an JSON
parser.
Currently only handles json-triples.
Lots of tidying up required: - symbol names - remove debugging
messages - sort out memory management
2010-06-26 Nicholas J Humfrey <njh@aelius.com>
* configure.ac, src/Makefile.am, src/raptor_internal.h,
src/raptor_parse.c: Added libyajl library checking and json parser
building to automake
2010-06-06 Dave Beckett <dave@dajobe.org>
* examples/grapper.c: code style
* examples/Makefile.am: Add grapper-future rule
* examples/grapper.c: fix menu preferences link
* examples/grapper.c: Remove more deprecated GTK - GtkToolTips and
trigger based on macro
2010-06-05 Dave Beckett <dave@dajobe.org>
* examples/grapper.c: Better but preferences menu still broken
* examples/grapper.c: Another attempt, still crashes. GTK docs
also suck
* examples/grapper-ui.xml, examples/grapper.c: GtkUIManager and
external XML file is too damn complex to make work - disable.
* examples/grapper-ui.xml: Add GTK UI xml
* examples/grapper.c: more code explanation
* examples/grapper.c: Make both combo box alternatives work
* examples/grapper.c: Replace deprecated (in 2.4.x)
gtk_option_menu with gtk_combo_box
* examples/grapper.c: more 2.5.0+ code pruning
* examples/grapper.c: Require GTK 2.5.0+ (that's still quite old!)
* examples/grapper.c: code style
* examples/grapper.c: Update to Raptor 2 API
2010-06-02 Dave Beckett <dave@dajobe.org>
* docs/raptor-sections.txt: added
raptor_new_term_from_counted_blank
* src/raptor_term.c: fix raptor_new_term_from_counted_blank
* docs/raptor-1-to-2-map.tsv, src/raptor.h, src/raptor_term.c:
Added raptor_new_term_from_counted_blank for term with counted
length ID.
(raptor_new_term_from_counted_blank): Added
* docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt,
docs/tmpl/section-triples.sgml: Update docs for
raptor_new_term_from_counted_literal
* src/raptor.h, src/raptor_term.c: Added
raptor_new_term_from_counted_literal for constructing from strings
with known lengths.
(raptor_new_term_from_counted_literal): Added
(raptor_new_term_from_literal): Now calls
raptor_new_term_from_counted_literal.
2010-05-25 Dave Beckett <dave@dajobe.org>
* src/raptor_term.c:
(raptor_new_term_from_literal): Fail if language and datatype are
given like librdf_new_node_from_typed_literal
* docs/raptor-1-to-2-map.tsv, src/raptor.h,
src/raptor_serialize_ntriples.c:
(raptor_statement_ntriples_write): Add flag to decide whether to
write graph term.
* src/raptor_serialize_ntriples.c, src/raptor_statement.c:
(raptor_statement_print_as_ntriples,
raptor_statement_ntriples_write): Write N-Triples not N-Quads
2010-05-25 Lauri Aalto <laalto@iki.fi>
* src/raptor_term.c:
(raptor_new_term_from_literal): Ownership of language should not
be taken.
* src/raptor_term.c:
(raptor_new_term_from_literal): Do not overwrite literal length
with language length.
2010-05-24 Dave Beckett <dave@dajobe.org>
* docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt: Add new
statement methods to sections and functions map
* src/raptor_serialize_html.c, src/raptor_serialize_rdfxml.c:
(raptor_term_html_write, raptor_rdfxml_serialize_statement): Use
literal and language length fields direct, remove strlen()s
* src/raptor_serialize_ntriples.c:
(raptor_term_ntriples_write, raptor_statement_ntriples_write):
Check for NULL args and early write failures
* src/raptor_term.c:
(raptor_term_as_counted_string, raptor_term_as_string,
raptor_term_print_as_ntriples, raptor_term_equals): Check for NULL
term args
* src/raptor_statement.c:
(raptor_statement_compare): Return stable order if both statements
are NULL