forked from dajobe/rasqal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog.3
3828 lines (2893 loc) · 141 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
2005-12-21 Dave Beckett <dave@dajobe.org>
* docs/librasqal.3, utils/roqet.1, fix-groff-xhtml,
rasqal-src-config.in, RELEASE.html, TODO.html, configure.ac,
NEWS.html, README.html, LICENSE.html, Makefile.am, INSTALL.html:
updated urls
2005-11-20 Dave Beckett <dave@dajobe.org>
* src/Makefile.am, src/rasqal_internal.h: Disable skiplist code
for now (don't ship it)
2005-09-22 Dave Beckett <dave@dajobe.org>
* tests/sparql/SyntaxFull/Makefile.am: Add new tests, 2 fail
* tests/sparql/SyntaxFull/Makefile.am: Added new tests, 2 fail
* tests/sparql/SyntaxFull/syntax-keywords-01.rq,
tests/sparql/SyntaxFull/syntax-keywords-02.rq,
tests/sparql/SyntaxFull/syntax-keywords-03.rq,
tests/sparql/SyntaxFull/syntax-qname-01.rq,
tests/sparql/SyntaxFull/syntax-qname-02.rq,
tests/sparql/SyntaxFull/syntax-qname-03.rq,
tests/sparql/SyntaxFull/syntax-qname-04.rq,
tests/sparql/SyntaxFull/syntax-qname-05.rq,
tests/sparql/SyntaxFull/syntax-qname-06.rq,
tests/sparql/SyntaxFull/syntax-struct-11.rq,
tests/sparql/SyntaxFull/syntax-struct-12.rq,
tests/sparql/ExprEquals/Makefile.am,
tests/sparql/ExprEquals/query-eq-graph-1.rq,
tests/sparql/ExprEquals/query-eq-graph-2.rq,
tests/sparql/ExprEquals/query-eq-graph-3.rq,
tests/sparql/ExprEquals/query-eq-graph-4.rq,
tests/sparql/ExprEquals/query-eq-graph-5.rq,
tests/sparql/ExprEquals/query-eq2-graph-1.rq,
tests/sparql/ExprEquals/result-eq-graph-1.ttl,
tests/sparql/ExprEquals/result-eq-graph-2.ttl,
tests/sparql/ExprEquals/result-eq-graph-3.ttl,
tests/sparql/ExprEquals/result-eq-graph-4.ttl,
tests/sparql/ExprEquals/result-eq-graph-5.ttl: Added new tests
* tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile.am: Added the 9
EXPECTED_SPARQL_PARSER_FAILURES
* tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile.am: Added 3
EXPECTED_SPARQL_PARSER_FAILURES: syn-05.rq syn-06.rq syn-07.rq
* tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile.am: ADded 3
EXPECTED_SPARQL_CORRECT_FAILURES: syn-05.rq syn-06.rq syn-07.rq
* tests/sparql/check-sparql: If returning no results and expect
fail, return 1
* tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile.am: Added 9
EXPECTED_SPARQL_CORRECT_FAILURES
* tests/sparql/ExprEquals/Makefile.am: Failures +1: "Equality - 2
var - test equals -- graph", total 3
* tests/sparql/check-sparql: report if expected failure happens OK
early on
* tests/sparql/ExprEquals/manifest.n3: Update to DAWG CVS
2005-09-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* src/sparql_parser.y (ConstructTriplesList): renamed from
TriplesList and allow an empty list.
* src/sparql_parser.y (GraphGraphPattern): Handle return of NULL
graph pattern
* src/sparql_lexer.l ({QUOTEDURI}\(?): Pass the matched string
through rasqal_escaped_name_to_utf8_string to expand \u and \Us
and fail on errors, then make a new URI.
(rasqal_sparql_name_check): Add debug messages.
(sparql_copy_qname, sparql_copy_string_token): Report name errors
in prefix or local name part of a qname.
* src/rasqal_general.c (rasqal_escaped_name_to_utf8_string):
Calculate dest size from result pointers, not original string
source.
* configure.ac, tests/sparql/Makefile.am,
tests/sparql/SyntaxDev/.cvsignore,
tests/sparql/SyntaxDev/Makefile.am,
tests/sparql/SyntaxDev/Syntax-SPARQL/.cvsignore,
tests/sparql/SyntaxDev/Syntax-SPARQL/Makefile.am,
tests/sparql/SyntaxDev/Syntax-SPARQL/manifest.ttl,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-07.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-forms-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-forms-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-limit-offset-07.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-limit-offset-08.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-limit-offset-09.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-07.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-08.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-09.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-10.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-11.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-12.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-13.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-14.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-pat-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-pat-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-pat-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-pat-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-07.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-08.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-07.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-08.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-09.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-10.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-11.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-12.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-union-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-union-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/.cvsignore,
tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile.am,
tests/sparql/SyntaxDev/Syntax-SPARQL2/manifest.ttl,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-bnode-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-bnode-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-bnode-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-dataset-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-dataset-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-dataset-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-dataset-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-esc-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-esc-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-esc-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-esc-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-ask-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-ask-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-describe01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-describe02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-select-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-select-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-function-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-function-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-function-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-function-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-general-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-general-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-general-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-keywords-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-keywords-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-keywords-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/.cvsignore,
tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile.am,
tests/sparql/SyntaxDev/Syntax-SPARQL3/bnode-dot.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/bnodes-missing-pvalues-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/bnodes-missing-pvalues-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/empty-optional-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/empty-optional-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/filter-missing-parens.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/lone-list.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/lone-node.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/manifest.ttl,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-07.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-08.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-01.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-02.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-03.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-04.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-05.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-06.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-07.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-08.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-09.rq,
tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-10.rq: Added
unapproved sparql syntax tests from DAWG SyntaxDev area
* tests/sparql/check-sparql: Ad -n flag if no data is present
* tests/sparql/check-sparql: Handle expect fail tests of type
mfx:TestBadSyntax Check return code of roqet for failing.
* tests/sparql/check-sparql: Handle mfx:SyntaxType rdf:typed
actions and in that case pick up the action node as the query to
use (no data, no result) Only evaluate queries that have files
2005-09-09 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* Reached 100% function and structure coverage according to
gtkdoc-mkdb: 100% symbol docs coverage (190 symbols documented, 0
symbols incomplete, 0 not documented)
* src/rasqal.h: autodocs
* docs/rasqal-sections.txt: No rasqal_variable_s
* src/rasqal_query.c (rasqal_query_graph_pattern_visit): autodocs
* docs/tmpl/section-graph_pattern.sgml, docs/tmpl/section-query.sgml:
add new fns
* docs/tmpl/section-literal.sgml: remove dup text
* src/rasqal_graph_pattern.c: autodocs
* docs/rasqal-sections.txt: add new fns
* src/Makefile.am, utils/Makefile.am: Include
@RASQAL_INTERNAL_LIBS@ in linking flags to ensure internal raptor
is used.
2005-09-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* src/sparql_lexer.l: "true" and "false" are now case independent
2005-08-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac: Added --with-redland-config
* src/rasqal_internal.h: Updated
rasqal_engine_merge_graph_patterns and
rasqal_engine_merge_triples prototypes to return an int status.
* src/rasqal_engine.c:
(rasqal_engine_merge_graph_patterns, rasqal_engine_merge_triples):
Visitor function now returns a status.
* src/rasqal_query.c: Moved rasqal_graph_pattern_visit to
rasqal_graph_pattern.c
* src/rasqal.h: Added rasqal_graph_pattern_visit_fn. Added
prototype for rasqal_graph_pattern_visit
* src/rasqal_graph_pattern.c (rasqal_graph_pattern_visit:): Moved
from rasqal_query.c
* docs/tmpl/section-expression.sgml,
docs/tmpl/section-query_results.sgml: docs
* src/sparql_lexer.l, src/sparql_parser.y: Remove NULL_LITERAL -
not in SPARQL
2005-08-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* docs/tmpl/section-triples_source.sgml: section title
* docs/tmpl/section-triples_source.sgml, src/rasqal_expr.c:
autodocs
* docs/rasqal-sections.txt: Added
rasqal_new_expression_from_expression
* src/rasqal_expr.c: Added usage count to rasqal_expression
constructors
(rasqal_new_expression_from_expression): Added copy constructor.
* src/rasqal_engine.c (rasqal_engine_join_graph_patterns): Move
constraints taking care to copy then free correctly.
* src/rasqal.h: Added usage count to rasqal_expression. Added
rasqal_new_expression_from_expression prototype.
2005-08-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* src/rasqal.h, src/rasqal_expr.c: autodocs fixes - use %RASQAL_
* docs/tmpl/section-graph_pattern.sgml: use %RASQAL
2005-08-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* docs/tmpl/section-query_results.sgml,
docs/tmpl/section-literal.sgml, docs/tmpl/section-query.sgml:
document literal, query, query_results types
* docs/rasqal-sections.txt: Add rasqal_query and
rasqal_query_results
* docs/rasqal-overrides.txt: override rasqal_query and
rasqal_query_results
* docs/Makefile.am: Make gtkdoc-mkdb ignore the C files
* src/rasqal_query.c (rasqal_graph_pattern_visit): Make this
recursive.
* tests/sparql/ExprBuiltins/Makefile.am: datatype-1 works
* src/rasqal_expr.c (rasqal_expression_evaluate):
For datatype, if is a typed literal it
has a datatype field then return that, otherwise fail.
* tests/sparql/ExprBuiltins/Makefile.am: str-1 passes
2005-08-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* docs/tmpl/section-unused.sgml, docs/tmpl/section-variable.sgml,
docs/tmpl/section-query_results.sgml,
docs/tmpl/section-triple.sgml, docs/tmpl/section-prefix.sgml,
docs/tmpl/section-query.sgml,
docs/tmpl/section-graph_pattern.sgml,
docs/tmpl/section-literal.sgml, docs/tmpl/section-expression.sgml,
docs/tmpl/section-general.sgml, docs/rasqal-sections.txt: autodocs
- sections intros
* src/rasqal.h, src/rasqal_expr.c, src/rasqal_general.c,
src/rasqal_engine.c: autodocs
* src/rasqal.h: Remove unused rasqal_new_variable_expression
prototype. Deprecate rasqal_expression_foreach for
rasqal_expression_visit Add rasqal_expression_visit prototype and
rasqal_expression_visit_fn.
* docs/rasqal-sections.txt: Add rasqal_expression_visit_fn
rasqal_expression_visit
2005-08-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* autogen.sh: programs spello
* autogen.sh: Add gtkdocize and swig (for bindings) only if seen
in top-level configure.ac Add swig-specific version check,
different from gnu style
* autogen.sh: update autogen.sh again
* autogen.sh: Rewrite with functions, generalize to any redland
package. Add docs.
* src/rasqal_engine.c: restore undef RASQAL_DEBUG
* tests/sparql/part1/dawg-query-003.rq: Declare rdf:
* src/sparql_parser.y (rasqal_sparql_query_engine_init): Do not
declare any namespaces by default.
* tests/sparql/syntax/Makefile.am: Added namespaces.rq
* tests/sparql/syntax/namespaces.rq: namespaces.rq
* rasqal.spec.in: - Update Source: - Use %makeinstall
2005-08-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* src/rasqal_engine.c (rasqal_engine_merge_graph_patterns):
Renamed from rasqal_engine_make_basic_graph_pattern and added some
docucomments. It no longer handles UNIONS - they are never
merged, the code was just handling them in order to descend down
the tree, now done by the visitor calling this function. Remove
calling lower sub-GPs.
(rasqal_engine_merge_triples): Renamed from
rasqal_engine_merge_basic_graph_patterns and added some
docucomments.
* src/rasqal_internal.h: Added rasqal_graph_pattern_visit_fn
typdef. Added prototype for rasqal_query_graph_pattern_visit
* src/rasqal_query.c (rasqal_query_prepare): Rewrite to use
rasqal_query_graph_pattern_visit to do graph pattern transforms.
(rasqal_graph_pattern_visit): Added, called by:
(rasqal_query_graph_pattern_visit): Added to walk all graph
patterns in a query.
* src/rasqal_engine.c (rasqal_engine_make_basic_graph_pattern): Do
not lose sub-grpah pattern UNION type.
* src/sparql_parser.y (PrimaryExpression): Explain rq23 weirdness
* tests/sparql/survey/query-survey-13.rq,
tests/sparql/survey/query-survey-11.rq,
tests/sparql/survey/query-survey-10.rq: FILTER() syntax
* rasqal.spec.in: Use %configure
* src/sparql_lexer.l: Remove '%' as a token.
(sparql_token_print): Remove '%'
* src/sparql_parser.y: Remove '%' as a token. Whitespace style
fixes near rule definitions.
* src/sparql_parser.y: Make FILTER use Constraint for multiple
forms.
(Constraint): Added. Allow the BrackettedExpression, BuiltInCall
or FunctionCall alternatives.
(Expression): Added. 9ConditionalOrExpression): Make it recursive
rather than just allow 0 or 1 &&s.
(MultiplicativeExpression): Remove '%' operator, not in SPARQL.
(BuiltInCall): Renamed from CallExpression and remove FunctionCall
from it.
(PrimaryExpression): use BuiltInCall and add FunctionCall from
above.
* tests/sparql/ValueTesting/Makefile.am: +3 more tests,
extendedType-literal-ne fails.
* tests/sparql/syntax/cast1.rq, tests/sparql/syntax/cast0.rq,
tests/sparql/bound/bound1.rq: FILTER() syntax
* tests/sparql/examples/ex11.2.3.8_0.rq,
tests/sparql/examples/ex3.rq: Updates from DAWG for FILTER()
* tests/sparql/simple/manifest.n3,
tests/sparql/SyntaxFull/manifest.ttl,
tests/sparql/sort/manifest.ttl, tests/sparql/examples/manifest.n3:
Update to DAWG tests - some approved
* tests/sparql/ValueTesting/extendedType-eq-pass-result.n3,
tests/sparql/ValueTesting/extendedType-eq-pass.rq,
tests/sparql/ValueTesting/extendedType-graph-result.n3,
tests/sparql/ValueTesting/extendedType-graph.rq,
tests/sparql/ValueTesting/extendedType-literal-eq-result.n3,
tests/sparql/ValueTesting/extendedType-literal-eq.rq,
tests/sparql/ValueTesting/extendedType-literal-ne-result.n3,
tests/sparql/ValueTesting/extendedType-literal-ne.rq,
tests/sparql/ValueTesting/extendedType-ne-fail-result.n3,
tests/sparql/ValueTesting/extendedType-ne-fail.rq,
tests/sparql/ValueTesting/manifest.n3: Update to DAWG tests
2005-08-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* src/rasqal_engine.c (rasqal_engine_join_graph_patterns): Renamed
from rasqal_engine_join_basic_graph_patterns. Warn if types are
different. Merge sub graph sequences.
(rasqal_engine_make_basic_graph_pattern): Operate over unions
recursively for any lower-level basic graph patterns. Don't merge
if all sub-graph patterns aren't of the same type. Never merge
union sequences of size>1
* src/rasqal_internal.h: rasqal_engine_join_basic_graph_patterns
now rasqal_engine_join_graph_patterns
2005-08-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac: gtk-doc 1.3 is ok
2005-08-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* utils/Makefile.am: Add AM_CPPFLAGS and AM_CFLAGS back
2005-07-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* Source re-organisation - librasqal code moved to new src/ dir.
roqet moved to new utils/ dir. Other manual pages to docs/.
2005-07-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_expr.c, rasqal.h: autodocs
* docs/tmpl/section-variable.sgml, docs/tmpl/section-unused.sgml,
docs/tmpl/section-query_results.sgml,
docs/tmpl/section-triple.sgml, docs/tmpl/section-query.sgml,
docs/tmpl/section-literal.sgml, docs/tmpl/section-prefix.sgml,
docs/tmpl/section-general.sgml,
docs/tmpl/section-graph_pattern.sgml: Updated templates.
* docs/tmpl/section-expression.sgml: short and long desc add
rasqal_compare_flags not #defines
* docs/tmpl/section-data.sgml: short and long desc
* docs/rasqal-overrides.txt: override some things to hide
internals.
* docs/rasqal-sections.txt, docs/rasqal-docs.xml,
rasqal_literal.c, rasqal_expr.c, rasqal_general.c, rasqal.h: more
autodocs
* rasqal_query.c, rasqal_general.c, rasqal_expr.c: more autodocs
and fixes for gtk-doc style
* rasqal_expr.c: autodocs for rasqal_data_graph
* rasqal_query.c, rasqal_expr.c, rasqal_graph_pattern.c, rasqal.h:
Source code arg fixes for gtk-doc
2005-07-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* docs/rasqal.types: empty types for gtk-doc
* Makefile.am: Added DISTCHECK_CONFIGURE_FLAGS
* rasqal.spec.in: Updated for gtk-doc locations
* docs/tmpl/section-data.sgml, docs/tmpl/section-expression.sgml,
docs/tmpl/section-general.sgml,
docs/tmpl/section-graph_pattern.sgml,
docs/tmpl/section-literal.sgml, docs/tmpl/section-prefix.sgml,
docs/tmpl/section-query.sgml,
docs/tmpl/section-query_results.sgml,
docs/tmpl/section-triple.sgml, docs/tmpl/section-unused.sgml,
docs/tmpl/section-variable.sgml, docs/rasqal-overrides.txt,
autogen.sh, configure.ac, docs/.cvsignore, docs/Makefile.am,
docs/api.sgml.in, docs/build-docs, docs/kernel-doc,
docs/rasqal-docs.xml, docs/rasqal-sections.txt, rasqal.h,
rasqal_engine.c, rasqal_expr.c, rasqal_general.c,
rasqal_graph_pattern.c, rasqal_literal.c, rasqal_map.c,
rasqal_query.c, rasqal_raptor.c, rasqal_skiplist.c: Switch to
gtkdoc for autodocs. Adjust source code comment style.
* docs/version.xml.in: version xml
* autogen.sh: run gtkdocize
* configure.ac: require gtk-doc 1.4
2005-07-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* roqet.1: Update for newer result formats.
* tests/sparql/syntax/manifest.n3,
tests/sparql/syntax/Makefile.am: distinct-with-undef-var
* tests/sparql/syntax/distinct-undef.rq,
tests/sparql/syntax/result-distinct-undef.ttl: tests for distinct
with an undef var
* rasqal_query.c (rasqal_query_result_literal_sequence_compare):
Two NULL literals means equality not a final comparison result, so
keep searching.
* tests/sparql/syntax/Makefile.am,
tests/sparql/syntax/manifest.n3,
tests/sparql/syntax/order-distinct.rq,
tests/sparql/syntax/order.ttl,
tests/sparql/syntax/result-order-distinct.ttl: Added order and
distinct check
* sparql_parser.y (PatternElement): Error recovery from NULL
triples but do return a graph pattern of some sort.
* sparql_parser.y (PatternElement): Error recovery - do not die
when triples is NULL.
2005-07-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* sparql_parser.y, roqet.c, rdql_parser.y, rasqal_map.c: gcc4
ignored return warning fixes: Discard fwrite() return values since
fprintf/fputs() aren't checked. Check fread() return values and
throw a user error.
* rasqal_skiplist.c, rasqal_map.c: autodocs
* rasqal_query.c (rasqal_query_execute): For a stored sequence of
result rows, use result_count as an offset so initialise to 0
always
(rasqal_query_results_next, rasqal_query_results_get_bindings,
rasqal_query_results_get_binding_value,
rasqal_query_results_get_binding_value_by_name): Adjust to use
offset.
* rasqal_query.c: Removed RASQAL_MAP define; it's the default now.
* rasqal_skiplist.c (main): Update for new rasqal_new_skiplist API
* rasqal_query.c: General: rasqal_tree renamed to rasqal_map and
code moved to rasqal_map.c
(rasqal_new_query_result_row, rasqal_free_query_result_row):
Init/use usage counting.
(rasqal_new_query_result_row_from_query_result_row): Added.
(rasqal_query_result_row_compare): Take void* args, like a qsort()
compare Do a distinct comparison on values before an ordering, if
needed and discard duplicates there.
(rasqal_map_print_query_result_row,
rasqal_map_free_query_result_row): Added as rasqal_map helpers.
(rasqal_query_execute): Make a new map, not tree, calling above
helpers.
* rasqal_map.c: autodocs
* rasqal_map.c (rasqal_free_map_node): follow subtrees
recursively.
* rasqal_skiplist.c: rasqal_skiplist_s gains split key/value print
handler methods
(rasqal_new_skiplist): Split print_fn into print_key_fn and
print_value_fn
(rasqal_skiplist_node_print): Use new functions.
* rasqal_internal.h: rasqal_query_result_row gains usage count
Changed skiplist API to split key/value print handler methods
Added rasqal_map class, methods.
* Makefile.am: Added rasqal_map.c
* rasqal_map.c: Rasqal simple Key:Value Map with duplicates
allowed
* rasqal_query.c (rasqal_query_execute): If added a duplicate,
free the row.
* rasqal_raptor.c (ordinal_as_uri): off by 1 in making ordinal URI.
2005-07-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_query.c: sparql-results
* roqet.c, rasqal_query.c:
Changed results namespace from http://www.w3.org/2005/06/sparqlResults
to http://www.w3.org/2005/sparql-results#
2005-07-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_query.c (rasqal_query_results_write_xml_result2,
rasqal_query_results_write_xml_result3): Use
RASQAL_XSD_BOOLEAN_TRUE and RASQAL_XSD_BOOLEAN_FALSE for boolean
result value.
(rasqal_query_results_write_xml_result3): Add ordered and distinct
attributes to <results> element.
* rasqal_literal.c (rasqal_literal_string_to_native,
rasqal_new_boolean_literal): Use RASQAL_XSD_BOOLEAN_TRUE and
RASQAL_XSD_BOOLEAN_FALSE.
* rasqal_internal.h: Added RASQAL_XSD_BOOLEAN_TRUE and
RASQAL_XSD_BOOLEAN_FALSE, maybe could be pointers to a shared
string but compilers can work it out.
2005-07-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_raptor.c (rasqal_raptor_new_triples_source):
Use raptor guess parser.
* configure.ac: Require raptor 1.4.8 for guess parser.
2005-07-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* sparql_parser.y: Update to rq23 CVS 1.423 2005/07/14 12:04:17
* Makefile.am: rasqal_skiplist_test is in TESTS
* rasqal_internal.h, rasqal_skiplist.c: Moved internal struct
rasqal_skiplist_node into rasqal_skiplist.c again.
* rasqal_internal.h, rasqal_skiplist.c: Moved rasqal_skiplist
headers into rasqal_internal.h for now.
* rasqal_skiplist.c: Skip list implememntation
* Makefile.am: Added rasqal_skiplist.c and rasqal_skiplist_test
2005-07-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_query.c (rasqal_query_results_write_xml_result3): Indent
<boolean> by 2
* roqet.c: Added new xml format with URI
http://www.w3.org/2005/06/sparqlResults and made old one available
via xml-v2
* rasqal_query.c (rasqal_query_results_write): comments docs for
URI http://www.w3.org/2005/06/sparqlResults.
* rasqal_query.c (rasqal_query_results_write): Allow NULL URI for
default format. Add format V3 with URi
http://www.w3.org/2005/06/sparqlResults.
(rasqal_query_results_write_xml_result3): Added for latest format
and new namespace.
* sparql_lexer.l (// comment rule, # comment rule):
Use better grab-till-newline form.
* tests/sparql/SyntaxFull/manifest.ttl,
tests/sparql/ValueTesting/extendedType-0.n3,
tests/sparql/ValueTesting/extendedType-eq-pass.rq,
tests/sparql/regex/regex-query-003.rq,
tests/sparql/regex/regex-query-004.rq: Update tests from DAWG CVS
* sparql_lexer.l (rasqal_sparql_name_check):
Ignore 0 length names - checked in parser.
Make all name problems into errors rather than warnings.
2005-07-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* sparql_lexer.l: Reference rq23
Added sparql_name_check_flags enum for sparql name checking.
Updated SPARQL name tokens to match latest rq23 - lots of comments.
(// C++ comment rule): Use pattern to find end of line with multiple
line endings. Count line.
(/* C comment block rule): Use returned lines to bump the current
line number.
(<ID>{VARNAME} rule): Check varnames.
(<PREF>{NCNAME_PREFIX}":" rule): Check prefix.
({BNAME} rule): Check ncname.
(rasqal_sparql_name_check): Added to do XML Name 1.1 check and
others.
(sparql_copy_name): Add check_flag and use it with
rasqal_sparql_name_check instead of raptor_xml_name_check.
(sparql_copy_qname, sparql_copy_string_token): Use
rasqal_sparql_name_check instead of raptor_xml_name_check.
(sparql_skip_cpp_comment): Deleted.
* rdql_lexer.l (// C++ comment rule): Use pattern to find end of
line with multiple line endings. Count line.
(/* C comment block rule): Use returned lines to bump the current
line number.
(rdql_skip_cpp_comment): Deleted.
* tests/sparql/SyntaxFull/manifest.ttl,
tests/sparql/SyntaxFull/syntax-qname-08.rq,
tests/sparql/SyntaxFull/syntax-qname-14.rq: Updates from DAWG
tests
2005-07-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac: time headers
* configure.ac: Test for srandomdev for skiplists
2005-06-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_query.c (rasqal_query_execute): Do the result making outside
#ifdef RASQAL_DEBUG ... #endif
Oops!
* rasqal_expr.c (main): Add flags arg to rasqal_expression_evaluate
* tests/sparql/survey/Makefile.am: survey-10 works. now 1 failure
* rasqal_query.c: Added alternate results sorting using
RASQAL_TREE define trigger to merge into a b-tree.
(rasqal_query_result_row_update): Pass query compare_flags
argument to rasqal_expression_evaluate.
(rasqal_query_result_literal_sequence_compare): Added with main
contant from rasqal_engine_query_results_compare. Operates over
arrays of values of the given size.
(rasqal_query_results_row_compare): Call above for order
conditions or row values to handle ORDER BY(with/without DISTINCT)
or DISTINCT alone.
(rasqal_query_results_compare): Added.
(rasqal_new_tree_node, rasqal_free_tree_node, rasqal_new_tree,
rasqal_free_tree, rasqal_tree_node_add_row, rasqal_tree_add_row,
rasqal_tree_node_write_indent, rasqal_tree_node_print_internal,
rasqal_tree_print, rasqal_tree_node_visit, rasqal_tree_visit,
rasqal_tree_add_to_sequence): Added to implement tree of rows
sorted on add with optional distinct results.
(rasqal_query_execute): Add alternate tree results collation
enabled by RASQAL_TREE implementing distinct.
* tests/sparql/sort/Makefile.am: sort-6 now passes. no sort
failures
* tests/sparql/ExprEquals/Makefile.am: "Equality 1-1" and
"Equality 1-2" now pass. down to 2 failures
* rasqal_engine.c (rasqal_engine_check_constraint,
rasqal_engine_expression_foreach_fold): Use flags argument
in. rasqal_expression_evaluate taken from query compare_flags
field.
* sparql_parser.y (rasqal_sparql_query_engine_init): Set query
compare_flags to RASQAL_COMPARE_XQUERY enabling XQuery comparison
and promotions.
* rasqal_expr.c (rasqal_expression_evaluate): Added flags
argument, to pass down to rasqal_literal_compare. Pass it down to
internal uses of rasqal_expression_evaluate also.
* rasqal_literal.c: rasqal_literal_type_labels reordered to match
changes to rasqal_literal_type in rasqal.h
(rasqal_literal_compare): Added RASQAL_COMPARE_XQUERY to use
XQuery comparison and type promotions. When the above flag is
set, only promote numeric types and otherwise compare different
types using the order in rasqal_literal_type enum.
* rasqal_internal.h: rasqal_query gains compare_flags structure
* rasqal.h: Reordered the types in rasqal_literal_type to make
them useful for sparql type promotion. Added define
RASQAL_COMPARE_XQUERY Added flags argument to
rasqal_expression_evaluate prototype.
* roqet.c (roqet_write_indent): Handle any depth indenting.
2005-06-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_engine.c: Fixes for C++.
* tests/sparql/check-sparql: Warn short form of cmd lines
2005-06-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_engine.c (rasqal_engine_prepare): Call
rasqal_engine_query_fold_expressions.
(rasqal_engine_expression_foreach_fold): Added to use with
rasqal_expression_foreach.
(rasqal_engine_expression_fold): Added, to fold an expression tree
until no changes are made.
(rasqal_engine_graph_pattern_fold_expressions): Added, to fold
expressions inside a graph pattern - in sub graph patterns and in
constraint expression.
(rasqal_engine_query_fold_expressions): Added, to fold expressions
inside a graph - in graph patterns and order conditions.
* rasqal_expr.c (rasqal_expression_clear): Added, to deallocate a
static rasqal_expression.
(rasqal_free_expression): Use above.
(rasqal_expression_foreach): Do current node explicitly first,
before op check is done so that the user function could change the
op potentially. Handle op LITERAL and op FUNCTION correctly.
(rasqal_expression_is_constant): Added to check if the expression
tree is a constant expression.
(rasqal_expression_convert_to_literal): Convert an expression tree
into a literal in-situ.
* rasqal_literal.c (rasqal_literal_is_constant): Added returning
non-0 if literal is a constant i.e. not a variable.
* rasqal_internal.h: Added prototypes for
rasqal_engine_expression_fold,
rasqal_engine_graph_pattern_fold_expressions,
rasqal_engine_query_fold_expressions, rasqal_literal_is_constant,
rasqal_expression_is_constant, rasqal_expression_clear and
rasqal_expression_convert_to_literal.
* tests/sparql/examples/Makefile.am:
sparql-query-example-Testing-Values-isLiteral works. 3 fail now.
* tests/sparql/examples/ex11_0.n3,
tests/sparql/examples/ex11.2.3.5_0.n3,
tests/sparql/examples/ex11.2.3.2_0.n3,
tests/sparql/examples/ex11.2.3.1_1.n3: Date fixes from DAWG CVS
* tests/sparql/examples/ex11_1.rq,
tests/sparql/examples/ex11_0.rq,
tests/sparql/examples/ex11.2.3.7_0.rq,
tests/sparql/examples/ex11.2.3.2_1.rq,
tests/sparql/examples/ex11.2.3.2_0.rq,
tests/sparql/examples/ex11.2.3.1_1.rq,
tests/sparql/examples/ex11.2.3.1_0.rq: Update for FILTER()
* tests/sparql/examples/Makefile.am:
Correct test failures, count remains same
2005-06-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* tests/sparql/survey/Makefile.am: survey-13 now passes. now 2
failures
* rasqal_query.c (rasqal_query_results_write_xml_20041221,
rasqal_query_results_write_xml_result2): Use string_len rather
than strlen().
* rasqal_internal.h: Added prototype for rasqal_literal_ebv.
Added constants rasqal_xsd_decimal_uri, rasqal_xsd_datetime_uri
and rasqal_xsd_string_uri.
* rasqal_literal.c (rasqal_new_integer_literal,
rasqal_new_double_literal, rasqal_new_pattern_literal,
rasqal_new_string_literal, rasqal_new_simple_literal,
rasqal_new_boolean_literal): Initialise the string_len field.
(rasqal_literal_string_to_native): Initialise string_len field
when turning into a boolean.
(rasqal_literal_expand_qname): Use string_len field to initialise
raptor_qname_string_to_uri.
(rasqal_literal_as_node): When making a new typed literal,
initialise string_len field.
(rasqal_literal_ebv): Added, to return the Effective Boolean
Value (EBV) of a literal.
* rasqal.h: rasqal_literal gains string_len field.
* sparql_parser.y (sparql_is_builtin_xsd_datatype): Added to check
for the types that sparql supports.
(FunctionCall): Use sparql_is_builtin_xsd_datatype to distinguish
a cast from a function - name is the datatype URI, has 1 arg.
* rasqal_general.c: Added constants rasqal_xsd_decimal_uri,
rasqal_xsd_datetime_uri and rasqal_xsd_string_uri constants.
(rasqal_uri_init, rasqal_uri_finish): Init and free
rasqal_xsd_decimal_uri, rasqal_xsd_datetime_uri and
rasqal_xsd_string_uri.
2005-06-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* tests/sparql/SyntaxFull/syntax-qname-07.rq,
tests/sparql/SyntaxFull/syntax-qname-08.rq,
tests/sparql/ValueTesting/extendedType-0.n3,
tests/sparql/regex/regex-query-001.rq,
tests/sparql/regex/regex-query-002.rq,
tests/sparql/regex/regex-query-003.rq,
tests/sparql/regex/regex-query-004.rq,
tests/sparql/Expr1/expr-1.rq, tests/sparql/Expr1/expr-2.rq,
tests/sparql/Expr1/expr-3.rq, tests/sparql/Expr2/query-bev-1.rq,
tests/sparql/Expr2/query-bev-3.rq,
tests/sparql/Expr2/query-bev-4.rq,
tests/sparql/Expr2/query-bev-5.rq,
tests/sparql/Expr2/query-bev-6.rq,
tests/sparql/ExprBuiltins/q-datatype-1.rq,
tests/sparql/ExprBuiltins/q-str-1.rq,
tests/sparql/ExprBuiltins/q-str-2.rq,
tests/sparql/ExprBuiltins/q-str-3.rq,
tests/sparql/ExprBuiltins/q-str-4.rq,
tests/sparql/ExprEquals/query-eq-1.rq,
tests/sparql/ExprEquals/query-eq-2.rq,
tests/sparql/ExprEquals/query-eq-3.rq,
tests/sparql/ExprEquals/query-eq-4.rq,
tests/sparql/ExprEquals/query-eq-5.rq,
tests/sparql/ExprEquals/query-eq2-1.rq,
tests/sparql/ExprEquals/query-eq2-2.rq,
tests/sparql/SyntaxFull/manifest.ttl,
tests/sparql/SyntaxFull/syntax-expr-01.rq,
tests/sparql/SyntaxFull/syntax-expr-05.rq,
tests/sparql/SyntaxFull/syntax-expr-06.rq: Updates from DAWG CVS
* rasqal_query.c: Moved rasqal_query_result_row to
rasqal-internal.h
(rasqal_new_query_result_row): Handle no order_conditions_sequence
present. Set NULL literal values when they appear, as from
OPTIONAL.
(rasqal_query_results_update): Added, based on core of
rasqal_query_results_next to get next result from query engine,
including offsets.
(rasqal_query_execute): Use rasqal_query_results_update when not
sorting and make a query_results->row
(rasqal_free_query_results): Free any row field used.
(rasqal_query_results_get_bindings,
rasqal_query_results_get_binding_value,
rasqal_query_results_get_binding_value_by_name): Return row
values, using query_results row field for stream results.
* rasqal_raptor.c (rasqal_raptor_bind_match): Use
rasqal_new_literal_from_literal when binding literal values, do
not turn them into nodes this early.
* tests/sparql/sort/Makefile.am: sort-4 sort-7 pass now only fail
sort-6
* rasqal_expr.c (rasqal_expression_evaluate): For case
RASQAL_EXPR_LT, RASQAL_EXPR_GT, RASQAL_EXPR_LE, RASQAL_EXPR_GE -
invert the test for the result of rasqal_literal_compare test as
it was totally backwards for ints and doubles.
* rasqal_literal.c (rasqal_literal_compare): Return correct <0, 0,
>0 for integers and doubles. It was formerly negative the right
result.