forked from dajobe/raptor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog.3
2026 lines (1362 loc) · 62.4 KB
/
ChangeLog.3
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
2002-12-22 Dave Beckett <[email protected]>
* raptor_uri.c:
(main) Try test again with /etc - surely that is least likely to
be a symlink?
* tests/Makefile.am:
check-bad-rdf: turn off bourne shell exiting while running
tests expected to fail.
* tests/Makefile.am:
Set baseuri from test file basename; ensure no dirs are in the base URI
2002-12-21 Dave Beckett <[email protected]>
* configure.ac: Removed just for now
2002-12-20 Dave Beckett <[email protected]>
* NEWS.html: tweak
* configure.in: Bumped version to 0.9.8
* NEWS.html: date
* Snapshotted raptor_0_9_7 for 0.9.7 release
* raptor.spec.in: Updated for 0.9.7 release
2002-12-19 Dave Beckett <[email protected]>
* INSTALL.html, README.html, NEWS.html: Updated for 0.9.7 release
* acconfig.h:
Seems like PACKAGE and VERSION are not needed here, and later
autoconfs generate headers that moan.
* raptor_parse.c, raptor_general.c: castings
* raptor.h: Indent CPP directives after column 1 # for lame C compiler
* TODO.html: Updated after recent bug fixes
* tests/Makefile.am: test(1) string equality is = not ==
2002-12-18 Dave Beckett <[email protected]>
* autogen.sh: Delete autom4te too
* configure.ac: auto-configure source for newer autoconfs
2002-12-16 Dave Beckett <[email protected]>
* raptor_uri.c (main):
Use /bin to test, seems more likely to be around on more posix
systems such as OSX
* raptor_parse.c (raptor_generate_statement):
Handle NULL reified being passed.
(raptor_process_property_attributes): Property attributes are never
reified explicitly but may be in a bag.
(raptor_start_element_grammar,raptor_end_element_grammar): Turn bad
uses of bag:ID into errors not warnings.
* tests/Makefile.am:
Added more bag:ID checks (44-45) and errors (bad 05-09)
Make test failures stop the 'make check'.
* tests/bad-05.rdf, tests/bad-06.rdf, tests/bad-07.rdf,
tests/bad-08.rdf, tests/bad-09.rdf, tests/ex-48.rdf,
tests/ex-49.rdf, tests/ex-50.rdf, tests/ex-46.rdf,
tests/ex-47.rdf, tests/ex-48.out, tests/ex-49.out,
tests/ex-50.out, tests/ex-46.out, tests/ex-47.out:
Turned rdf:bagID property element checks into errors
* raptor_parse.c:
Add rdf:bagID checks - only allow it in the two cases it is in the
grammar - on a node element and an empty property element.
Otherwise emit warnings since there is no error test case yet.
* tests/ex-50.out, tests/ex-50.rdf, tests/ex-44.out,
tests/ex-45.out, tests/ex-46.out, tests/ex-47.out,
tests/ex-48.out, tests/ex-49.out, tests/ex-44.rdf,
tests/ex-45.rdf, tests/ex-46.rdf, tests/ex-47.rdf,
tests/ex-48.rdf, tests/ex-49.rdf:
Checking rdf:bagID ignored on other property element cases
* raptor_parse.c (raptor_generate_statement):
Handles generating a reified statement
ID for use with bagID and then reiifying the statement too.
* tests/Makefile.am: Add ex-43
* tests/ex-43.out, tests/ex-43.rdf:
Test rdf:bagID when property elements need generated reified ID
* raptor_parse.c (raptor_generate_statement):
Gain bag_element argument, use it
throughout to indicate the element to find the rdf:bagID if any.
(raptor_start_element_grammar): Generate _:bagid rdf:type rdf:Bag
when rdf:bagID appears on node element.
* tests/ex-42.out: Correct for actual output order
2002-12-15 Dave Beckett <[email protected]>
* tests/ex-03.rdf, tests/ex-03.out:
correct this now that rdf:bagID support begins to work
* tests/Makefile.am: Added ex-42
* tests/ex-42.out, tests/ex-42.rdf: rdf:bagID
* tests/bad-04.rdf: Check rdf:ID and rdf:bagID with same value fails
* tests/bad-02.rdf: Duplicate rdf:ID names
* raptor_parse.c:
Make debug less chatty about cdata, unless RAPTOR_DEBUG_CDATA
defined.
* raptor_parse.c (raptor_record_ID):
Added, notes rdf:ID and rdf:bagID values, checks
for duplicates (per in-scope base-URI).
(raptor_free_ID_list): Added, frees structure above.
(raptor_xml_start_element_handler): Handle xml:base using
raptor_new_uri_for_xmlbase to strip/fix parts that aren't used.
(raptor_start_element_grammar): Check for illegal rdf:ID, rdf:bagID
and rdf:nodeID using raptor_valid_xml_ID. Check for duplicate rdf:ID
and rdf:bagID values using raptor_record_ID.
Only allow parsetype "Literal", "Resource" and "Collection", not
case-equivalents.
Check for and forbid property attributes on a literal property
elemnent.
* Makefile.am: Added raptor_utf8.c
* raptor_internal.h: Export less from raptor_utf8.c
* raptor_general.c (raptor_valid_xml_ID):
Use raptor_unicode_is_namestartchar
and raptor_unicode_is_namechar.
* raptor_utf8.c: Raptor UTF-8 and Unicode support
* tests/bad-03.rdf: Check rdf:ID and rdf:bagID values
* tests/Makefile.am: Added bad-02 to bad-04
* raptor_uri.c (raptor_uri_construct):
Internal; constructs a uri-ref string from
the parts.
(raptor_new_uri_for_xmlbase): Ad
(raptor_uri_resolve_uri_reference): Copy reference path across when
reference URI has one.
Work for path components that are >1 letter long.
(raptor_new_uri_for_xmlbase): Added, makes a new uri from an existing
one, suitable for xml:base (no fragment, query; path must be
present).
(main): Make test cases use example.org.
Add checks for the above bugs.
* raptor.h: Added prototype for raptor_new_uri_for_xmlbase
* ntriples_parse.c:
raptor_ntriples_unicode_char_to_utf8 now raptor_unicode_char_to_utf8
raptor_ntriples_utf8_to_unicode_char now
raptor_unicode_utf8_to_unicode_char
(raptor_print_ntriples_string): Allow no delimiter.
* raptor_internal.h: Added prototypes for raptor_valid_xml_ID
Added prototypes for raptor_unicode_is_* methods.
The ntriples_* utf8/unicode methods are now raptor_unicode_*
* raptor_general.c (raptor_print_statement_as_ntriples):
N-Triples escape URIs (for IRI
compatibility).
(raptor_validate_xml_ID): Added, checks that the syntax of attributes
matching xml:ID are correct matching
http://www.w3.org/TR/REC-xml-names/#NT-NCName
* rdfdump.c: Exit 1 on error, 2 on warnings.
* README.html: Words
2002-12-13 Dave Beckett <[email protected]>
* tests/ex-41.rdf, tests/ex-41.out: Add rdf:datatype test with xml:lang
* raptor_parse.c: Don't care state about numbers
* raptor_parse.c (raptor_xml_end_element_handler):
Don't check for unbalanced XML; the
XML parsers do that
* raptor_parse.c:
Update parser states to match http://www.w3.org/TR/rdf-syntax-grammar/
names. Fix comments to also match.
rdf_syntax_terms_info - added to describe forbidden nodeEl,
propEl, propAttr
(raptor_forbidden_nodeElement_name,
raptor_forbidden_propertyElement_name): Added, using above
* rdfdump.c: Exit with code 2 if there were warnings.
* raptor_parse.c: Zap xml:lang attr
2002-12-10 Dave Beckett <[email protected]>
* configure.in: Added raptor-config
* Makefile.am: Added raptor-src-config
* raptor-src-config.in: raptor-src-config source
2002-12-04 Dave Beckett <[email protected]>
* raptor_parse.c (raptor_xml_start_element_handler):
Save away the element attributes
in an allocated array, restore the pointers later. This allows the
XML parser to free them correctly.
(raptor_xml_end_element_handler): Call raptor_free_qname again to
tidy up.
(raptor_init_parser_rdfxml): Initialise libxml2 explicitly
(raptor_terminate_parser_rdfxml): Added, cleaning up libxml2.
* raptor_libxml.c (raptor_libxml_endDocument):
free the libxml2 Doc that is created but
never freed by the SAX methods.
* raptor_internal.h, raptor_general.c:
Added raptor_terminate_parser_rdfxml() for closing rdfxml parser
factory.
2002-12-03 Dave Beckett <[email protected]>
* raptor_libxml.c (raptor_libxml_internalSubset,
raptor_libxml_externalSubset): No return value.
* raptor.h: Update prototype for unsigned char arg.
* raptor_parse.c: Yet more casts, for expat XML_Char as char*
* raptor_uri.c (raptor_free_uri): There is no return value
* raptor_uri.c, raptor_qname.c, raptor_parse.c,
raptor_namespace.c, raptor_general.c, raptor.h, ntriples_parse.c:
More unsigned char to char fixes, other castings enough to make
g++ happy.
* raptor_parse.c, raptor_qname.c, raptor_namespace.c,
raptor_general.c, raptor_internal.h:
Use unsigned char for UTF-8 strings rather than char
(That means all XML names, content, buffers)
* raptor_parse.c: Delete HAVE_XML_SetNamespaceDeclHandler - never used
Don't merge expat XML_Char (char) and libxml2 xmlChar (unsigned char).
Work with unsigned char always.
* raptor_internal.h:
Don't merge expat XML_Char (char) and libxml2 xmlChar (unsigned char).
Work with unsigned char always.
* configure.in, acconfig.h:
Delete HAVE_XML_SetNamespaceDeclHandler - never used
* raptor_parse.c (raptor_element_has_property_attributes):
Unused rdf_parser arg zapped.
* raptor_parse.c (raptor_xml_parse_chunk_):
Don't assign a negative number to size_t len, it is probably unsigned.
* raptor_parse.c (raptor_free_element):
Use raptor_free_uri on datatype URI
* raptor_parse.c, raptor.h: Removed trailing ','s in enums
2002-12-02 Dave Beckett <[email protected]>
* ntriples_parse.c (raptor_ntriples_string): sscanf format lx
2002-11-28 Dave Beckett <[email protected]>
* TODO.html:
Note suggestion to trim spaces around urls in lax/default mode
2002-11-27 Dave Beckett <[email protected]>
* INSTALL.html: Now works with old libxml 2.3.5 (released 2001-03-23)
* raptor_libxml.c (raptor_libxml_init):
Use RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED
to see if libxml xmlSAXHandler has an initialized field
* configure.in: Check libxml xmlSAXHandler has initialized field
defining RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED if so
* acconfig.h: Added RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED
* INSTALL.html: Updated supported versions
2002-11-26 Dave Beckett <[email protected]>
* win32_config.h, configure.in, rdfdump.c, raptor_uri.c,
raptor_parse.c, raptor_libxml.c, raptor_general.c,
ntriples_parse.c: stdarg.h is now a required header.
* configure.in:
Added --with-xml2-config to set location of libxml xml2-config program.
2002-11-24 Dave Beckett <[email protected]>
* raptor_parse.c (raptor_xml_start_element_handler): Don't free
raptor_free_qname(element_name) here, raptor_free_element does it.
2002-11-21 Dave Beckett <[email protected]>
* configure.in:
Make it use expat sources if this is part of Redland, ../expat dir
exists
and there is no installed expat system library
* raptor_parse.c (raptor_xml_parse_chunk_):
Only use the libxml2 bug workaround for small
buffers for libxml2 versions lower than 2.4.25
* tests/Makefile.am:
Report error status from standard rdf/xml tests, even if the answer
was correct.
* tests/ex-03.rdf: Remove aboutEach* and bare bagID
2002-11-19 Dave Beckett <[email protected]>
* TODO.html: XML parser choice
* tests/test.out, tests/test.nt, tests/ex-11.out, tests/ex-07.out,
raptor_parse.c, raptor_general.c, ntriples_parse.c:
rdfs:XMLLiteral now rdf:XMLLiteral
Add rdf:nil to allowed rdf namespace terms
* raptor_parse.c: More error/warnings rewordings
* raptor_parse.c:
Remove M&S from some comments, messages. Use RDF namespace.
* raptor_parse.c:
Improve warning about multiple object nodes for a property element.
2002-11-07 Dave Beckett <[email protected]>
* tests/test.out: typo
* tests/test.out, tests/ex-11.out, tests/ex-07.out:
Remove xml"" tests, replacing with "foo"<...> form.
* raptor_general.c: Remove xml"" (stage 1).
(raptor_print_statement_detailed): Output this as a datatyped literal.
(raptor_print_statement_as_ntriples): Output the "foo"<..> datatype
N-Triples form.
* ntriples_parse.c:
Remove xml"" (stage 1). Parsing it works but gives an error.
Never output.
(raptor_ntriples_generate_statement): Output "foo"<...> for xml
literal. Remove is_xml argument.
(raptor_ntriples_parse_line): For XML literal (old xml""), parse,
give an error and emit it in the datatype form.
2002-11-02 Dave Beckett <[email protected]>
* README.html: Updated after 0.9.6 release - sigh!
* NEWS.html: fix 0.9.6 release date
* configure.in: Bumped version to 0.9.7
* Snapshotted raptor_0_9_6 for 0.9.6 release
* NEWS.html, TODO.html: Updated for 0.9.6
* raptor_parse.c:
rdf_attr_info gains allowed_unprefixed_on_attribute to suppress
warning.
* libraptor.3: Updated for 0.9.6
* tests/test.out: minor fix
* rdfdump.1: Add -a/--assume option.
* raptor.h: Tweak uri factory method typedefs, prefix with raptor_
* raptor.h: raptor_start_parse_file: Made an internal method
* raptor_general.c (raptor_start_parse_file): Made an internal method
* tests/test.nt: minor fix
* tests/test.out, tests/test.nt:
Added tests for datatyped literals with/without language
* ntriples_parse.c (raptor_ntriples_string):
Added N-Triples datatype (^^<uri-ref>) parsing.
2002-11-01 Dave Beckett <[email protected]>
* ntriples_parse.c (raptor_ntriples_generate_Statement):
Added datatypes argument,
will set the URI if the string is passed in.
2002-10-31 Dave Beckett <[email protected]>
* raptor_parse.c: Check for rdf:datatype on property/member elements
* tests/Makefile.am: Added ex-41
* tests/ex-41.out, tests/ex-41.rdf: Added rdf:datatype tests
* raptor_parse.c (raptor_free_element): Free xml:lang values
* raptor_parse.c:
alternatively, don't zap the pointer and let cleanup grab it.
* raptor_parse.c:
free rdf:about attribute value before discarding pointer.
* raptor_general.c (raptor_parse_file): Always free filename.
* raptor_uri.c (raptor_uri_filename_to_uri_string):
Fix length of buffer
for unix when file name is recalculated from getcwd().
* raptor_namespace.c (raptor_namespaces_free):
Don't need non-NULL context to do freeing.
* ntriples_parse.c:
Update to handle xml"string"@lang format (and warn about older one)
* ntriples_parse.c:
Update to handle "string"@lang format (and warn about older one)
* tests/test.out, tests/test.nt, tests/rdfs-namespace.out,
tests/rdf-schema.out, tests/ex-29.out:
Update to "string"@lang format.
* raptor_general.c (raptor_print_statement_as_ntriples):
Update to "string"@lang format.
Add datatype URI.
* rdfdump.c (main): Init uri_string variables
* raptor_internal.h, ntriples_parse.c, raptor_namespace.c,
raptor_parse.c, raptor_qname.c, raptor_uri.c, raptor_general.c,
raptor_libxml.c: LIBRDF_ macros now RAPTOR_
* raptor_internal.h: Remove raptor_uri_init
* raptor.h: Added raptor_uri_init
* raptor_namespace.c:
(main) Updates for initialising URI class in/outside redland
* rdfdump.c: When RAPTOR_IN_REDLAND, include <librdf.h>
* rdfdump.c: Use raptor URI calls.
Use raptor_init/raptor_finish - now required.
* raptor_general.c (raptor_init): Now compulsory
* raptor_parse.c, raptor_locator.c, raptor_namespace.c:
macro RAPTOR_URI_AS_STRING -> raptor_uri_as_string
* raptor_internal.h: Removed macro RAPTOR_URI_AS_STRING
* raptor_general.c: macro RAPTOR_URI_AS_STRING -> raptor_uri_as_string
* raptor.h: Added raptor_uri_as_string and uri class method
* raptor_uri.c (raptor_default_uri_as_string): Added
(raptor_uri_as_string): Added, using above for default class.
(raptor_uri_init_default_handler): Register the above
* raptor_general.c:
Use RAPTOR_URI_AS_STRING for getting uri string to make a filename.
* raptor_parse.c:
Remove uses of IS_RDF_MS_CONCEPT with raptor_uri_equals.
Define more concepts for rdf:RDF, rdf:Description and rdf:li
* raptor_internal.h: remove IS_RDF_MS_CONCEPT
* raptor_qname.c: macro RAPTOR_FREE_URI -> raptor_free_uri
* raptor_internal.h:
delete macros RAPTOR_FREE_URI, RAPTOR_URI_TO_FILENAME
* raptor_general.c: macro RAPTOR_FREE_URI -> raptor_free_uri
macro RAPTOR_URI_TO_FILENAME -> raptor_uri_uri_string_to_filename
(only use)
* ntriples_parse.c: macro RAPTOR_FREE_URI => raptor_free_uri
* raptor_uri.c: Add some casts now raptor_uri is a typedef for void*
* raptor_internal.h, raptor.h: Remove more RAPTOR_IN_REDLAND prototypes
* ntriples.h: Remove more RAPTOR_IN_REDLAND
* rdfdump.c: Remove more RAPTOR_IN_REDLAND and old API
* raptor_parse.c:
Re-add DAML Collection info to rdf_content_type_info table - just
plain luck that this was working without it.
Add concept URIs table to rdf_xml_parser structure.
Change concepts macros to point to the parts of that table.
Remove most of the RAPTOR_IN_REDLAND stuff, consequently.
* raptor_namespace.c (raptor_namespaces_free):
Handle being called when handler/context
empty.
* raptor_namespace.c:
Use raptor_namespace struct raptor_namespace_stack field
to get uri handler/context
* raptor_internal.h: raptor_namespace: add raptor_namespace_stack field
* raptor_general.c (raptor_start_parse):
Use changed raptor_namespaces_init call.
* raptor_namespace.c:
Remove RAPTOR_REDLAND code and use uri_handlre/context args
(raptor_namespaces_init): Now takes uri handler, context args.
Initialises rdf/rdfs namespace URIs.
(raptor_namespaces_free): Free rdf/rdfs namespace URIs.
* raptor_general.c: Remove RAPTOR_REDLAND code
Call raptor_namespaces_init with raptor URI handler, context
* raptor_internal.h:
Remove RAPTOR_REDLAND definitions and double prototypes.
Added uri_handler, uri_context, rdf_ms_uri, rdf_schema_uri to
raptor_namespace_stack.
* ntriples_parse.c: Remove RAPTOR_REDLAND code
* raptor_uri.c (raptor_uri_get_handler): Added
* raptor.h: Added raptor-uri_get_handler.
* raptor_uri.c: rename raptor_current_uri_* -> raptor_uri_current_*
* raptor_uri.c:
Use raptor_current_uri_handler, raptor_current_uri_context
throughout.
2002-10-30 Dave Beckett <[email protected]>
* raptor_uri.c (raptor_uri_set_handler): Added, initialising the static
variables raptor_current_uri_handler, raptor_current_uri_context.
raptor_init_uri_class -> raptor_uri_init
* raptor_general.c, raptor_internal.h:
raptor_init_uri_class -> raptor_uri_init
* raptor.h: Added raptor_uri_set_handler
* raptor_uri.c: raptor_copy_uri -> raptor_uri_copy
(raptor_default_uri_copy): Added
(raptor_init_uri_default_handler): Added to re-init the default uri
class.
(raptor_init_uri_class): To initialise the uri class with default
handler
* raptor_internal.h: Declare uri class init prototypes.
* raptor_parse.c, raptor_general.c: raptor_copy_uri -> raptor_uri_copy
* raptor.h: raptor_copy_uri -> raptor_uri_copy
Added uri handler func definitions.
Added raptor_uri_handler, using above funcs
2002-10-15 Dave Beckett <[email protected]>
* raptor_qname.c: Remove only RAPTOR_IN_REDLAND use - not required.
* raptor_uri.c: Updated copyright
* ntriples_parse.c:
Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly.
* raptor.h: Removed raptor_new_uri_from_base_name prototype
* raptor.h: Removed all raptor_make_uri prototypes.
Added prototypes for raptor_new_uri_relative_to_base,
raptor_new_uri_from_id, raptor_new_uri_from_base_name,
raptor-new_uri_for_rdf_concept.
* raptor_parse.c: RAPTOR_FREE_URI (macro) to raptor_free_uri (method)
Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly.
Removed raptor_make_uri_from_id: use raptor_new_uri_from_id directly
Use raptor_new_uri_for_rdf_concept
* raptor_uri.c: Typo.
Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly.
(raptor_default_new_uri_for_rdf_concept,
raptor_new_uri_for_rdf_concept): Added to get URI of rdf:thing
2002-10-13 Dave Beckett <[email protected]>
* raptor_uri.c (raptor_default_new_uri_relative_to_base,
raptor_new_uri_relative_to_base):
Added
(raptor_new_uri_from_id): Added, was make_uri_from_id
(raptor_new_uri_from_base_name): Added, was make_uri_from_base_name
* raptor.h: Added new uri methods, soon-to-be old make_uri_* ones
* raptor_internal.h: Move uri calls to raptor.h
* raptor_parse.c:
Remove unused rdf_parser argument of raptor_make_uri_from_id calls.
* raptor_uri.c (raptor_make_uri_from_id):
Remove unused rdf_parser argument
* raptor_uri.c:
Start of skeleton code for URI class, along with default methods.
(raptor_default_new_uri, raptor_new_uri): Added
(raptor_default_new_uri_from_uri_local_name,
raptor_new_uri_from_uri_local_name): Added
(raptor_default_free_uri,raptor_free_uri): Added
(raptor_default_uri_equals, raptor_uri_equals): Added
(raptor_make_uri, raptor_make_uri_from_id,
raptor_make_uri_from_base_name):Moved from raptor_general.c
* raptor_general.c: Move raptor_make_uri, raptor_make_uri_from_id,
raptor_make_uri_from_base_name to raptor_uri.c
2002-10-12 Dave Beckett <[email protected]>
* raptor_parse.c (raptor_xml_parse_terminate):
Moved all of raptor_xml_parse_clean
here, deleted it.
* rdfdump.c: Updated to newest calling API - no special ntriples calls.
* raptor_general.c, raptor.h: Tweak raptor_new_parser prototype.
* libraptor.3: Updated to describe features
* libraptor.3: Updated for shared parser core api
* raptor_parse.c: Add raptor_xml_parser here - private struct.
* raptor_internal.h: Moved raptor_xml_parser to private file.
* raptor_general.c: Tidy raptor_new old api note.
* ntriples.h: Updated ntriples parser to new registering API.
* ntriples_parse.c: Converted to the new factory-based API.
raptor_ntriples_parser_context (and struct version _s) now allocated
by main parser code.
Use raptor_parser for most methods and calls.
(raptor_ntriples_parse_init, raptor_ntriples_parse_terminate): Added
(raptor_ntriples_new): Replaced with wrapper around raptor_new_parser("ntriples").
(raptor_ntriples_free): Replaced with wrapper around raptor_free_parser
(raptor_ntriples_set_error_handler, raptor_ntriples_set_fatal_error_handler,
raptor_ntriples_set_statement_handler, raptor_ntriples_parser_error,
raptor_ntriples_parser_fatal_error, raptor_ntriples_parse_file):
Replaced with wrappers around general methods.
(raptor_ntriples_parse_chunk): Renamed from raptor_ntriples_parse
(raptor_ntriples_parse_start): Added from parts of old
raptor_ntriples_parse_file.
(raptor_ntriples_parser_register_factory): Added to register this
with the main system.
(raptor_init_parser_ntriples): Added to register this module.
2002-10-11 Dave Beckett <[email protected]>
* raptor_internal.h:
Moved raptor_parser_s here, for use across the library.
Lots of rearranging and reordering to move structs earlier.
Added raptor_parser_factory_s and typedef.
Added prototypes for factory registration calls.
* raptor_parse.c: Now uses factory and parser-specific context.
(raptor_xml_new, raptor_xml_free, raptor_xml_parse_init): Moved most
code to raptor_new_parser, raptor_free_parser, raptor_start_parse
(raptor_xml_parse_init_file): Gone.
Renamed to match factory methods - raptor_xml_parse_terminate.
(raptor_parse_file): Moved to raptor_general.c
(raptor_xml_parser_register_factory): Added, for registering factory.
(raptor_init_parser_rdfxml): Register parser type "rdfxml".
* raptor_general.c:
Added parser factory functions and use them via new API.
(raptor_init, raptor_finish): Added to start/end raptor.
(raptor_delete_parser_factories): Added, helper for cleanup.
(raptor_parser_register_factory): Added, for registering parsers
(raptor_get_parser_factory): Added, helper for finding a parser
(raptor_new_parser): New constructor, uses factory and initialises
only general parts of parser.
(raptor_start_parse): New method to (re)initialise a particular
parse.
(raptor_start_parse_file): New method to start parsing from a
filename.
(raptor_parse_chunk): New method to parse content from memory.
(raptor_free_parser): New destructor.
(raptor_parse_file): Moved from raptor_parse.c and made general.
(raptor_new): Old API constructor, now written over new constructor.
(raptor_free): Old API destructor, now just calls new destructor.
(raptor_set_world): Temporary redland support.
* raptor_namespace.c (raptor_namespaces_free):
Zap top of stack when done, so
can work when called multiple times.
* raptor.h: Added raptor_init(), raptor_finish()
Deprecate raptor_new(), raptor_free().
Added raptor_new_praser(), raptor_free_parser(),
raptor_start_parser(), raptor_start_parse_file(), raptor_parse_chunk()
Temporarily use raptor_set_redland_world.
2002-10-10 Dave Beckett <[email protected]>
* Makefile.am: Added raptor_general.c
* raptor.h: raptor_print_statement_detailed: Now public.
* raptor_internal.h, raptor_parse.c, raptor_general.c:
Split general parsing routines into raptor_general.c leaving
the rdf/xml parsing specific parts in raptor_parse.c.
The general raptor_parser structure moved to raptor_internal.h
leaving a new raptor_xml_parser for raptor_parse.c [rdf/xml].
2002-10-07 Dave Beckett <[email protected]>
* tests/test.html, tests/test.svg: Embedded rdf:RDF tests
* raptor_general.c, raptor_parse.c:
Call dummy (length calculating) vsnprintf call with a 1-byte buffer
rather than NULL - OSX seems unhappy with that.
Try to get rdf:RDF scanning working by adding at_grammar_start check
rather than apply at all state unknown points.
2002-09-29 Dave Beckett <[email protected]>
* tests/Makefile.am:
Split the checks into classes; ex-19.rdf is for when rdf is assumed
since it ommits rdf:RDF, and hence is not really rdf/xml.
* rdfdump.c: Added -a,--assume to set feature assume_is_rdf
* raptor_general.c, raptor_parse.c: Added rdf:datatype built in.
Literal datatype URI stored in containing property element.
Added feature_assume_is_rdf to make rdf:RDF optional.
(raptor_generate_statement): Add literal datatype URI argument.
(raptor_xml_parse_chunk_): Return parser errors in initial XML_Parse
correctly - check if it happens even if end of data. Similarly for
libxml's xmlParseChunk.
(raptor_set_feature): Added feature assume_is_rdf
(raptor_print_statement_detailed): Added literal datatype URI
printing.
(raptor_process_property_attributes): Warn about unqualified
(property) attributes, don't try to process them.
(raptor_start_element_grammar): Added feature assume_is_rdf
splitting scanning for rdf:RDF (feature scanning) and ignoring it
(feature assume)
* raptor_qname.c (raptor_new_qname):
Don't die on non-namespaced XML; could be used in
skipping or other processing.
* raptor.h: added assume_is_feature
datatypes built in
raptor_print_ntriples_string now returns an int
* LICENSE.html: Tidy intro, update dates
* ntriples_parse.c: change anon->bnodeid
Add ASCII rather than is* locale-tests and validate bnodeIDs with
the macros
(parse_ntriples_string): Check for invalid ASCII chars.
Tidy error reporting for end of line.
(raptor_ntriples_parse_line): Add validation of bnodeIDs
(raptor_ntriples_parse_file): Comments
(raptor_print_ntriples_string): Handle failure, add a return code
* ntriples.h: change anon->bnodeid
* configure.in: datatypes built in now
* Makefile.am: Clean the test programs
2002-09-19 Dave Beckett <[email protected]>
* Makefile.am:
Restore rule to make librdf.la for when embedded in Redland
* TODO.html: remove duplicate bagID bug
* TODO.html: CDATA works with libxml now
* raptor_libxml.c (raptor_libxml_init):
Enable handling of cdata blocks -
<![CDATA[...]> by registering callback to raptor_xml_cdata_handler
* tests/ex-40.out: Fix node
* tests/Makefile.am: Added ex-40
* tests/ex-40.out, tests/ex-40.rdf: Check XML CDATA sections
* Makefile.am:
dist-hook added to copy pre-built README and NEWS to release
2002-09-18 Dave Beckett <[email protected]>
* raptor_namespace.c (raptor_namespace_new):
Fix debug message to report no URI for namespace.
* raptor_namespace.c (raptor_namespace_new):
Make xmlns="" work when compiling inside Redland.
2002-09-16 Dave Beckett <[email protected]>
* raptor_parse.c (raptor_xml_parse_chunk_):
For libxml, don't pass in filename to
xmlCreatePushParserCtxt, we may not always have one.
For lbixml, return correctly from initial parsing.
(raptor_xml_parse_chunk): Add docucomments.
(raptor_parse_file): Terminate loop on end of file as well as error.
* Makefile.am:
Added REDLAND_LIBS to raptor_namespace_test to make it work inside redland
2002-09-12 Dave Beckett <[email protected]>
* TODO.html: daml:collection fixed
* raptor_parse.c (raptor_parse_file): Split into:
raptor_xml_parse_init, raptor_xml_parse_init_file,
raptor_xml_parse_clean and raptor_xml_parse_chunk to allow more
flexible APIs.
(raptor_xml_parse_chunk_): Added, doing the main work of
raptor_xml_parse_chunk but without error checking.
(raptor_xml_parse_handle_errors): Added to process errors from an XML
parser during parsing.
* raptor_namespace.c: Make it work inside redland too.
Fix standalone tests inside redland.
2002-09-11 Dave Beckett <[email protected]>
* raptor_internal.h:
Moved namespace and qname definitions and prototypes here from
raptor_parse.c
* Makefile.am: Added raptor_namespace.c raptor_qname.c
* raptor_parse.c:
Moved namespace code to raptor_namespace.c, qname code to
raptor_qname.c and renamed raptor_ns_map, raptor_ns_na,e
to match.
* raptor_qname.c: Raptor XML qname
* raptor_namespace.c: Raptor XML namespace classes
2002-09-01 Dave Beckett <[email protected]>
* raptor_parse.c: Use updated LIBRDF_RS URI names
* raptor_parse.c:
Added rdf:parseType="Collection" after daml:collection code
* tests/Makefile.am: Added test ex-39 for parseType Collection
* tests/ex-39.out, tests/ex-39.rdf: rdf:parseType="Collection" test
* raptor_parse.c:
Change daml:Collection, daml:* comments to Collection, rdf:List etc.
2002-08-31 Dave Beckett <[email protected]>
* raptor_parse.c (raptor_end_element_grammar):
Generate rdf:nodeID, store in id, not
URI field.
Rearrange three calls of raptor_process_property_attributes into one.
* tests/Makefile.am:
Use ECHO_N and ECHO_C to do portable echo without newline
* configure.in:
Pass on echo pre/postfix args needed for echoing without a newline
* tests/Makefile.am:
Instead of ignoring warnings, make make ignore exit codes from rdfdump
* tests/Makefile.am: Ignore warnings (for now) in tests
* tests/Makefile.am: Remove RDF_TEST_ANSWER_FILES - not used
* raptor_parse.c (raptor_start_element_grammar):
Don't copy URIs from daml:collection
to the contained nodes.
* tests/ex-34.out: Now correct.
2002-08-29 Dave Beckett <[email protected]>
* tests/Makefile.am: Added ex-38
* tests/ex-38.rdf, tests/ex-38.out: Test daml:Collection with rdf:ID
* tests/ex-37.out: switch order again
* raptor_parse.c (raptor_element_has_property_attributes):
Check for rdf: properties
too
* tests/ex-37.out: Correct order, nodes in result
* tests/ex-37.out, tests/ex-37.rdf:
rdf:type attribute on empty property
* tests/Makefile.am: Added ex-37
2002-08-28 Dave Beckett <[email protected]>
* raptor_parse.c: Fixed empty daml:Collection handling
* raptor_uri.c: Minor strcat/strcpy optimisation
* tests/ex-34.rdf: Renamed nodes so prop2 goes with node2 etc.
* tests/ex-34.out: renamed genids to more match output
* tests/ex-35.out, tests/ex-35.rdf, tests/ex-36.out, tests/ex-36.rdf:
Added more daml:Collection checks
* tests/ex-24.out: output order changed, same triples
* tests/Makefile.am: Added ex-35, ex-36 for more daml:Collection checks
* tests/ex-12.out: output order changed, same triples
2002-08-22 Dave Beckett <[email protected]>
* raptor_parse.c: removed fn not used
* raptor_parse.c: Update xml namespaces comment with NE05 errata
* raptor_parse.c:
Removed use of obsolete object_is_literal statement field
Added rdf datatypes test code
* ntriples_parse.c:
Removed use of obsolete object_is_literal statement field
* raptor.h: Add statement object datatype uri
* configure.in: Add rdf datatypes test flag --enable-rdf-datatypes
* acconfig.h: Add rdf datatypes test flag
2002-08-21 Dave Beckett <[email protected]>
* TODO.html: Updates: OSX compiling works (from packaged sources)
Still works with latest expat (1.95.2), libxml (2.4.23)
2002-08-20 Dave Beckett <[email protected]>
* raptor_uri.c (raptor_uri_uri_string_to_filename):
Freeing wrong things
* ntriples_parse.c, raptor_parse.c, raptor_internal.h:
Remove RAPTOR_URI_AS_FILENAME
* raptor.h: Added raptor_uri_is_file_uri
* configure.in: Added limits.h check
* raptor_internal.h: Added raptor_strncasecmp
* raptor_uri.c (raptor_uri_is_file_uri): Added.
* Makefile.am: Added strcasecmp_test
* strcasecmp.c (raptor_strncasecmp): Added
(assert_strcasecmp, assert_strncasecmp): Added for testing.
(main) Added to run tests
* raptor_uri.c:
(raptor_uri_filename_to_uri_string); For unix filename "foo", get dir
and name it "/dir/foo".
(main): Check above works using /tmp dir - warn if can't chdir(/tmp)