-
Notifications
You must be signed in to change notification settings - Fork 25
/
ChangeLog.12
1912 lines (1264 loc) · 56.5 KB
/
ChangeLog.12
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
2014-12-15 Dave Beckett <[email protected]>
* RELEASE.html: html
* docs/rasqal-changes.tsv:
fix changelog
* NEWS.html, RELEASE.html, configure.ac:
Bumped version to 0.9.34
* Snapshotted rasqal_0_9_33 for 0.9.33 release (GIT 75040ce428844b5ad6f0f9d0ba2b9ff2d75d3c45)
2014-12-14 Dave Beckett <[email protected]>
* NEWS.html, RELEASE.html: 0.9.33
* src/rasqal_query_results.c: Skip only one triple in CONSTRUCT
with unbound vars
(rasqal_query_results_get_triple): Alter skipping to use
rasqal_query_results_next_triple rather than reset to next result
when a triple has an unbound or non-RDF part.
Fixes Issue #0000583
http://bugs.librdf.org/mantis/view.php?id=583
2014-12-07 Dave Beckett <[email protected]>
* docs/tmpl/rasqal-unused.sgml, docs/tmpl/section-unused.sgml:
Update tmpls
* src/rasqal_literal.c, src/rasqal_query.c,
src/rasqal_query_transform.c, src/rasqal_query_write.c,
src/rasqal_result_formats.c, src/rasqal_update.c,
utils/check_query.c, utils/roqet.c, utils/to-ntriples.c: Revert
8e53443f3333ce907d3c78647036d5bb36a96aaf - adding default cases
Too noisy for unreachable code.
* ChangeLog, NEWS.html, RELEASE.html: 0.9.33
* utils/roqet.1, utils/roqet.c: Add support for protocol queries
against a local file
Added format -p <SPARQL protocol URI> <query URI> [base URI]
Fixes Issue #0000546
http://bugs.librdf.org/mantis/view.php?id=546
* utils/roqet.c: Replace a bunch of help printf with puts and
simply
2014-12-05 Dave Beckett <[email protected]>
* ChangeLog, RELEASE.html: 0.9.33
2014-11-27 Dave Beckett <[email protected]>
* src/rasqal_format_sparql_xml.c, src/rasqal_rowsource_service.c:
Fix variables count for SPARQL XML results
(rasqal_service_rowsource_ensure_variables): Copy variables in
(rasqal_sparql_xml_sax2_end_element_handler): Take variables count
from rowsource size, not vars_table size.
Fixes Issue #0000588
http://bugs.librdf.org/mantis/view.php?id=588
* src/rasqal_rowsource.c: rasqal_rowsource_copy_variables add
debug error report
* Merge pull request #5 from rhmccullough/mkr-table mKR relation
CSV output for bindings results
2014-11-24 Richard H. McCullough <[email protected]>
* src/rasqal_format_sv.c:
append ";" to end of variable list
* src/rasqal_algebra.c, src/rasqal_data_graph.c,
src/rasqal_decimal.c, src/rasqal_expr.c,
src/rasqal_expr_evaluate.c, src/rasqal_format_html.c,
src/rasqal_format_json.c, src/rasqal_format_rdf.c,
src/rasqal_format_sparql_xml.c, src/rasqal_format_sv.c,
src/rasqal_literal.c, src/rasqal_query_write.c,
src/rasqal_results_compare.c, src/rasqal_rowsource_aggregation.c,
src/rasqal_rowsource_triples.c, src/rasqal_variable.c,
src/strcasecmp.c: Replace type %d (for enums) with %u in error
messages (-Wformat)
2014-11-23 Richard H. McCullough <[email protected]>
* src/rasqal_format_sv.c:
mKR relation output for select commands
2014-11-23 Dave Beckett <[email protected]>
* src/rasqal_regex.c: pcre regex offset casts (-Wconversion)
* src/snprintf.c: Remove not needed cast for snprintf
(-Wconversion)
* src/rasqal_result_formats.c: sequnce index casts (-Wconversion)
* src/rasqal_random.c: mtwist_u32rand cast (-Wconversion)
* src/rasqal_query_transform.c: memcpy cast (-Wconversion)
* src/rasqal_random.c: getpid cast (-Wconversion)
* src/rasqal_query_transform.c, src/rasqal_row.c: unsigned flag
casts (-Wconversion)
* src/rasqal_query_transform.c, src/rasqal_raptor.c,
src/rasqal_result_formats.c, src/rasqal_row.c,
src/rasqal_row_compatible.c, src/rasqal_rowsource_aggregation.c,
src/rasqal_rowsource_join.c, src/rasqal_rowsource_project.c,
src/rasqal_rowsource_triples.c, src/rasqal_rowsource_union.c,
src/rasqal_variable.c: calloc casts (-Wconversion)
* src/rasqal_general.c: Unicode character width casts
(-Wconversion)
* src/rasqal_format_table.c: Table widths casts (-Wconversion)
* src/rasqal_format_sparql_xml.c:
raptor_stringbuffer_append_counted_string cast -bad (-Wconversion)
* src/rasqal_digest.c: rasqal_digest_buffeer casts for mash
(-Wconversion)
* src/rasqal_decimal.c: snprintf cast (-Wconversion)
* src/rasqal_format_sparql_xml.c, src/rasqal_format_sv.c:
raptor_iostream_read_bytes casts - bad (-Wconversion)
* src/rasqal_format_sv.c, src/rasqal_literal.c,
src/rasqal_result_formats.c: char casts (-Wconversion)
* src/rasqal_graph_pattern.c, src/rasqal_map.c,
src/rasqal_query_write.c, src/rasqal_rowsource.c: Indent casts
(-Wconversion)
* src/rasqal_format_rdf.c, src/rasqal_format_sv.c,
src/rasqal_general.c, src/rasqal_query_results.c: Loop var casts
(-Wconversion)
* src/rasqal_format_sv.c: Signed SV results score (-Wconversion)
* utils/check_query.c, utils/roqet.c: Unsigned indent
(-Wconversion)
* src/rasqal_algebra.c, src/rasqal_internal.h,
src/rasqal_projection.c, src/rasqal_query.c: distinct, limit,
offset are ints. wildcard is 0 or 1 (-Wconversion)
* src/rasqal_results_compare.c: Casts for results compare
(-Wconversion)
* src/rasqal.h.in, src/rasqal_data_graph.c: Data graph takes
unsigned flags (-Wconversion)
* src/rasqal_sort.c: Casts for sorting (-Wconversion)
* src/rasqal_xsd_datatypes.c: Casts for xsd (-Wconversion)
* src/rasqal_datetime.c: Casts for datetime formatting
(-Wconversion)
* configure.ac: Remove -Wswitch-bool enabled by default in gcc
* tests/engine/rasqal_construct_test.c,
tests/engine/rasqal_limit_test.c, tests/engine/rasqal_order_test.c:
Disable "-Wformat-nonliteral" with GCC pragma for test codes
2014-11-22 Dave Beckett <[email protected]>
* src/rasqal_query_test.c, src/rasqal_rowsource_triples.c: Disable
"-Wformat-nonliteral" with GCC pragma for test code
* configure.ac: Document -Wconversion disabled
* src/rasqal_algebra.c, src/rasqal_expr.c,
src/rasqal_expr_evaluate.c, src/rasqal_expr_numerics.c,
src/rasqal_expr_strings.c: Cast macros for -Wconversion (work in
progress; many to go)
* src/rasqal_algebra.c, src/rasqal_internal.h, src/rasqal_query.c:
Make internal limit, offset and distinct vars be unsigned (-Wconversion)
(rasqal_new_orderby_algebra_node, rasqal_new_slice_algebra_node):
Take unsigned vars.
(rasqal_algebra_query_add_slice, rasqal_query_print): Fix checks for
<= 0 that now can be just = 0
* src/rasqal.h.in, src/rasqal_expr.c:
(rasqal_new_group_concat_expression): Unsigned bit flags
* configure.ac: Document -Wcast-qual is noisy
* configure.ac: Remove gcc warnings included in -Wall
-Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare
* configure.ac:
Disable -Wswitch-default again
* src/rasqal_literal.c, src/rasqal_query.c,
src/rasqal_query_transform.c, src/rasqal_query_write.c,
src/rasqal_result_formats.c, src/rasqal_update.c,
utils/check_query.c, utils/roqet.c, utils/to-ntriples.c: Add some
default: cases (-Wswitch-default)
* configure.ac: Add -Wswitch-default
* configure.ac: Enable -Wconversion
* src/rasqal_format_sv.c: Use size_t for sv size (-Wconversion)
rasqal_rowsource_sv_context field variables_count changes to
size_t to capture full sv size
* .travis.yml:
Travis CI: Try to exclude some matrix combinations
* configure.ac: Enable -Wformat=2 for gcc
* utils/check_query.c, utils/roqet.c, utils/srxread.c,
utils/testrunner.c: Remove static string printfs in utilities
(-Wformat)
* .travis.yml, scripts/install-bison3.sh: Travis-CI fixes -
apt-get update
* src/rasqal_rowsource_join.c: Trailing ,
* src/rasqal_format_html.c: C style comment
* src/rasqal.h.in, src/rasqal_internal.h: Remove trailing ,s (C90)
2014-11-21 Dave Beckett <[email protected]>
* scripts/install-raptor.sh: Tidy code
* docs/tmpl/rasqal-unused.sgml,
docs/tmpl/section-graph_pattern.sgml,
docs/tmpl/section-literal.sgml,
docs/tmpl/section-query_results.sgml,
docs/tmpl/section-unused.sgml:
Update tmpls
* src/rasqal.h.in: Document arg4 for rasqal_expression
* src/rasqal_format_sv.c: De-comment
* src/rasqal_graph_pattern.c:
(rasqal_graph_pattern_get_triples): Put decl first (C90)
* scripts/fix-bison.pl, scripts/fix-flex.pl,
scripts/fix-groff-xhtml.pl, scripts/fix-gtkdoc-header.pl: Update
scripts
2014-11-03 Dave Beckett <[email protected]>
* Merge pull request #4 from dajobe/multi-expr-unroll Evaluate
expressions in document order left-to-right
2014-11-02 Dave Beckett <[email protected]>
* src/sparql_parser.y: ME2 to MuExOpUnaryExpression
* src/sparql_parser.y:
Make debug expr conditionalized
* src/sparql_parser.y: More debug prints. Join AE2List and AE2
sequences
* src/rasqal_internal.h, src/sparql_parser.y: Refactoring seems ok
* src/rasqal_graph_pattern.c:
(rasqal_graph_pattern_get_triples): Declare vars first (C90)
* src/sparql_parser.y:
(sparql_parse): Fix debug set variable
* src/rasqal_expr.c:
debug message for expr is constant
* .travis.yml: raptor 2.0.15 is latest
* src/rasqal_xsd_datatypes.c:
(rasqal_xsd_check_integer_format): Write check, no need for strtol()
2014-10-19 Dave Beckett <[email protected]>
* docs/rasqal-changes.tsv: Fix fields count
* scripts/process-changes.pl: Make process-changes.pl report wrong
fields count
* docs/rasqal-changes.tsv, docs/rasqal-sections.txt: Add new
methods to changelog
* Merge pull request #1 from cosminbasca/master
new getter functions: rasqal_graph_pattern_get_triples,
rasqal_literal_get_type, rasqal_literal_get_language
* scripts/install-raptor.sh: fix install names
* .travis.yml: -;
* .travis.yml, scripts/install-raptor.sh: Try to install raptor if
it's not there
* .travis.yml, scripts/install-bison3.sh: Travis CI
2014-10-10 Dave Beckett <[email protected]>
* scripts/fix-bison.pl, scripts/fix-gtkdoc-header.pl: perms
* utils/Makefile.am: fix-groff-xhtml.pl
2014-10-09 Dave Beckett <[email protected]>
* src/Makefile.am: Further fix flex/bison rules to silence them in
normal runs
* src/Makefile.am: Add use of AM_V_GEN to make make V=0 look good
After change to Raptor's turtle parser/lexer rules
* docs/Makefile.am, scripts/Makefile.am, scripts/fix-bison,
scripts/fix-bison.pl, scripts/fix-flex, scripts/fix-flex.pl,
scripts/fix-groff-xhtml, scripts/fix-groff-xhtml.pl,
src/Makefile.am: Rename scripts/fix-* to add .pl suffix
* configure.ac: Add some GCC5 warning flags
* configure.ac, src/rasqal_internal.h: Use __FUNCTION__ (c99)
replacing __func__ (c90)
* Merge pull request #3 from hroptatyr/compiler-support Intel C
compiler (icc) support
2014-10-09 Sebastian Freundt <[email protected]>
* configure.ac: Always use AC_LANG_WERROR when checking for
compiler warning flags
Many gcc-compatible compilers (icc, clang, etc.) verbosely ignore
gcc command line flags issuing a warning of some sort. Catch
these warnings and turn them into errors when checking for support
of specific warning flags.
2014-10-06 Dave Beckett <[email protected]>
* ChangeLog, RELEASE.html: 0.9.33
2014-08-02 Dave Beckett <[email protected]>
* INSTALL.html: Fix flex url
* INSTALL.html, README.html: Bye bye sf
2014-07-06 Dave Beckett <[email protected]>
* src/rasqal_rowsource.c:
(rasqal_new_rowsource_from_handler): Init default size to 0
(rasqal_rowsource_add_variable): Remove workaround needed for
above.
* tests/sparql/warnings/manifest.ttl:
there is no test_4
* src/rasqal_internal.h, src/rasqal_query_results.c,
src/rasqal_row.c, utils/check_query.c, utils/manifest.c:
rasqal_query_results_sort simplified
(rasqal_query_results_sort): Switch to use of internal helper for
sorting and rasqal_variables_table_get_order() to order the
variables in a result by name.
(rasqal_query_results_sort_compare_row): replaces
rasqal_row_compare_arg() and uses a private context struct
rqr_context. Update callers of rasqal_query_results_sort()
* src/rasqal_internal.h, src/rasqal_variable.c:
(rasqal_variables_table_get_order): Added
* src/rasqal_internal.h, src/rasqal_literal.c:
(rasqal_literal_array_compare_by_order): Added sort+arg helper
* src/rasqal_literal.c: docs
* src/rasqal_internal.h, src/rasqal_row.c, utils/check_query.c,
utils/manifest.c:
(rasqal_row_compare_arg): Renamed from rasqal_row_compare Update
callers
* utils/Makefile.am:
Add all-programs rule for testing
* src/rasqal_query_results.c, utils/check_query.c:
(rasqal_query_results_sort): Add user_data arg
If raptor is 2.0.15 or newer, uses raptor_sequence_sort_r
otherwise uses internal rasqal_sequence_as_sorted() to alter the
result sequence directly. Update callers
* configure.ac, src/Makefile.am, src/rasqal_internal.h,
src/rasqal_sort.c:
(rasqal_sequence_as_sorted): Added if raptor < 2.0.15 Uses inline static rasqal_ssort_r()
* src/Makefile.am, src/ssort.h: Add ssort.h defining static
rasqal_ssort_r() public domain
2014-06-21 Dave Beckett <[email protected]>
* src/rasqal_internal.h, src/rasqal_query_results.c,
utils/manifest.c: Revert "(rasqal_query_results_sort): Takes just
result arg" This reverts commit
4a8bbb35926c6a27b0a217bbbe6910ca95ef1426.
* src/rasqal_internal.h, src/rasqal_query_results.c,
utils/manifest.c:
(rasqal_query_results_sort): Takes just result arg
* utils/manifest.c:
(manifest_testsuite_run_suite): Take copy of test into result seqs
* utils/manifest.c, utils/manifest.h:
Add reference count model for
manifest_test (manifest_new_test_from_test): Added
* utils/testrunner.c: free result after getting state
2014-06-19 Dave Beckett <[email protected]>
* utils/manifest.c:
(manifest_manifests_run): Do not leak ts->tests sequence
2014-06-15 Dave Beckett <[email protected]>
* tests/sparql/SyntaxFull/manifest.ttl: Remove syntax-bnodes-03.rq
and syntax-bnodes-04.rq from manifest too
* tests/sparql/ExprBuiltins/Makefile.am,
tests/sparql/ExprBuiltins/data-builtin-1.ttl,
tests/sparql/ExprBuiltins/result-datatype-1.ttl: Fix
data-builtin-1.ttl result-datatype-1.ttl to match upstream
* src/rasqal_results_compare.c:
(rasqal_results_compare_compare): If no vars, don't compare var sets
* src/rasqal_format_rdf.c:
Remove all vars from empty results files (no rows)
(rasqal_rowsource_rdf_process): If a result set is found with no
rows, remove all vars too.
* src/rasqal_internal.h, src/rasqal_rowsource.c:
(rasqal_rowsource_remove_all_variables): Added - internal
* utils/manifest.c:
(manifest_new_test): Fix approval URI check
* utils/manifest.c:
(manifest_test_print): Make test flag printing more compact.
* tests/sparql/SyntaxFull/Makefile.am,
tests/sparql/SyntaxFull/syntax-bnodes-03.rq,
tests/sparql/SyntaxFull/syntax-bnodes-04.rq: Remove never approved
tests SyntaxFull/syntax-bnodes-0[34].rq
* tests/sparql/SyntaxFull/manifest.ttl: syntax-bnodes-03.rq and
syntax-bnodes-04.rq were never approved
* tests/sparql/federated/Makefile.am,
tests/sparql/federated/manifest.ttl: Add manifest.ttl to
tests/sparql/federated
* tests/sparql/update/Makefile.am, tests/sparql/update/manifest.ttl:
Add manifest.ttl to tests/sparql/update/
* utils/manifest.c:
(manifest_test_print): Tidy and indent test printing
* utils/manifest.c:
(manifest_test_print): Add all flags
* utils/manifest.c:
(manifest_testsuite_run): Fix default state for non-syntax tests
* utils/testrunner.c: Testrunner result state is based on
testsuite result state
Now ignores error/warning counts as these may be OK if the tests
are expected to fail.
* utils/manifest.c: More debug test result reporting
* utils/manifest.c:
(manifest_testsuite_run_suite): Return state based on failures
* utils/manifest.c:
Handle syntax tests: do not try to run query.
(manifest_test_run): After prepare/parse, end for a syntax test.
For non-syntax tests, log error and stop.
* utils/manifest.c: XFAIL and UXPASS are now internal; do not
report them
* utils/manifest.c: Print debug test result state
* utils/manifest.c, utils/manifest.h, utils/testrunner.c: Enable
running only approved tests.
(manifest_testsuite_run_suite): Add approved arg and check it.
(manifest_manifests_run): Add approved arg and use to run suite
with it above. Add -a/--approved arg to testrunner utility
* utils/manifest.c:
(manifest_testsuite_result_format): Print verbose uxpass
* utils/manifest.c:
(manifest_testsuite_result_format): Format uxpass better
* utils/manifest.c: Count and repott skipped tests
(update/protocol) Report STATE_LAST (SKIP) in summaries
2014-06-11 Dave Beckett <[email protected]>
* utils/manifest.c:
(manifest_test_run): Print expected graph triples using
rasqal_dataset_print() in debug mode. Do not fail with an actual
graph result at results stage.
* utils/manifest.c: Handle reading RDF graph results: default to
guess and set a base URI
* src/rasqal_dataset.c:
(rasqal_dataset_print): Added
* src/rasqal_dataset.c, src/rasqal_internal.h: Added
rasqal_dataset_triples iterator class
(rasqal_dataset_get_triples_iterator,
rasqal_free_dataset_triples_iterator): Added constructor and
destructor.
(rasqal_dataset_triples_iterator_get)
(rasqal_dataset_triples_iterator_next): Added methods to get and
move
* utils/manifest.c:
(manifest_test_run): Warn and return if there is no query.
* utils/manifest.c:
(manifest_test_print): Handle non-querys
* src/rasqal_literal.c:
(rasqal_literal_as_uri): Just return NULL when it's not a URI
* src/rasqal_query_results.c:
(rasqal_query_results_sort): Survive being asked to sort a NULL
sequence.
2014-06-10 Dave Beckett <[email protected]>
* src/rasqal_expr_strings.c:
(rasqal_expression_evaluate_concat): Fix SPARQL concat() types and
languages
2014-06-08 Dave Beckett <[email protected]>
* src/rasqal_results_compare.c:
(rasqal_results_compare_compare): Blanks compare equal always
* configure.ac: Prefer PCRE regex library since it works with
Unicode
* utils/manifest.c:
(manifest_new_test): Add print handler for data graphs sequence
* utils/manifest.c: nl
* src/rasqal_internal.h, src/rasqal_row.c: Ensure weak rowsource
reference is never freed
rasqal_row gains flags field. loses unused variable_names field
too.
(rasqal_row_set_rowsource, rasqal_row_set_weak_rowsource):
Set / reset the weak rowosource flag to ensure only strong
references are freed.
2014-06-04 Dave Beckett <[email protected]>
* utils/manifest.c: Block out debug print blocks
* src/rasqal_query_results.c: code style
* src/sparql_parser.y: Set eval context base URI when BASE <uri>
is parsed
2014-06-02 Dave Beckett <[email protected]>
* utils/manifest.c: formatting
* src/rasqal_literal.c:
(rasqal_literal_as_uri): Do not lookup NULL variable value
* utils/manifest.c:
(manifest_test_run): Split reporting actual vs checking actual Allows tests with no expected value to pass.
* utils/manifest.c: Split out reporting expected (if present) and
checking it matches
* utils/manifest.c: Report test details during run
(manifest_test_print): Added
(manifest_test_run): Call above in debug mode
* utils/manifest.c: less debug
* utils/manifest.c: NL
* src/rasqal_rowsource_aggregation.c: Handle missing aggregation
total for AVG
(rasqal_builtin_agg_expression_execute_result): If there is no total
literal, do not do a divide.
* utils/manifest.c: Support results no expected results for e.g.
syntax tests
(manifest_new_test): Handle qt:query <uri> for just a query URI, no
data or results.
(manifest_test_run): Handle NULL expected or actual results and
compare them either is NULL.
* src/sparql_parser.y: Set base URI after query parsing to get it
from BASE
(rasqal_sparql_query_language_prepare): Call
rasqal_evaluation_context_set_base_uri()
2014-06-01 Dave Beckett <[email protected]>
* src/rasqal_expr_strings.c: Make strbefore and strafter preserve,
check languages and operate on strings
(rasqal_expression_evaluate_strbefore,
rasqal_expression_evaluate_strafter): Check
rasqal_literal_is_string() on both needle and haystack. If
haystack has a language, make sure it matches needle with
rasqal_literal_string_languages_compare(). Copy needle language
to result.
* src/rasqal_internal.h, src/rasqal_literal.c:
(rasqal_literal_is_string): Added helper
* src/rasqal_internal.h, src/rasqal_literal.c: Add helpers for
comparing string datatypes and languages
(rasqal_literal_string_datatypes_compare,
rasqal_literal_string_languages_compare): Added, pulled out of
rasqal_literal_string_compare().
(rasqal_literal_string_compare): Updated to use them. Now does case
independent language compare.
(rasqal_literal_string_equals_flags): Use
rasqal_literal_string_languages_compare().
2014-06-01 Dave Beckett <[email protected]>
* src/rasqal_datetime.c:
Fix datetime timezone issues
(rasqal_xsd_datetime_normalize, rasqal_xsd_datetime_parse,
rasqal_xsd_timezone_format): Store -/+ timezone minutes correctly
(rasqal_xsd_datetime_get_timezone_as_counted_string): Handle no TZ
2014-05-31 Dave Beckett <[email protected]>
* src/rasqal_format_sparql_xml.c:
(rasqal_rowsource_sparql_xml_get_boolean): Get value before freeing
context. Coverity CID 65381
2014-05-27 Dave Beckett <[email protected]>
* src/rasqal_format_sparql_xml.c:
(rasqal_sparql_xml_sax2_end_element_handler): Set row offset
2014-05-26 Dave Beckett <[email protected]>
* src/rasqal_row.c:
(rasqal_row_compare): Less debugging, now RASQAL_DEBUG > 1
* src/rasqal_literal.c: Less literal comparison debugging, now
RASQAL_DEBUG > 1
* src/rasqal_format_sparql_xml.c: less debugging, protected by
TRACE_XML or higher RASQAL_DEBUG
* src/rasqal_format_sparql_xml.c: Fix chunked parsing of literals
in literal body
Switch to use an appending stringbuffer to avoid
truncated/overwritten literals when the element content was
delivered in multiple literal chunks - especially a problem near
unicode.
(rasqal_sparql_xml_sax2_start_element_handler): Initialise sb.
(rasqal_sparql_xml_sax2_characters_handler): Add content to sb
(rasqal_sparql_xml_sax2_end_element_handler): Form single value /
value_len vars from sb content. Use it for literal values and
checking boolean. Reset sb at end
(rasqal_sparql_xml_free_context): Free any sb.
* src/rasqal_result_formats.c:
(rasqal_query_results_formatter_read): Refactor to use switch
* utils/check_query.c: Support boolean results in check-query and
check for pass/fail.
* utils/manifest.c: Support boolean results in manifest code and
check for pass/fail.
* src/rasqal_format_sparql_xml.c: Add boolean result format
support for SPARQL XML
Refactor XMl parsing code to handle bindings / boolean
(rasqal_sparql_xml_start): Added to init XML parsing
(rasqal_sparql_xml_sax2_start_element_handler): Handle boolean
element start (NOP).
(rasqal_sparql_xml_sax2_characters_handler): Handle boolean
element content - save it.
(rasqal_sparql_xml_sax2_end_element_handler): Handle boolean
element content: - allow <head> to end with no variables - check
string for 'true' or 'false'. FIXME: handle case independent?
(rasqal_rowsource_sparql_xml_init): Move most of it to
rasqal_sparql_xml_start() (rasqal_rowsource_sparql_xml_finish):
Move most of it to rasqal_sparql_xml_free_context()
(rasqal_sparql_xml_init_context): Added, pulled out of
rasqal_query_results_get_rowsource_sparql_xml()
(rasqal_sparql_xml_free_context): Added, pulled out of
rasqal_rowsource_sparql_xml_finish()
(rasqal_rowsource_sparql_xml_get_boolean): Added new factory
method to do all the XML work right here.
(rasqal_query_results_get_rowsource_sparql_xml): Slimmed down
calling rasqal_sparql_xml_init_context() to do most init working.
(rasqal_query_results_sparql_xml_register_factory): Register
get_boolean method.
* src/rasqal_result_formats.c:
(rasqal_query_results_formatter_read): Allow boolean results
* src/rasqal_internal.h, src/rasqal_result_formats.c: Add support
for boolean results from a query result format.
rasqal_query_results_get_boolean_func handler func added.
struct rasqal_query_results_format_factory_s gains factory method
get_boolean with type above.
(rasqal_query_results_formatter_get_boolean): Added to call method
get_boolean if not NULL.
* src/rasqal_internal.h, src/rasqal_query_results.c:
(rasqal_query_results_set_boolean): Added internal method
* utils/manifest.c: Turn "not supported" debug messages into
rasqal logged messages
* utils/manifest.c: debug messages
* src/rasqal_query_results.c:
(rasqal_query_results_update_query_bindings): Handle NULL v
[coverity CID 63531] Although the logic makes this very unlikely
* utils/manifest.c: nl
* utils/manifest.c:
(manifest_testsuite_result_format): Handle empty t->result
* src/rasqal.h.in, src/rasqal_query.c, src/rasqal_query_results.c,
src/rasqal_service.c, utils/results.c, utils/srxread.c,
utils/srxwrite.c:
rasqal_query_results manages it's own variables
table now
(rasqal_new_query_results2): Deprecated for
rasqal_new_query_results without the vars_table parameter that is
now ignored. (rasqal_query_results_ensure_have_row_internal):
Ensure the vars table is built once from the first row seen.
(rasqal_query_results_get_binding_name): Get binding name from
query results vars table rather than row.
(rasqal_query_execute_with_engine,
rasqal_new_query_results_from_string, rasqal_service_execute,
srxread, srxwrite): Updated all callers of
rasqal_new_query_results() to use rasqal_new_query_results2() with
no vars table.
* src/rasqal_internal.h, src/rasqal_query_results.c,
src/rasqal_row.c: Use query results vars table to get names
(rasqal_query_results_get_bindings): Use
rasqal_variables_table_get_names() on query results vars table.
(rasqal_row_get_names): Removed since no longer used.
* src/rasqal_query_results.c: Copy row values from query results
vars table to query.
(rasqal_query_results_update_query_bindings): Renamed from
rasqal_query_results_update_bindings and now reads from query
results vars table and copies row values into query vars table.
Primary for CONSTRUCT
* src/rasqal_internal.h, src/rasqal_variable.c: Revert
"(rasqal_variables_table_get_names): Remove and variable_names
field" This reverts commit
71a1110913c2c57245fc4106586e7910cd83c758.
* docs/tmpl/section-query_results_formatter.sgml: update tmpl
* src/rasqal_bindings.c:
(rasqal_new_bindings_from_var_values): Init size to 0
* docs/rasqal-changes.tsv, docs/rasqal-sections.txt,
src/rasqal.h.in, src/rasqal_result_formats.c, utils/results.c,
utils/roqet.c:
Fix rasqal_query_results_formats_check return value.
(rasqal_query_results_formats_check2): Added implementing
specification correctly; non-0 if format exists.
(rasqal_query_results_formats_check): Deprecated
Updated callers to use the logic.
* Merge pull request #2 from hroptatyr/fix/formats_check
Fix r_g_q_results_formatter_factory() to produce the result
advertised in 130fa83
2014-05-24 Dave Beckett <[email protected]>
* docs/tmpl/section-query_results.sgml,
docs/tmpl/section-row.sgml, docs/tmpl/section-triples_source.sgml,
docs/tmpl/section-variables-table.sgml: Update tmpls
* src/rasqal_internal.h, src/rasqal_query_results.c,
src/rasqal_row.c: Allow getting variables from a row
(rasqal_row_get_variable_by_offset): Added
(rasqal_query_results_get_binding_name): Use above instead of
variables table.
* src/rasqal_row.c: Add rowsource reference counting to rasqal_row
* src/rasqal_bindings.c:
(rasqal_new_bindings_from_var_values): Hanle NULL values sequence
* src/rasqal_internal.h, src/rasqal_row.c, src/rasqal_rowsource.c,
src/rasqal_rowsource_assignment.c,
src/rasqal_rowsource_distinct.c, src/rasqal_rowsource_graph.c,
src/rasqal_rowsource_join.c, src/rasqal_rowsource_project.c,
src/rasqal_rowsource_rowsequence.c, src/rasqal_rowsource_union.c:
Let rows change their rowsource
(rasqal_row_set_rowsource): Added for general internal use
(rasqal_row_set_weak_rowsource): Added for rowsource_rowsequence
so it does not hold circular references to itself in the rows it
stores in it's sequence.
* src/rasqal_query.c:
(rasqal_query_get_variable): docs
* src/rasqal_results_compare.c:
(rasqal_new_results_compare): free v2 only if new
* src/rasqal_results_compare.c:
(rasqal_new_results_compare): free v2 after last use
* src/rasqal_rowsource_aggregation.c:
(main): Fix output_var_name leak using rasqal_variables_table_add2()
* src/rasqal_results_compare.c:
(rasqal_new_results_compare): Fix leak of vars
* src/rasqal_row.c: docs
* src/rasqal_rowsource.c:
(rasqal_new_rowsource_from_handler): set usage earlier
* src/rasqal_internal.h, src/rasqal_rowsource.c: Make rowsource
usage counted
(rasqal_new_rowsource_from_rowsource): Added
* src/rasqal_internal.h, src/rasqal_variable.c:
(rasqal_variables_table_get_names): Remove and variable_names field
* src/rasqal_query_results.c:
(rasqal_query_results_get_bindings): Use rasqal_row_get_names()
* src/rasqal_internal.h, src/rasqal_row.c: Compute sequence of
variable names for row on demand (rasqal_row_get_names): Added
internal method
2014-05-21 Dave Beckett <[email protected]>
* src/rasqal_results_compare.c:
(rasqal_new_results_compare): Allocate defined_in_map 2x larger
2014-05-11 Dave Beckett <[email protected]>
* docs/rasqal-changes.tsv:
remove spaces
* docs/rasqal-changes.tsv:
Added new enum values from 0.9.28 - 0.9.30
0.9.28: RASQAL_LITERAL_DATE
0.9.29: RASQAL_EXPR_STRUUID and RASQAL_EXPR_UUID
0.9.30: RASQAL_GRAPH_PATTERN_OPERATOR_VALUES
* docs/rasqal-changes.tsv: rasqal_new_4op_expression was added in
0.9.28
* docs/rasqal-changes.tsv:
RASQAL_EXPR_MD5 was added in 0.9.26
* docs/rasqal-docs.xml: 2014
2014-05-03 Dave Beckett <[email protected]>
* configure.ac: Handle flex not being installed
2014-04-29 Dave Beckett <[email protected]>
* scripts/fix-bison: Move fixup before line offset change
2014-04-28 Dave Beckett <[email protected]>
* ChangeLog, RELEASE.html: 0.9.33
* Remove dead code from bison output
* scripts/fix-bison: Remove dead code from bison output
2014-04-26 Dave Beckett <[email protected]>
* src/sparql_parser.y:
YYYERR_MSG_GOTO always sets errmsg Also fix YYDEBUG undef
* src/sparql_parser.y:
(Collection, GrpahNodeListNotEmpty): Tidy error path
* src/rasqal_literal.c:
(rasqal_literal_cast): Handle more failure conditions [coverity CID 48453]
* src/sparql_lexer.l:
(sparql_skip_c_comment): Simplify and remove dead code [coverity CID 43033]
* utils/results.c:
(rasqal_cmdline_read_results): Error path dead code [coverity CID 43032]
* src/rasqal_literal.c:
(rasqal_literal_divide): Dead code [coverity CID 43031]
* src/rasqal_expr_datetimes.c:
(rasqal_expression_evaluate_datetime_part): dead code [coverity CID 43030]
* src/rasqal_rowsource_project.c:
(rasqal_project_rowsource_read_row): dead code [coverity CID 43029]
* src/rasqal_rowsource_triples.c: