forked from 0u812/raptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.7
1764 lines (1259 loc) · 61.9 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-29 Dave Beckett <[email protected]>
* src/raptor_grddl.c: Add profile_transformation_uri and
profile_uris list to grddl parser structure.
(raptor_xslt_parse_init, raptor_xslt_parse_terminate): init/free
the above fields. Add MATH_IS_VALUE_LIST and MATCH_IS_PROFILE
flags to match_table. Comment out hard-coded embedded RDF,
hCalendar xpaths. Added head profile xpath for profile URI
resoltuion.
(raptor_grddl_relay_triples): Look for matches in the list of
profile_uris for getting XSLT uris.
(typedef raptor_grddl_xml_parse_bytes_context): Renamed from
raptor_grddl_parse_bytes_context.
(raptor_grddl_uri_xml_parse_bytes): Renamed from
raptor_grddl_uri_parse_bytes.
(raptor_grddl_fetch_uri): Added to provide a single place to
retrieve URIs in the GRDDL operation. Set a user agent, send
accept header and handle no-net.
(raptor_grddl_run_grddl_transform_uri): Use raptor_grddl_fetch_uri
to retrieve the XSLT doc.
(raptor_grddl_seen_uri): Do a check only, mark done in new
function:
(raptor_grddl_done_uri): Added.
(raptor_grddl_parse_uri_write_bytes): Added for use by
raptor_grddl_parse_chunk.
(raptor_grddl_parse_chunk): Mark done when received is_end. Use
profile_uris list to record root namespace as first item in list
at index 0. Accept an XPath result of element and use its
namespace name if seen, to allow an XPath matching the root
element - not yet used. Update to use the match_table flags
field. Handle MATCH_IS_PROFILE by storing in the profile_uris
list, skipping the http://www.w3.org/2003/g/data-view profile URI.
Do all recursive GRDDL in one place over all the profile_uris
using raptor_grddl_fetch_uri.
* src/raptor_www_curl.c: (raptor_www_curl_fetch): set proxy if
www->proxy set
2006-12-28 Dave Beckett <[email protected]>
* utils/rapper.c: adjust whitespace so longer grddl description fits
* src/raptor_grddl.c: grddl docs, description updates
* src/Makefile.am, src/raptor_grddl.c (from
/raptor/trunk/src/raptor_xslt.c:11760), src/raptor_xslt.c:
Renameed raptor_xslt.c to raptor_grddl.c
* src/raptor_xslt.c: Rename all functions / structures to be
raptor_grddl / grddl not xslt.
* src/raptor_xslt.c: update spec reference
2006-12-27 Dave Beckett <[email protected]>
* src/raptor_xslt.c: Track list of visited URIs across recursive
GRDDL parsers
(raptor_xslt_parse_init, raptor_xslt_parse_terminate): Share the
list of visited uris, allocated/freed at depth 0 parser.
(raptor_xslt_add_parent): Added to associate a parent with a child
GRDDL parser and to all share the depth 0 parser's list of visited
URIs.
(raptor_xslt_relay_triples, raptor_xslt_ensure_internal_parser):
Return failure code and prepare for alternative when this may not
pass on all triples for namespace/profile GRDDL operations.
(raptor_xslt_run_grddl_transform_doc): Handle error code from
above.
(raptor_xslt_seen_uri): Added to track URIs seen.
(raptor_xslt_parse_chunk): Use seen URI tracking for initial
document and recursive GRDDLs.
* src/raptor_general.c: docs
2006-12-26 Dave Beckett <[email protected]>
* src/raptor_xslt.c: Add GRDDL looking up of root namespace URIs.
(raptor_xslt_parse_init, raptor_xslt_parse_terminate): Init/free
doc_transform_uris and namespace_transformation_uri.
grddl_namespace_uris_ignore_list added with list of namespace URIs
to never attempt to retrieve.
(raptor_xslt_relay_triples): Added, to relay triples to user but
look for data-view:namespaceTransformation triples
(raptor_xslt_ensure_internal_parser): Added to init an internal
parser if needed, reusing otherwise. Relay triples via
raptor_xslt_relay_triples before sending to user handler.
(raptor_xslt_run_grddl_transform_doc): Moved internal parser code
to raptor_xslt_ensure_internal_parser.
(raptor_xslt_parse_chunk): Get and store document root namespace
URI and then use it if not ignored. Do not do transforms
immediately but store in a sequence. Do a parse on the root
namespace URI if present to look for transformation triples.
Finally apply all transformation URIs seen in one go.
* src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax):
Recognize RDF/XML in sample content by looking for the XML marking
the RDF namespace declaration, the root element and likely
attributes.
* src/raptor_parse.c: (raptor_guess_parser_name): Mime type
matches that are q<10 no longer return a match but use the q as
score. Guessing then continues with the recognise_syntax factory
method, if present.
2006-12-14 Dave Beckett <[email protected]>
* src/raptor_xslt.c: (raptor_xslt_parse_init,
raptor_xslt_parse_start): Move xslt_parser->sax2 init from
raptor_xslt_parse_start - running on every parse to
raptor_xslt_parse_init - running once.
* src/raptor_xslt.c: (raptor_xslt_parse_chunk): Free any
previously used xpathObj before making a new one
2006-12-10 Dave Beckett <[email protected]>
* src/raptor_xslt.c: Previous changes did this:
Fixes Issue#0000143 http://bugs.librdf.org/mantis/view.php?id=143
* src/raptor_xslt.c: struct raptor_xslt_parser_context_s gains
raptor_sax2* sax2 field.
(raptor_xslt_parse_terminate): Free sax2.
(raptor_xslt_parse_start): Create a new sax2 structure and
initialise it's locator and error handler params.
(raptor_xslt_parse_chunk): Move error handler inits to
raptor_xslt_parse_start and do it once.
* src/raptor_parse.c: (raptor_parser_fatal_error_message_handler,
raptor_parser_error_message_handler,
raptor_parser_warning_message_handler): No need to protectb
raptor_print_locator from NULL locator, it does that.
* src/raptor_libxml.c: (raptor_libxml_update_document_locator,
raptor_libxml_error_common): Protect from NULL locator.
(raptor_libxml_init_generic_error_handlers): Altered to take an
raptor_sax2* argument.
* src/raptor_internal.h: raptor_libxml_init_generic_error_handlers
altered to take an raptor_sax2* argument.
2006-12-07 Dave Beckett <[email protected]>
* src/raptor_parse.c: (raptor_parser_copy_user_state): Make a new
copy of the shared generate id prefix string.
Fixes Issue#0000141 http://bugs.librdf.org/mantis/view.php?id=141
* src/raptor_serialize_rdfxmla.c:
(raptor_rdfxmla_serialize_statement): Do not store an rdf:type
predicate triple as the typed-node type unless the triple object
is a URI.
Fixes Issue#0000157 http://bugs.librdf.org/mantis/view.php?id=157
2006-12-06 Dave Beckett <[email protected]>
* src/raptor_turtle_writer.c: (raptor_turtle_writer_reference):
Generate <> for the empty relative URI
2006-12-03 Dave Beckett <[email protected]>
* src/raptor_abbrev.c, src/raptor_internal.h,
src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c:
Rename raptor_node to raptor_abbrev_node and raptor_subject to
raptor_abbrev_subject and rename functions to match the pattern
* src/raptor_turtle_writer.c: Use limits.h to get LONG_MAX
* src/raptor_www_libxml.c: raptor_www_libxml_http_error prototype.
* src/raptor_xslt.c: Store a single parser that could be of any
name, not just 'rdfxml'.
(raptor_xslt_parse_init): Do not init rdfxml parser here.
9raptor_xslt_parse_terminate): Free internal parser if present.
(raptor_xslt_parse_start): Do not copy user state to internal
parser here.
(raptor_xslt_run_grddl_transform_doc): Delve into the XSL
transformation results and try to interpret a mime type out of the
output type (if present). Assume any XML mime type is actually
RDF/XML and refuse to do recursive grddl guesses this way. Tidy
up code to clean up error paths
* src/raptor_www.c: (raptor_www_file_fetch): Return 200, 403 or
404 status codes and set failed flag.
(raptor_www_fetch): Set failed flag if a status code was returned
and the result was not 200.
* src/raptor_xslt.c: (raptor_xslt_parse_chunk): Skip empty XSLT
URIs in the list found.
2006-12-02 Dave Beckett <[email protected]>
* src/raptor_sax2.c, src/raptor_turtle_writer.c,
src/raptor_xml_writer.c: Add new features to switch()s
* src/raptor_abbrev.c: (raptor_new_node): init node always
* src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_emit_blank): Do
not double-encode blank node ids. Do not free a shared blank node
string value.
(raptor_rdfxmla_emit_subject): Do not double-encode blank node
ids. Free only allocated attr_value.
(raptor_rdfxmla_serialize_init): Ensure rdf_type is initialized.
* src/raptor_turtle_writer.c: Remove // comments
* src/raptor_serialize_turtle.c: deleting commented-out code
* src/raptor_serialize_turtle.c: Code style, whitespace.
* src/raptor.h, src/raptor_internal.h: Move turtle write functions
into internal API for now
* src/raptor_serialize_turtle.c:
(raptor_turtle_serialize_declare_namespace_from_namespace): Allow
a default namespace to be handled when prefix is NULL.
* src/raptor_turtle_writer.c: (raptor_turtle_writer_qname): Write
a QName using Turtle's rules either prefix:local or :local which
is not how raptor_iostream_write_qname() writes them for XML.
* src/raptor_turtle_writer.c: (raptor_turtle_writer_namespace_prefix):
Only emit a prefix if there is one.
* src/raptor_serialize_turtle.c, docs/raptor-serializers.xml,
docs/tmpl/section-general.sgml, configure.ac, src/Makefile.am,
src/raptor.h, src/raptor_serialize.c, src/raptor_turtle_writer.c,
tests/Makefile.am, tests/turtle/Makefile.am: Turtle serializer by
Dave Robillard
* src/raptor_xml_writer.c: docs
* src/raptor_abbrev.c, src/raptor_internal.h,
src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_find_subject):
Renamed from raptor_find_subject.
(raptor_new_qname_from_resource): Remove link to rdfxml-abbrev
serializer context and pass in namespaces stack parameters.
(raptor_lookup_node): Renamed from raptor_rdfxmla_lookup_node
(raptor_lookup_subject): Renamed from
raptor_rdfxmla_lookup_subject.
(raptor_find_subject): Renamed from raptor_rdfxmla_find_subject.
* src/raptor_abbrev.c: Re order functions
* src/Makefile.am, src/raptor_abbrev.c, src/raptor_internal.h,
src/raptor_serialize_rdfxmla.c: (raptor_new_qname_from_resource,
raptor_new_node, raptor_free_node, raptor_node_equals,
raptor_node_matches, raptor_new_subject, raptor_free_subject,
raptor_subject_add_property, raptor_subject_add_list_element,
raptor_rdfxmla_lookup_node, raptor_rdfxmla_find_subject,
raptor_rdfxmla_lookup_subject): Move common abbreviated serializer
code from raptor_serialize_rdfxmla.c to raptor_abbrev.c
* src/raptor_serialize_dot.c: gratuitous whitespace schanges
* docs/tmpl/section-feature.sgml: New DOT features
* src/raptor_turtle_writer.c copied from
/raptor/trunk/src/raptor_xml_writer.c:11666: copy for turtle
writing
2006-11-26 Dave Beckett <[email protected]>
* src/raptor_uri.c: (raptor_uri_filename_to_uri_string):
Dynamically allocate the path buffer and realloc it if it's too
small. This helps Hurd which does not handle PATH_MAX like
linux/unix.
* docs/raptor-serializers.xml, src/raptor.h, src/raptor_feature.c,
src/raptor_internal.h, src/raptor_parse.c, src/raptor_serialize.c,
src/raptor_serialize_dot.c: Import updated DOT serializer.
Renamed features to remove _color/_COLOR from end of name. Added
feature descriptions
* src/raptor_serialize_dot.c: alter label
* src/Makefile.am, src/raptor_internal.h, src/raptor_serialize.c,
src/raptor_serialize_dot.c: Add DOT serializer
* configure.ac: libxml minimum version is now 2.6.8 since 2.6.7
crashes on PPC64 Linux. 2.6.8 was released March 2004 so this
should be no burden.
2006-11-20 Dave Beckett <[email protected]>
* raptor.rdf.in: Update description and for SVN repository.
2006-11-19 Dave Beckett <[email protected]>
* NEWS.html, RELEASE.html, configure.ac,
src/win32_raptor_config.h: Bumped version to 1.5.0
2006-10-22 Dave Beckett <[email protected]>
* Snapshotted raptor_1_4_13 for 1.4.13 release (SVN r11540)
* src/raptor_rss.c: (raptor_rss_end_element_handler): Only declare
name when debugging.
* src/win32_raptor_config.h: Update defines:
HAVE_XMLSAX2INTERNALSUBSET replaces RAPTOR_LIBXML_XMLSAX2INTERNALSUBSET
Added HAVE_XMLCTXTUSEOPTIONS
Deleted RAPTOR_LIBXML_XMLUSENEWPARSER
* src/raptor_xslt.c: (raptor_xslt_uri_parse_bytes): Use #ifdef
HAVE_XMLCTXTUSEOPTIONS to protect call to xmlCtxtUseOptions
* src/raptor_sax2.c: (raptor_sax2_parse_chunk): Use #ifdef
HAVE_XMLCTXTUSEOPTIONS to protect call to xmlCtxtUseOptions
* src/raptor_libxml.c: #ifdef HAVE_XMLSAX2INTERNALSUBSET replaces
RAPTOR_LIBXML_XMLSAX2INTERNALSUBSET
* configure.ac: Remove unused check for xmlUseNewParser (defining
RAPTOR_LIBXML_XMLUSENEWPARSER) Use AC_CHECK_FUNCS to check for new
xmlCtxtUseOptions and existing xmlSAX2InternalSubset
2006-10-21 Dave Beckett <[email protected]>
* src/raptor_serialize_rdfxmla.c:
(raptor_rdfxmla_emit_subject_properties): Throw an error and skip
triple if cannot make URI from a predicate.
2006-10-13 Dave Beckett <[email protected]>
* src/raptor_uri.c: (raptor_uri_to_relative_counted_uri_string):
Check for equal scheme and authority correctly.
Fixes Issue #0000134 http://bugs.librdf.org/mantis/view.php?id=134
* src/raptor_uri.c: (main): Test for bug 134
2006-10-09 Dave Beckett <[email protected]>
* src/raptor_parse.c: (raptor_set_default_generate_id_parameters)
autodocs
2006-10-08 Dave Beckett <[email protected]>
* src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_serialize_start)
Free any existing xml_writer before making a new one.
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_start)
Free any existing xml_writer before making a new one.
* src/raptor_serialize_rss.c: (raptor_rss10_serialize_end): Free
any existing xml_writer before making a new one.
2006-10-05 Dave Beckett <[email protected]>
* configure.ac: Found more -W flags.
* utils/rdfdiff.c: cast
* src/raptor_set.c: const
* configure.ac: In maintainer mode, add all the supported -W
options to the MAINTAINER_CFLAGS
* utils/rapper.c: Cast for signed/unsigned comparison
* src/raptor_libxml.c: redundant decl
* utils/rapper.c: Cast for unsigned vs signed int use of
raptor_get_feature_count()
* src/n3_common.h, src/n3_lexer.l, src/n3_parser.y,
src/raptor_libxml.c, src/raptor_rdfxml.c, src/raptor_rss.c,
src/raptor_sax2.c, src/raptor_serialize_rdfxml.c,
src/raptor_serialize_rdfxmla.c, src/turtle_common.h,
src/turtle_lexer.l, src/turtle_parser.y: Make internal
error/warning/vargs functions use RAPTOR_PRINTF_FORMAT and fix a
few bad uses of args
* src/raptor_parse.c: (raptor_syntaxes_enumerate): Discard test
for unsigned int < 0.
(raptor_parse_uri_no_net_filter); Fix raptor_parser_error format
arg.
* src/raptor_serialize.c: (raptor_serializers_init): Declare new
style void.
(raptor_serializers_enumerate): Discard test for unsigned int < 0.
* src/ntriples_parse.c: (raptor_ntriples_term): Cast for
raptor_parser_error arg.
* src/raptor_internal.h: Declare many error/warning/*varargs
prototypes with RAPTOR_PRINTF_FORMAT that they take a printf-style
format argument.
* src/raptor.h: Added RAPTOR_PRINTF_FORMAT to allow declaring of
functions with a printf-style format argument.
Declare raptor_vsnprintf using it.
* src/raptor_internal.h, src/raptor_rdfxml.c, src/raptor_xml.c:
Turn content_cdata into using raptor_stringbuffer so that it does
a lot less copying (strncpy) when joining literals
2006-10-03 Dave Beckett <[email protected]>
* examples/Makefile.am: Fix AM_* flags
2006-10-02 Dave Beckett <[email protected]>
* docs/raptor-tutorial-serializing.xml: typo
raptor_serializer_set_namespace => raptor_serialize_set_namespace
* docs/raptor-tutorial-serializing.xml: Add single triple
serializing example rdfserialize.c
* docs/Makefile.am: Add rdfserialize.c
* examples/rdfserialize.c: tidy
* examples/Makefile.am: Added rdfserialize example.
* examples/rdfserialize.c: rdfserialize.c: serialize 1 triple to
RDF/XML-Abbrev
2006-09-24 Dave Beckett <[email protected]>
* src/raptor_xslt.c: (raptor_xslt_uri_parse_bytes): Only use
XML_PARSE_NONET if defined.
* src/raptor_sax2.c: (raptor_sax2_parse_chunk): Use
XML_PARSE_NONET only if defined.
2006-09-17 Dave Beckett <[email protected]>
* utils/Makefile.am: (AM_CFLAGS, AM_CPPFLAGS): Remove duplication
of @CFLAGS@, @CPPFLAGS@
* src/Makefile.am: (AM_CFLAGS): Remove duplication of @CFLAGS@
2006-09-08 Dave Beckett <[email protected]>
* configure.ac: Allow LEX to be set to things that aren't exactly
'flex'
2006-08-27 Dave Beckett <[email protected]>
* NEWS.html, configure.ac, src/win32_raptor_config.h: Bumped
version to 1.4.13
* Snapshotted raptor_1_4_12 for 1.4.12 release (SVN r11256)
* docs/libraptor.3: 1.4.12 no API changes
* src/raptor_serialize.c: (raptor_serializers_init): Restore order
from 1.4.10
* src/raptor_serialize_rdfxmla.c: (raptor_init_serializer_rdfxmla):
Restore order from 1.4.10
2006-08-26 Dave Beckett <[email protected]>
* src/win32_raptor_config.h, configure.ac, NEWS.html: Bumped
version to 1.4.12
* Snapshotted raptor_1_4_11 for 1.4.11 release (SVN r11244)
* src/raptor_parse.c: (raptor_start_parse): Throw an error if no
base URI is given and it is needed.
* src/raptor_sax2.c: (raptor_sax2_parse_start): Free any existing
base URI before assigning a new one.
* src/ntriples_parse.c: (raptor_ntriples_generate_statement): Use
raptor_new_uri since base_uri is never used, and all the URIs are
absolute.
* docs/tmpl/section-feature.sgml, docs/tmpl/section-parser.sgml,
docs/tmpl/section-unicode.sgml: Updated templates for 1.4.11
* src/raptor_parse.c: (raptor_start_parse): Return failure if need
a base URI and none was given.
2006-08-23 Dave Beckett <[email protected]>
* src/raptor.h: Add RAPTOR_API before
raptor_namespaces_qname_from_uri to export it properly for windows.
Fixes Issue #0000112 http://bugs.librdf.org/mantis/view.php?id=112
* src/raptor_rss.c: Use raptor_strcasecmp.
Fixes Issue #0000110 http://bugs.librdf.org/mantis/view.php?id=110
2006-08-22 Dave Beckett <[email protected]>
* docs/libraptor.3: Updates for 1.4.11
2006-08-21 Dave Beckett <[email protected]>
* docs/raptor-sections.txt: Added raptor_get_feature_count and
raptor_get_need_base_uri
* src/n3_parser.y, src/ntriples_parse.c, src/raptor.h,
src/raptor_guess.c, src/raptor_internal.h, src/raptor_parse.c,
src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_xslt.c,
src/turtle_parser.y: Added raptor_get_need_base_uri to return new
field need_base_uri_flag in raptor_parser_factory that is set by
all parsers now
2006-08-20 Dave Beckett <[email protected]>
* utils/rapper.c: Use raptor_get_feature_count and add
raptor_finish() before all exits.
* src/raptor.h: Added raptor_get_feature_count prototype
* src/raptor_feature.c: (raptor_get_feature_count): Added
* src/raptor_serialize.c: Turn serializers into a raptor_sequence
(raptor_free_serializer_factory): Added.
(raptor_serializers_init): Init sequence, reverse order so
N-Triples remains first.
(raptor_serializers_finish): Free with raptor_free_sequence
(raptor_serializer_register_factory,
raptor_get_serializer_factory, raptor_serializers_enumerate):
Update to use sequence.
* src/raptor_parse.c: Turn parsers into a raptor_sequence
(raptor_free_parser_factory): Added.
(raptor_parsers_init): Init sequence, reverse order so RDF/XML
remains first.
(raptor_parsers_finish): Free with raptor_free_sequence
(raptor_parser_register_factory, raptor_parser_factory_add_alias,
raptor_get_parser_factory, raptor_syntaxes_enumerate,
raptor_guess_parser_name): Update to use sequence.
(main): Added test for raptor_parser_get_accept_header_all
* src/raptor_internal.h: Added prototypes for raptor_parsers_init,
raptor_serializers_init, raptor_parsers_finish and
raptor_serializers_finish. Rename raptor_init/finish_sax2 to
raptor_sax2_init/finish
* src/raptor_sax2.c: (raptor_sax2_init): Renamed from
raptor_init_sax2
(raptor_sax2_finish): Renamed from raptor_finish_sax2
* src/raptor_general.c: (raptor_init): Call raptor_parsers_init
and raptor_serializers_init.
(raptor_finish): Call raptor_parsers_finish and
raptor_serializers_finish.
* src/raptor_serialize.c: (raptor_serializers_init): Added.
(raptor_serializers_finish): Renamed from
raptor_delete_serializer_factories
* src/raptor_parse.c: (raptor_parsers_init): Added.
(raptor_parsers_finish): Renamed from
raptor_delete_parser_factories
(raptor_parser_register_factory): Delete mime_type and uri_string
args.
(raptor_parser_factory_add_uri): Added for registering a URI
* src/n3_parser.y, src/ntriples_parse.c, src/raptor_guess.c,
src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_xslt.c,
src/turtle_parser.y: Remove mime_type and uri args from
raptor_parser_register_factory
* src/n3_parser.y, src/ntriples_parse.c, src/raptor_guess.c,
src/raptor_internal.h, src/raptor_parse.c, src/raptor_rdfxml.c,
src/raptor_rss.c, src/raptor_xslt.c,
src/turtle_parser.y: (raptor_parser_register_factory): Remove mime
type arg, nothing uses it now
* src/ntriples_parse.c: (raptor_ntriples_parse_chunk): Make junk
at end of input errro return from the function as a failure.
* src/turtle_parser.y: Remove %destructor tidy for PREFIX
* src/n3_parser.y: Remove %destructor tidy for PREFIX
* src/n3_parser.y: Add %destructor to tidy up tokens when doing
error recovery.
(directive): Hack to stop Bison moaning about not using $1
* src/turtle_parser.y: Add %destructor to tidy up tokens when
doing error recovery.
(directive): Hack to stop Bison moaning about not using $1
* src/n3_parser.y: Added labels for tokens to enable better error
messages.
* src/turtle_parser.y: Added labels for tokens to enable better
error messages.
* autogen.sh: Track where programs are discovered.
* src/raptor_parse.c: (raptor_parse_uri_with_connection,
raptor_set_feature, raptor_get_feature, raptor_set_parser_strict):
Update to use array of features throughout.
(raptor_parser_copy_user_state): Copy all features when copying
state.
* src/raptor_xslt.c: (raptor_xslt_uri_parse_bytes,
raptor_xslt_run_grddl_transform_uri): Update to use array of
features.
* src/raptor_rdfxml.c: (raptor_rdfxml_start_element_handler,
raptor_rdfxml_parse_start, raptor_rdfxml_generate_statement,
raptor_rdfxml_process_property_attributes,
raptor_rdfxml_start_element_grammar,
raptor_rdfxml_end_element_grammar, raptor_rdfxml_cdata_grammar,
raptor_rdfxml_record_ID): Update to use array of features
throughout.
* src/raptor_rss.c: (raptor_rss_parse_start): Update to use array
of features.
* src/raptor_guess.c: (raptor_guess_parse_chunk): Use
raptor_parser_copy_user_state to copy over pointers and feature
flags to the inner parser.
* src/raptor_internal.h: struct raptor_parser_s - replace
individual feature fields with an array.
* src/raptor_parse.c: Removed static raptor_get_parser_factory
prototype
* src/raptor_internal.h: Added raptor_get_parser_factory
* src/raptor_parse.c: (raptor_get_parser_factory): Now internal
not static
* configure.ac: flex check - warn before failing
* src/raptor_xslt.c: comma chameleon
* configure.ac: recommend flex 2.5.33
* configure.ac: Update to point at main flex site whichq finally
gets 2.5.33 after 9 years
* src/raptor_guess.c: Rework to call an internal use of a parser
rather than "exec"ing into the guessed parser.
Fixes Issue#0000091 http://bugs.librdf.org/mantis/view.php?id=91
* src/raptor_parse.c: (raptor_parser_exec): Deleted
* src/raptor_internal.h: Delete raptor_parser_exec
* src/raptor_xslt.c: Disable dc-extract.xsl
2006-08-19 Dave Beckett <[email protected]>
* RELEASE.html: Updated for 1.4.11
* docs/raptor-docs.xml: Added raptor-parsers.xml and
raptor-serializers.xml
* docs/Makefile.am: Added raptor-parsers.xml and
raptor-serializers.xml
* docs/raptor-parsers.xml, docs/raptor-serializers.xml: Added list
of parsers and serializers
* docs/tmpl/section-parser.sgml: Updated
* docs/tmpl/section-www.sgml: Updated
* docs/tmpl/section-feature.sgml: Updated
* docs/libraptor.3: Rename raptor_uri_filter_func
* docs/raptor-docs.xml: tweak title
* docs/raptor-tutorial-parsing.xml: params
* docs/raptor-sections.txt: Rename raptor_uri_filter_func
* utils/rapper.c: Allow --show-namespaces to print to stderr while
relaying them to the serializer.
* src/raptor_serialize_rdfxmla.c:
(raptor_rdfxmla_serialize_declare_namespace_from_namespace): Don't
declared multiple prefixes for the same namespace URI.
* src/raptor_serialize_rdfxml.c:
(raptor_rdfxml_serialize_declare_namespace_from_namespace): Don't
declared multiple prefixes for the same namespace URI.
* docs/raptor-tutorial-parsing.xml: Update for uri filter arg change
* src/raptor_parse.c: Renamed raptor_www_uri_filter_func uri_filter to
raptor_uri_filter_func uri_filter and removed raptor_www* arg to
the filter function.
* src/raptor.h: Renamed raptor_www_uri_filter_func uri_filter to
raptor_uri_filter_func uri_filter and removed raptor_www* arg to
the filter function.
* src/raptor_www.c: Renamed raptor_www_uri_filter_func uri_filter
to raptor_uri_filter_func uri_filter and removed raptor_www* arg
to the filter function.
* src/raptor_internal.h: Renamed raptor_www_uri_filter_func
uri_filter to raptor_uri_filter_func uri_filter and removed
raptor_www* arg to the filter function.
* src/raptor_xslt.c: (raptor_xslt_uri_parse_bytes): Take in a
small structure to get the raptor_parser* pointer as well as the
libxml parser context. Use it to pass on the nonet option to
libxml if it is set.
(raptor_xslt_run_grddl_transform_uri): Use new struct.
* src/raptor_rss.c: (raptor_rss_parse_start): Pass on
raptor_parser feature no_net to raptor_sax2.
* src/raptor_rdfxml.c: (raptor_rdfxml_parse_init): Do feature
related initialising at the start of every parse, not once for all
rdf/xml parser instances.
(raptor_rdfxml_parse_start): Init feature_normalize_language and
feature_no_net here.
* src/raptor_sax2.c: (raptor_sax2_parse_chunk): Set libxml option
XML_PARSE_NONET if sax2 feature RAPTOR_FEATURE_NO_NET is set.
(raptor_sax2_set_feature): Handle RAPTOR_FEATURE_NO_NET.
* src/raptor_internal.h: raptor_sax2 gains feature_no_net
* docs/raptor-tutorial-parsing.xml: Add parser URI filtering
examples to tutorial
* docs/libraptor.3: Updated for 1.4.11
* utils/rapper.c: Reorder help message. Use triples in messages
and fix that plurals thing.
2006-08-18 Dave Beckett <[email protected]>
* docs/raptor-tutorial-serializing.xml: Add IDs to examples
* docs/raptor-tutorial-parsing.xml: Add IDs to examples
* docs/raptor-tutorial-querying-functionality.xml: Make it xml
* src/raptor_sax2.c: Added autodocs for raptor_xml_element_is_empty
* docs/raptor-sections.txt: Add raptor_parser_set_uri_filter,
raptor_www_set_uri_filter and raptor_www_uri_filter_func
* docs/raptor-tutorial-querying-functionality.xml: Fix example, add ID
* src/raptor.h: Document RAPTOR_FEATURE_NO_NET
* src/raptor_parse.c: (main): Print all features for a parser,
don't stop at first non parser feature.
* src/raptor_xslt.c: (raptor_xslt_run_grddl_transform_uri): Set
URI filter or if feature NO_NET is set,
raptor_parse_uri_no_net_filter
* src/raptor_xml_writer.c: Add RAPTOR_FEATURE_NO_NET to switches
* src/raptor_sax2.c: Add RAPTOR_FEATURE_NO_NET to switches
* src/raptor_serialize.c: Add RAPTOR_FEATURE_NO_NET to switches
* src/raptor_parse.c: (raptor_parse_uri_no_net_filter): Added to
use in parsers to deny network fetches when feature NO_NET is in
action.
(raptor_parse_uri_with_connection): Set URI filter or if feature
NO_NET is set, raptor_parse_uri_no_net_filter
(raptor_parser_set_uri_filter): Added.
(raptor_set_feature, raptor_get_feature): Handle
RAPTOR_FEATURE_NO_NET.
(raptor_parser_copy_user_state): Copy uri filter fields.
* src/raptor_www.c: (raptor_www_set_uri_filter): Added to add a
filter function to check a URI before it is resolved.
(raptor_www_fetch): call URI filter function before resolving.
* src/raptor_feature.c: Added RAPTOR_FEATURE_NO_NET to deny
network requests, primarily in parsing.
* src/raptor_internal.h: Add feature_no_net Added
raptor_parse_uri_no_net_filter prototype raptor_parser and
raptor_www gain fields uri_filter_user_data and
raptor_www_uri_filter_func uri_filter
* src/raptor.h: Added RAPTOR_FEATURE_NO_NET
Added raptor_www_uri_filter_func filter.
Added raptor_parser_set_uri_filter prototype.
Added raptor_www_set_uri_filter
* src/raptor_rdfxml.c: (raptor_rdfxml_generate_statement): Make
sure the allocated URI is always freed.
* configure.ac: Strip more -O flags from incoming CFLAGS, CXXFLAGS
and CPPFLAGS.
* configure.ac: Patch configure.ac to remove un-necessary tests
for C++ or F77++ compilers that libtool stupidly insists on
2006-08-14 Dave Beckett <[email protected]>
* src/raptor_serialize_rdfxmla.c: Replace reference counting with
counting blank/resource nodes used as subjects and objects to
prevent dual-triple generation.
Fixes Issue#0000014 http://bugs.librdf.org/mantis/view.php?id=14
Add function documentation and tidy code style.
* src/n3_parser.y: (raptor_n3_parse_start): Enforce that a base
URI is required.
* src/turtle_parser.y: (raptor_turtle_parse_start): Enforce that a
base URI is required.
2006-07-30 Dave Beckett <[email protected]>
* src/raptor_xslt.c: Allow GRDDL value to be a space-separated
list of URIs, so now can support dataview:transformation in XML
taking a list of transformations as defined in
http://www.w3.org/2004/01/rdxh/spec#grddl-xhtml
(raptor_xslt_parse_chunk): Split the value into a list of XSLT
URIs and use each of them on the document.
Fixes Issue #0000041 http://bugs.librdf.org/mantis/view.php?id=41
* src/raptor_xslt.c: Added a table of xpaths and optional XSLT
URIs to use, which allows non-GRDDL to be given as long as
XML/XHTML is recognised and the XSLT sheet does the transformation
work. Added transform pointers for DC <meta>, Embedded RDF and
HCalendar
(raptor_xslt_run_grddl_transform_doc,
raptor_xslt_run_grddl_transform_uri): Added, pulled out of
raptor_xslt_parse_chunk which was too long.
(raptor_xslt_parse_chunk): Much smaller and tidied error messages.
Use the given XSLT URI to do a transform if it exists rather than
the node value(s) as URIs for multiple transforms.
* configure.ac: Remove libwww support
* src/raptor_internal.h, src/raptor_www.c,
src/raptor_www_libwww.c: Remove libwww support
2006-07-16 Dave Beckett <[email protected]>
* src/raptor_serialize_rss.c: (raptor_rss10_build_items):
Recognize ordinals also by their URI, not just from the deprecated
ORDINAL special type - this makes RSS 1.0 serializing work again.
Based on patch from Shin-ichi Hirata.
2006-07-15 Dave Beckett <[email protected]>
* NEWS.html, configure.ac, src/win32_raptor_config.h: Bumped
versions to 1.4.11
2006-07-14 Dave Beckett <[email protected]>
* Snapshotted raptor_1_4_10 for 1.4.10 release (SVN r11070)
2006-07-04 Dave Beckett <[email protected]>
* raptor.pc.in, src/raptor-config.in: Remove @LDFLAGS from
raptor.pc.in and src/raptor-config.in.
Fixes Issue#0000097 http://bugs.librdf.org/mantis/view.php?id=97
2006-06-26 Dave Beckett <[email protected]>
* src/raptor.h: (raptor_identifier_type): no more
RAPTOR_IDENTIFIER_TYPE_ORDINAL generated.
* src/n3_parser.y: Remove duplicate symbol PREFIX.
(raptor_n3_generate_statement): Do not turn a rdf:_n into an
ordinal but just check it for validity.
* src/turtle_parser.y: Remove duplicate symbol PREFIX.
(raptor_turtle_generate_statement): Do not turn a rdf:_n predicate
into an ordinal but just check it for validity.
* src/ntriples_parse.c: (raptor_ntriples_generate_statement): Do
not turn a rdf:_n predicate into an ordinal but just check it for
validity.
* src/raptor_rdfxml.c: (raptor_rdfxml_generate_statement): Turn a
predicate ordinal into a resource using
raptor_new_uri_from_rdf_ordinal Handle reifying this afterwards.
* src/raptor_general.c: (raptor_statement_copy): Turn a subject,
predicate or object ordinal into a resource using
raptor_new_uri_from_rdf_ordinal
* src/raptor_internal.h: Added raptor_new_uri_from_rdf_ordinal
prototype.
* src/raptor_uri.c: (raptor_new_uri_from_rdf_ordinal): Added - internal.
2006-06-25 Dave Beckett <[email protected]>
* src/raptor_rdfxml.c: (raptor_rdfxml_generate_statement): Add
predicate_ordinal field, for now. Fix up calls to this to use it.
2006-06-07 Dave Beckett <[email protected]>
* src/raptor_rss.c: (raptor_rss_parse_chunk): Return 0 on success
2006-05-07 Dave Beckett <[email protected]>
* src/raptor_rdfxml.c: (raptor_rdfxml_comment_handler): Do nothing
when a comment is given outside an xml_element context.
* src/raptor_rss.c: (raptor_rss_parse_chunk,
raptor_rss_parse_terminate): Make triples appear at end of
parsing, not on parser destruction which was terribly wrong.
(raptor_rss_comment_handler): Do nothing when a comment is given
outside an xml_element context.
2006-05-02 Dave Beckett <[email protected]>
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_start):
Reset "written header" flag. Without this, reusing a serializer
dies.
2006-04-30 Dave Beckett <[email protected]>
* docs/libraptor.3: Updated for some final 1.4.9 changes
2006-04-22 Dave Beckett <[email protected]>
* src/raptor_guess.c: (raptor_guess_parse_chunk): Tired of seeing
guess parser name, move to verbose debugging.
* src/raptor_www.c: (raptor_www_set_http_accept): Tired of seeing
accept headers, move to verbose debugging.
* src/raptor_xml_writer.c: (main): Rewrite to remove warning
punning
* src/raptor_www_test.c: (main): Rewrite to remove warning punning
* src/raptor_uri.c: (raptor_uri_uri_string_to_filename_fragment):
Rewrite to remove warning punning
* src/raptor_serialize_rss.c: (raptor_rss10_emit_item): Init
element to NULL
* src/raptor_rss.c: (raptor_rss_end_element_handler): Init
cdata_len to 0
* configure.ac, src/win32_raptor_config.h: Bumped version to
1.4.10
* Snapshotted raptor_1_4_9 for 1.4.9 release (SVN r10822)
* src/raptor_rdfxml.c: (raptor_rdfxml_sax2_new_namespace_handler):
Move var def to start of block.
* src/raptor_parse.c: (raptor_parse_uri_with_connection): Move var
def to start of block.
2006-04-20 Dave Beckett <[email protected]>
* examples/Makefile.am, examples/rdfcat.c, examples/rdfprint.c:
Add tutorial examples rdfcat.c and rdfprint.c here.
* docs: DocBook updates: new Tutorial chapter on serializing plus
completing of parsing chapter.
* src/raptor_uri.c: Change all calloc/mallocs for URI strings to
add enough room for a full pointer at the end of a URI string to
stop valgrind moans on 64bit systems when they are looking for the
end of string NUL.
2006-04-15 Dave Beckett <[email protected]>
* src/raptor_www_curl.c: Delete alternate path using
CURLINFO_CONTENT_TYPE instead of grepping headers.
* src/raptor_www_curl.c: Add alternate path to use
CURLINFO_CONTENT_TYPE instead of grepping headers. Downside is
that the content type appears long after content. Add more debug
messages when RAPTOR_DEBUG > 2
(raptor_www_curl_init): Tidy alternate defines
* src/raptor_internal.h: Deleted raptor_uri_init_default_handler
prototype.
* src/raptor_uri.c: (raptor_uri_set_handler,
raptor_new_iostream_from_handler): Ajusted to take const handler
args.
(raptor_uri_init_default_handler): Deleted.
(raptor_uri_init): No need to init static struct.
* src/raptor.h: Adjust raptor_uri_set_handler and
raptor_new_iostream_from_handler prototypes to take const handler
args.
* src/raptor_rss.c: make raptor_rss_uplift_map const
* src/raptor_iostream.c: make handler field a const
(raptor_new_iostream_from_handler): Take a const handler.
2006-04-14 Dave Beckett <[email protected]>
* tests/all-escape.nt, tests/all-escape.rdf: All 0-7F ascii
escapes and the XML 1.1 output
2006-04-11 Dave Beckett <[email protected]>
* docs: DocBook updates
2006-04-10 Dave Beckett <[email protected]>