File: ChangeLog

package info (click to toggle)
rasqal 0.9.20-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,088 kB
  • ctags: 3,952
  • sloc: ansic: 25,718; sh: 10,694; yacc: 4,318; lex: 2,905; makefile: 2,072; perl: 1,386; xml: 90
file content (2150 lines) | stat: -rw-r--r-- 69,688 bytes parent folder | download
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2010-08-22  Dave Beckett <dave@dajobe.org>

	* Snapshotted rasqal_0_9_20 for 0.9.20 release (GIT
	6b842b7e85565693bb8fe7a250710443f8d3a2a3)

2010-08-22  Nicholas J Humfrey <njh@aelius.com>

	* rasqal.rdf.in: Updated repository section to new Git repository
	on Github

	* rasqal.rdf.in: Normalised tabs into spaces #ws

2010-08-21  Dave Beckett <dave@dajobe.org>

	* README.html, RELEASE.html: Remove links to TODO.html

	* README.html: words

	* RELEASE.html: 0.9.20

	* NEWS.html: 0.9.20

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Return error failure not abort on
	attempt to evaluate SAMPLE() and GROUP_CONCAT()

	* TODO.html: Empty document and point at bugs.librdf.org

	* README.html: requires raptor 1.4.19

	* README.html: words - jena RDQL links are all broken; comment
	out.

	* LICENSE.html: Link to specific LGPL 2.1 version doc.  Wording
	and formatting

	* INSTALL.html: words

	* src/rasqal_general.c: Removed dmalloc support

	* configure.ac, src/rasqal_internal.h: Removed dmalloc support

	* docs/rasqal-sections.txt, docs/tmpl/section-expression.sgml,
	docs/tmpl/section-query.sgml, docs/tmpl/section-unused.sgml:
	Updated docbook tmpls and sections

	* src/rasqal.h.in, src/rasqal_internal.h, src/rasqal_query.c,
	src/rasqal_query_transform.c, src/rasqal_query_write.c,
	src/sparql_parser.y, tests/sparql/aggregate/Makefile.am,
	tests/sparql/aggregate/group-concat-1.rq,
	tests/sparql/aggregate/group-concat-2.rq,
	tests/sparql/aggregate/group-concat-3.rq:
	Add support for SPARQL 1.1 HAVING <list of Expression>

	(rasqal_query_get_having_conditions_sequence,
	rasqal_query_get_having_condition): Added.

	struct rasqal_query gains new internal field
	having_conditions_sequence.

	(rasqal_free_query, rasqal_query_print,
	rasqal_query_write_sparql_20060406): Handle new sequence of having
	conditions.

	(rasqal_query_build_variables_use_map): Scan HAVING expr for
	variable use.  Removes a fixme.

	(SPARQL parser token HavingClauseOpt): Store having conditions
	sequence.  Removes a fixme.  Added teses for above.

	* src/rasqal_expr.c:
	(rasqal_new_group_concat_expression): Allow separator to be NULL

	* src/rasqal.h.in:
	Add rasqal_new_group_concat_expression header

	* src/rasqal_expr.c, src/rasqal_query_write.c, src/sparql_lexer.l,
	src/sparql_parser.y, tests/sparql/aggregate/Makefile.am,
	tests/sparql/aggregate/group-concat-1.rq: Add full GROUP_CONCAT()
	syntax and representation support.

	Added tests/sparql/aggregate/group-concat-1.rq (nothing in spec
	yet)

	(rasqal_new_group_concat_expression): Added taking distinct flag,
	sequence of expressions and literal separator

	(rasqal_expression_clear, rasqal_expression_write,
	rasqal_expression_print, rasqal_expression_is_constant,
	rasqal_query_write_sparql_expression): updated for above change.

	Fix SPARQL lexer token to be GROUP_CONCAT not GROUPCONCAT.  Oops -
	that's why a test is needed.

	(SeparatorOpt): Use EQ not '=' which never gets here.

	(ExpressionList): added for a comma-separated list of
	expressions.

	(GroupConcatAggregateExpression): Use ExpressionList and create
	new expression from rasqal_new_group_concat_expression().

2010-08-20  Dave Beckett <dave@dajobe.org>

	* src/rasqal_engine_algebra.c:
	Zero out freed node pointer

	(rasqal_algebra_graph_algebra_node_to_rowsource): After "case #2"
	when rasqal_free_algebra_node() is called, zap out the pointer.
	Addresses Issue#0000378
	http://bugs.librdf.org/mantis/view.php?id=378

	* src/rasqal_rowsource_empty.c:
	(rasqal_empty_rowsource_ensure_variables): Use to set row width to
	0

2010-08-19  Dave Beckett <dave@dajobe.org>

	* docs/Makefile.am, src/Makefile.am: Do not ship rasqal.h in
	tarball since it is system-dependent (raptor2 or not)

	Add nodist_ before list of installed includes: rasqal.h must be
	installed but not distributed.

	Add docs dependency rule for rasqal.h for gtk-doc scanning.

	* tests/sparql/bugs/353-result.ttl, tests/sparql/bugs/353.ttl: Add
	bug353 ttl files

	* tests/sparql/check-sparql: remove debug print

2010-08-18  Dave Beckett <dave@dajobe.org>

	* 000-README-GIT.txt: Remove 000-README-GIT.txt intended for old
	repo

	* tests/sparql/bugs/353-result.ttl, tests/sparql/bugs/353.rq,
	tests/sparql/bugs/Makefile.am, tests/sparql/bugs/manifest.ttl: Add
	test for 353 - currently fails

	* tests/sparql/check-sparql: Handle RDF graph results type as well
	as bindings

	* tests/sparql/check-sparql: debug messages when reading results

2010-08-18  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_query_results.c:
	(rasqal_query_results_update_bindings): Avoid using uninitialized
	pointer

2010-08-17  Dave Beckett <dave@dajobe.org>

	* src/rasqal_algebra.c: Ensure CONSTRUCT sets up variables for
	projection.

	(rasqal_algebra_get_variables_mentioned_in): Added to get list of
	variables mentioned in a construct.

	(rasqal_algebra_query_to_algebra): For a CONSTRUCT, get the
	mentioned vars and use those in the projection and free the
	sequence after.

	* AUTHORS: Added Lauri Aalto

	* 000-README-GIT.txt: Moved to GitHub at
	http://github.com/dajobe/rasqal

	* README.html: Update for github

2010-08-05  Dave Beckett <dave@dajobe.org>

	* src/rasqal_result_formats.c:
	(rasqal_query_results_formatter_write): document NULL base_uri is
	allowed

2010-08-04  Dave Beckett <dave@dajobe.org>

	* src/rasqal_raptor.c: Update rasqal_raptor_generate_id_handler to
	handle new raptor generate nodeid API

2010-07-27  Dave Beckett <dave@dajobe.org>

	* src/.gitignore: Ignore generated rasqal.h

	* src/sparql_parser.y:
	Add VarOrBadVarName state to track deprecated LAQRS .. AS varname ...

	(SelectTerm): Use VarOrBadVarName for deprecated LAQRS SELECT
	... AS varname, instead of the draft SPARQL 1.1 Query SELECT
	... AS ?varname

	(VarOrBadVarName): Added generating a warning for a bare varname.

	* src/sparql_lexer.l: Restore SPID state after AS and return $, ?
	and VarName tokens

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/group-by1.rq:
	Remove group-by1.rq - syntax was never added to sparql 1.1 and this
	was never in shipped rasqal release

	* src/sparql_parser.y:
	Make SELECT AS, HAVING, GROUP_CONCAT with SEPARATOR partially work

	Added tokens HAVING and SEPARATOR

	(SelectTerm): Use AS Var not VarName.

	(SelectExpression): Deleted, SelectQuery uses Expression direct.

	(AggregateExpression): Add annotations.

	(SeparatorOpt): Added to handle ; SEPARATOR = "string" for
	GROUP_CONCAT.

	(GroupConcatAggregateExpression): Use SeparatorOpt but throw away
	the string for now - FIXME.

	(SolutionModifier): Add HavingClauseOpt

	(GroupCondition): Use AS Var not VarName

	(HavingCondition): Added, just alias for Constraint.

	(HavingConditionList): Added as list of HavingCondiiton

	(HavingClauseOpt): Added for HAVING.  Throws away result for now -
	FIXME.

	(PrimaryExpression): Add AggregateExpression here; so you can put an
	aggregate expression such as as SUM() etc. anywhere an expression
	can go!

2010-07-26  Dave Beckett <dave@dajobe.org>

	* src/sparql_lexer.l: Added HAVING, GROUP_CONCAT, SEPARATOR tokens

	* configure.ac, tests/sparql/Makefile.am,
	tests/sparql/aggregate/Makefile.am,
	tests/sparql/aggregate/agg-1.rq, tests/sparql/aggregate/agg-2.rq,
	tests/sparql/aggregate/bad-1.rq, tests/sparql/aggregate/data-1.ttl:
	
	Add SPARQL 1.1 aggregate function tests

	* src/sparql_lexer.l:
	Accept ( Expr AS Var ) not ( Expr as VarName ) (AS): Return AS, do
	not enter SPID state.

	(SPID state): Deleted

	* RELEASE.html: words

	* RELEASE.html: words

	* words and formatting

2010-07-25  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y: Allow SPARQL 1.1 UPDATE 2010-06-01 CLEAR
	GRAPH <uri>/DEFAULT

	* tests/sparql/update/clear-4.rq: CLEAR GRAPH DEFAULT

	* tests/sparql/update/clear-1.rq: note CLEAR is not legal syntax
	anymore

	* tests/sparql/update/Makefile.am, tests/sparql/update/clear-1.rq,
	tests/sparql/update/clear-2.rq, tests/sparql/update/clear-3.rq,
	tests/sparql/update/create-1.rq, tests/sparql/update/create-2.rq,
	tests/sparql/update/delete-1.rq, tests/sparql/update/delete-2.rq,
	tests/sparql/update/delete-data-1.rq,
	tests/sparql/update/delete-data-2.rq,
	tests/sparql/update/delete-insert-1.rq,
	tests/sparql/update/delete-where-1.rq,
	tests/sparql/update/delete-where-2.rq,
	tests/sparql/update/drop-1.rq, tests/sparql/update/drop-2.rq,
	tests/sparql/update/insert-1.rq, tests/sparql/update/insert-2.rq,
	tests/sparql/update/insert-data-1.rq,
	tests/sparql/update/insert-data-2.rq,
	tests/sparql/update/insert-data-3.rq,
	tests/sparql/update/insert-data-4.rq,
	tests/sparql/update/insert-delete-1.rq,
	tests/sparql/update/load-1.rq, tests/sparql/update/load-2.rq: 
	Updated tests for
	http://www.w3.org/TR/2010/WD-sparql11-update-20100601/

2010-05-17  Dave Beckett <dave@dajobe.org>

	* rasqal.pc.in: set have_raptor2_api boolean for rasqal pkgconfig

2010-05-16  Dave Beckett <dave@dajobe.org>

	* src/rasqal_algebra.c, src/rasqal_engine.c,
	src/rasqal_engine_sort.c, src/rasqal_expr.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_table.c,
	src/rasqal_general.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c, src/rasqal_map.c,
	src/rasqal_query.c, src/rasqal_query_results.c,
	src/rasqal_query_transform.c, src/rasqal_query_write.c,
	src/rasqal_raptor.c, src/rasqal_result_formats.c, src/rasqal_row.c,
	src/rasqal_rowsource.c, src/rasqal_rowsource_rowsequence.c,
	src/rasqal_rowsource_sort.c, src/rasqal_variable.c,
	src/rdql_lexer.l, src/rdql_parser.y, src/sparql_lexer.l,
	src/sparql_parser.y, utils/roqet.c:
	Replace #ifdef RAPTOR_V2_AVAILABLE with #ifdef HAVE_RAPTOR2_API -
	controlled by configure --enable-raptor2

	* src/rasqal_general.c:
	(rasqal_world_set_log_handler): Enable with HAVE_RAPTOR2_API

	* src/rasqal_query.c: Stub out raptor1 error handler functions.

	(rasqal_query_set_fatal_error_handler,
	rasqal_query_set_error_handler, rasqal_query_set_warning_handler):
	Declare as stubs

	* src/rasqal.h.in: When HAVE_RAPTOR2_API, declare raptor1 APIs with
	void* arg

	* configure.ac, src/rasqal.h, src/rasqal.h.in: Define
	HAVE_RAPTOR2_API subst var and alter API depending on raptor2
	availability

	* configure.ac: Add --enable-raptor configure arg

	Raptor2 is only considered if --enable-raptor2 is given to
	configure.  When raptor2 is present and sufficient, #define
	HAVE_RAPTOR2_API and add automakefile variable RAPTOR2

	* src/rasqal_datetime.c, src/rasqal_decimal.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_table.c,
	src/rasqal_general.c, src/rasqal_literal.c, src/rasqal_raptor.c,
	src/rasqal_row.c, src/rasqal_variable.c,
	src/rasqal_xsd_datatypes.c, src/rdql_lexer.l, src/sparql_lexer.l: 
	code style: replace strncpy with memcpy - never need strncpy
	zero-checking/filling semantics.

	* src/rasqal_raptor.c: Update to latest raptor_term blank field
	structure.

2010-05-03  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_algebra.c, src/rasqal_engine.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_table.c,
	src/rasqal_graph_pattern.c, src/rasqal_internal.h,
	src/rasqal_map.c, src/rasqal_query.c, src/rasqal_query_results.c,
	src/rasqal_query_transform.c, src/rasqal_result_formats.c,
	src/rasqal_row.c, src/rasqal_rowsource.c,
	src/rasqal_rowsource_rowsequence.c, src/rasqal_rowsource_sort.c,
	src/rasqal_variable.c, src/rdql_parser.y, src/sparql_parser.y,
	utils/roqet.c: Ported to raptor2 head - funcptr typedef changes

2010-04-24  Dave Beckett <dave@dajobe.org>

	* src/rasqal_data_graph.c, src/rasqal_decimal.c, src/rasqal_expr.c,
	src/rasqal_general.c, src/rasqal_literal.c, src/rasqal_map.c,
	src/rasqal_prefix.c, src/rasqal_query.c,
	src/rasqal_query_results.c, src/rasqal_result_formats.c,
	src/rasqal_row.c, src/rasqal_rowsource.c, src/rasqal_triple.c,
	src/rasqal_variable.c: Make all rasqal destructors simply return
	when given a NULL object pointer.  They mostly did this already -
	just remove macros to make it obvious.

	* src/rasqal_graph.c: Mark autodocs as INTERNAL

2010-04-16  Dave Beckett <dave@dajobe.org>

	* src/rasqal_query_results.c, src/rasqal_result_formats.c: autodocs
	noting that formatting query results drains them

2010-04-14  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_format_table.c:
	(rasqal_query_results_write_table_bindings): Made function compile
	on raptor2 again.

2010-04-13  Dave Beckett <dave@dajobe.org>

	* docs/tmpl/section-expression.sgml, docs/tmpl/section-general.sgml: 
	Updated docbook tmpls

	* src/rasqal.h: rasqal_expression_s autodocs

	* src/rasqal.h: autodocs

	* src/rasqal.h: autodocs

	* src/rasqal.h: autodocs

	* docs/rasqal-sections.txt: Added new funcs

	* docs/rasqal-sections.txt, src/rasqal.h, src/rasqal_literal.c: 
	rasqal_literal_equals_flags is internal

	* docs/rasqal-sections.txt: remove unused unused raptor world tokens

	* docs/rasqal-sections.txt: Added rasqal_new_function_expression2

	* src/rasqal.h: rasqal_compare_flags: autodocs do not refer to
	internal funcs

	* docs/rasqal-sections.txt: Add rasqal_literal_equals_flags

	* docs/rasqal-sections.txt: Add new funcs
	rasqal_world_set_generate_bnodeid_handler
	rasqal_world_set_default_generate_bnodeid_parameters

	* src/rasqal_literal.c:
	(rasqal_new_string_literal): autodocs do not link to internal
	rasqal_literal_string_to_native

	* src/rasqal_format_table.c:
	(rasqal_query_results_write_table_bindings): Remove unused query
	var.

2010-04-12  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Pack local vars in union to save
	some stack.

	* src/rasqal_format_table.c: #ws

2010-04-11  Dave Beckett <dave@dajobe.org>

	* RELEASE.html: 0.9.20 notes

2010-04-11  Nicholas J Humfrey <njh@aelius.com>

	* src/rasqal_format_table.c: Added boolean result support to the
	Table results format.

2010-04-06  Lauri Aalto <laalto@iki.fi>

	* configure.ac, rasqal.pc.in: Proper pkg-config dependencies when
	built with raptor2.

	* configure.ac: Support configuring with raptor2. Prefer installed
	raptor2 over raptor v1.

	* utils/Makefile.am: Support linking with libraptor2

	* utils/roqet.c: Ported to raptor2 git head. Support
	raptor_syntax_description.

2010-03-31  Dave Beckett <dave@dajobe.org>

	* src/rasqal_query_write.c: ,

	* src/rasqal_query_write.c: write a, b not a ,b

	* src/sparql_parser.y:
	(RelationalExpression): Add IN and NOT IN

	* src/rasqal.h, src/rasqal_expr.c:
	(rasqal_new_set_expression): Added for expr IN/NOT-IN list ops

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/in1.rq: Add
	IN test

	* src/rasqal_format_sv.c: T is for TAB

	* src/rasqal_query_write.c:
	(rasqal_query_write_sparql_expression): Emit DISTINCT for func

	* src/rasqal_query_write.c:
	(rasqal_query_write_sparql_variable): Write ( expr AS var )

	* tests/laqrs/syntax/count2.rq, tests/laqrs/syntax/count4.rq:
	Update expr AS Var format

	* src/rasqal_expr.c:
	(rasqal_new_function_expression_common): Fix arg test

	* configure.ac: fix raptor version test check

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Implement executing of IN and NOT IN

	* src/rasqal_expr.c, src/rasqal_query_write.c: Added expression
	handling for IN and NOT IN - no executing yet.

	(rasqal_expression_clear, rasqal_expression_evaluate,
	rasqal_expression_write, rasqal_expression_print,
	rasqal_expression_is_constant,
	rasqal_query_write_sparql_expression): Added support for IN and
	NOT IN

	(rasqal_expression_visit): Added support for IN and NOT IN;
	adjusted checking of result values for other forms to ensure visit
	is truncated on a return value of non-0

	* src/rasqal.h: Added expression enums for IN and NOT IN
	expressions rasqal_op gains RASQAL_EXPR_IN and RASQAL_EXPR_NOT_IN

	* src/sparql_lexer.l, src/sparql_parser.y: Add NOT and IN tokens
	to sparql lexer and parser

2010-03-30  Dave Beckett <dave@dajobe.org>

	* tests/laqrs/syntax/explain.rq: Adjust to require () around
	renamed vars

	* src/sparql_parser.y: Accept ( Expr AS Var ) with required braces
	in select and group by

	(SelectTerm): SelectExpression does not include ()s

	(SelectExpression): Remove optional ()s

	(GroupCondition): Accept ( Expr AS Var ) and store expression in
	var field expression.  Not totally a good idea, should be a new
	rename expression probably.

	* tests/laqrs/syntax/avg1.rq, tests/laqrs/syntax/coalesce1.rq,
	tests/laqrs/syntax/count1.rq, tests/laqrs/syntax/count3.rq,
	tests/laqrs/syntax/coverage.rq, tests/laqrs/syntax/group-by1.rq,
	tests/laqrs/syntax/max1.rq, tests/laqrs/syntax/min1.rq,
	tests/laqrs/syntax/sum1.rq: Update rename expr as var syntax from
	latest SPARQL 1.1 draft

	* src/sparql_parser.y:
	(GroupCondition): Do not free unused variable $3 - not owned here.

	* src/rasqal_query_transform.c: Support finding mentioned
	variables in GROUP BY

	(rasqal_query_expression_build_variables_use_map): Renamed from
	rasqal_query_filter_build_variables_use_map_in_internal

	(rasqal_query_graph_pattern_build_variables_use_map): Rename as
	above for FILTER expression.

	(rasqal_query_expression_build_variables_use_map_row): Renamed
	from rasqal_expression_expr_build_variables_use_map_row

	(rasqal_query_build_expressions_sequence_use_map_row) Lose unused
	query arg.

	(rasqal_query_build_variables_use_map): Tidy code and implement
	finding mentioned vars in list of GROUP BY expressions. Does not
	yet find declared EXPR as Var since SPARQL parser doesn't store it
	anywhere yet.

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/group-by1.rq:
	Add group-by1.rq for group by conditions

	* src/sparql_parser.y:
	(GroupClauseOpt): Do not add group asc/desc to group conditions
	list.

	* src/rasqal_expr.c:
	(rasqal_new_0op_expression): Remove RASQAL_EXPR_GROUP_COND_ASC and
	RASQAL_EXPR_GROUP_COND_DESC from autodocs

	* src/rasqal.h: Mark RASQAL_EXPR_GROUP_COND_ASC and
	RASQAL_EXPR_GROUP_COND_DESC as obsolete.

	* src/sparql_parser.y: Update for GroupCondition rules.

	(GroupConditionList): Added list of GroupCondition.

	(GroupCondition): Added.  FIXME: what does Expression AS Var mean
	in GROUP BY?

	(GroupClauseOpt): Now a list of GroupConditionList

	* src/sparql_parser.y: Implement GROUP_CONCAT and SAMPLE and
	update other builtin agg functions.

	(AggregateExpression): Added group concat and sample.

	(ExpressionOrStar): Added pulled out of CountAggregateExpression.

	(CountAggregateExpression): Simplified duplicate code handling an
	expression and * in one place.  Use
	rasqal_new_aggregate_function_expression() and set distinct flags.

	(SumAggregateExpression, AvgAggregateExpression,
	MinAggregateExpression, MaxAggregateExpression): Use
	rasqal_new_aggregate_function_expression() and set distinct flags.

	(GroupConcatAggregateExpression, SampleAggregateExpression): Added
	using rasqal_new_aggregate_function_expression() and setting
	distinct flags.

	* src/rasqal.h, src/rasqal_expr.c: Add
	rasqal_new_aggregate_function_expression() for built-in aggregate
	functions

	(rasqal_new_function_expression_common): Added internal function
	based on core of rasqal_new_function_expression2 and taking
	optional arg1 rasqal_expression for internal aggregate functions.

	(rasqal_new_function_expression2): Rewritten in terms of
	rasqal_new_function_expression_common.

	(rasqal_new_aggregate_function_expression):
	Added.  based on rasqal_new_function_expression_common.

	* src/rasqal.h: autodocs

	* src/sparql_lexer.l:
	(sparql_token_print): Handle GROUP_CONCAT and SAMPLE tokens

	* src/rasqal_expr.c, src/rasqal_query_write.c: Added expression
	class suport for group_concat() and sample()

	(rasqal_expression_clear, rasqal_expression_visit,
	rasqal_expression_write, rasqal_expression_print,
	rasqal_expression_is_constant,
	rasqal_query_write_sparql_expression): Add support for
	RASQAL_EXPR_SAMPLE and RASQAL_EXPR_GROUP_CONCAT.

	(rasqal_expression_evaluate): Add placeholders for group_concat()
	and sample() evaluation.  Do they have any meaning for
	non-aggregate function evaluation?

	* src/rasqal.h:
	Added RASQAL_EXPR_GROUP_CONCAT and
	RASQAL_EXPR_SAMPLE for SPARQL 1.1 agg functions.

	* src/sparql_parser.y: Added optional DISTINCT for built-in
	aggregate functions, setting bitflags.

	(%union): Added uninteger unsigned int for flags.

	(DistinctOpt): Moved earlier

	(CountAggregateExpression, SumAggregateExpression,
	AvgAggregateExpression, MinAggregateExpression,
	MaxAggregateExpression, FunctionCall): Add DistinctOpt and set
	expression flags if present.

	* src/rasqal.h: Added rasqal_expression_flags for
	rasqal_expression bitflags

	* src/rasqal_expr.c: #ws

	* tests/laqrs/syntax/agg-function-1.rq,
	tests/laqrs/syntax/agg-function1.rq: Rename test

	* tests/laqrs/syntax/Makefile.am,
	tests/laqrs/syntax/agg-function-1.rq: Test agg function with zero
	params

	* tests/laqrs/syntax/function-distinct1.rq: Update to latest draft
	aggregate function syntax; note example is not real.

	* src/sparql_parser.y: Start to handle latest draft aggregate
	function style (DISTINCT + parameters)

2010-03-29  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y:
	(FunctionCall): Use rasqal_new_function_expression2

	* src/rasqal.h, src/rasqal_expr.c: Added support for sparql 1.1
	function parameters and flags.

	(rasqal_new_function_expression2): Added.

	(rasqal_new_function_expression): Deprecated for above

	* src/sparql_parser.y: Add support for function with optional
	DISTINCT.

	(DistinctOpt): Added, returning boolean (integer) flag.

	(FunctionCall): Add new clause for DISTINCT

	* tests/laqrs/syntax/Makefile.am,
	tests/laqrs/syntax/function-distinct1.rq: Added test for function
	with DISTINCT for sparql 1.1

	* src/sparql_parser.y: Add ArgList including braces, rename old
	ArgList to ArgListNoBraces.

2010-03-28  Dave Beckett <dave@dajobe.org>

	* rasqal.spec.in: Updates based on fedora spec - not tested.

2010-03-24  Dave Beckett <dave@dajobe.org>

	* src/rasqal_format_html.c, src/rasqal_internal.h: Rewrite in
	RAPTOR V2 API terms with raptor_xml_escape_string_write

	Add raptor_xml_escape_string_write for Raptor V1 to older
	function.

	* src/rasqal_format_html.c: code style

	* src/Makefile.am, src/rasqal_format_html.c,
	src/rasqal_internal.h, src/rasqal_result_formats.c: Add HTML Table
	results format Applied patch from
	http://bugs.librdf.org/mantis/view.php?id=360

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Implement RASQAL_EXPR_IF

	* tests/laqrs/syntax/if1.rq: turn into a constant IF expr that can
	be evaluated at parse time

	* configure.ac, src/rasqal.h: Update minimum raptor to 1.4.19 so
	that raptor_world typedef is always available

2010-03-23  Lauri Aalto <laalto@iki.fi>

	* src/rasqal.h: Use RAPTOR_V2_AVAILABLE instead of
	RAPTOR_WORLD_DECLARED (no longer available) to decide whether to
	declare raptor_world type

	* src/rasqal_xsd_datatypes.c: Fixed gcc4 warnings about using a
	char where an int is required

	* src/sparql_parser.y:
	(LoadQuery): Allow DEFAULT graphs i.e. NULL graph_uri.

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Use raptor_world not rasqal_world
	for raptor_new_uri()

2010-03-22  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y:
	(UpdateQuery): Handle WITH URI INSERT DATA

	* src/rasqal.h: Record deprecated bnodeid functions.Adjust
	macros.

	Add RASQAL_DEPRECATED for
	rasqal_query_set_default_generate_bnodeid_parameters and
	rasqal_query_set_generate_bnodeid_handler.  If
	RASQAL_DISABLE_DEPRECATED is defined, remove all deprecated
	prototypes and typedefs.

	* src/sparql_parser.y: Handle LOAD ... list of DocUris... (INTO
	GraphUri)

	(IriRefList): Added to build a raptor_sequence of raptor_uri

	(LoadQuery): Use IriRefList to iterate over doc uris and make an
	update operation for each of them.  This may not correspond to the
	actual sparql update semantics, to be determined. If the list-load
	is one operation, it will need a rasqal_update_operation API
	change

	* src/sparql_parser.y: Handle updated SPARQL 1.1 update draft
	syntax removing GRAPH keyword in update operations, adding DEFAULT
	keyword

	* src/sparql_lexer.l: Added DEFAULT token

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): RASQAL_EXPR_BNODE fix for no arg.

	* src/rasqal_expr.c: Handle BNODE() with NULL expression arg.

	(rasqal_expression_clear, rasqal_expression_visit,
	rasqal_expression_evaluate, rasqal_expression_write,
	rasqal_expression_print, rasqal_expression_is_constant): Handle
	optional arg1 for RASQAL_EXPR_BNODE.

	* src/rasqal.h, src/rasqal_general.c, src/rasqal_internal.h,
	src/rasqal_query.c: Move generate blank node ID functionality to
	world class and deprecate query class methods

	rasqal_generate_bnodeid_handler2 added handler typedef taking world
	arg.

	rasqal_world gains bnodeid generating parameter fields and
	handler/user data fields.

	rasqal_query loses the bnodeid generating parameter fields,
	renamed to unused1-3.

	(rasqal_world_set_default_generate_bnodeid_parameters,
	rasqal_world_set_generate_bnodeid_handler): Added

	(rasqal_query_set_default_generate_bnodeid_parameters): Deprecated
	for rasqal_world_set_default_generate_bnodeid_parameters and now
	is a wrapper for it.

	(rasqal_query_set_generate_bnodeid_handler): Deprecated but still
	has to be stored since handler signature is not the same as new
	rasqal_generate_bnodeid_handler2
	typedef.

	(rasqal_query_generate_bnodeid): Prefer world bnodeid handler,
	then query handler, then world generate bnodeid functionality.

	* src/rasqal_general.c: Renamed some internal functions

	(rasqal_query_default_generate_bnodeid_handler): Renamed from
	rasqal_default_generate_bnodeid_handler

	* src/rasqal_general.c: autodocs

	* src/rasqal.h, src/rasqal_expr.c: Fix rasqal_expression_visit,
	rasqal_graph_pattern_visit_fn and rasqal_expression_visit_fn docs
	to match code

	* src/sparql_parser.y:
	(BuiltInCall): Handle BNODE() and BNODE(expr)

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/bnode2.rq:
	Add test for BNODE() with no args

	* tests/sparql/update/Makefile.am, tests/sparql/update/clear-4.rq,
	tests/sparql/update/insert-data-2.rq,
	tests/sparql/update/insert-data-3.rq,
	tests/sparql/update/insert-data-4.rq,
	tests/sparql/update/load-3.rq, tests/sparql/update/load-4.rq:
	Added laqrs / SPARQL 1.1 update draft syntax examples from

	http://lists.w3.org/Archives/Public/public-rdf-dawg/2010JanMar/0569.html

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/bnode1.rq,
	tests/laqrs/syntax/strdt1.rq, tests/laqrs/syntax/strdt2.rq: Update
	laqrs tests for bnode() and strdt()

	* src/rasqal_expr.c: Implement expression evaluation for IRI, URI,
	STRLANG, STRDT, BNODE.

	(rasqal_expression_evaluate): Implement RASQAL_EXPR_IRI,
	RASQAL_EXPR_URI, RASQAL_EXPR_STRLANG, RASQAL_EXPR_STRDT and
	RASQAL_EXPR_BNODE.

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/bnode1.rq,
	tests/laqrs/syntax/if1.rq, tests/laqrs/syntax/iri1.rq,
	tests/laqrs/syntax/strdt1.rq, tests/laqrs/syntax/strlang1.rq,
	tests/laqrs/syntax/uri1.rq: Add LAQRS tests for new LAQRS (draft
	SPARQL 1.1) expressions

	* src/rasqal_expr.c, src/rasqal_query_write.c: Add expression
	support for STRLANG, STRDT, IF, URI, IRI and BNODE.

	(rasqal_expression_clear, rasqal_expression_visit,
	rasqal_expression_write, rasqal_expression_print,
	rasqal_expression_is_constant,
	rasqal_query_write_sparql_expression): Added cases for new
	expressions.  rasqal_op_labels and rasqal_sparql_op_labels gain
	labels for new tokens.

	(rasqal_expression_evaluate): Added dummy support for these
	expressions, causing a fatal error.

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL
	lexer/parser for STRLANG, STRDT, IF, IRI, URI and BNODE.

	* src/rasqal.h: Added operations for IF, URI, IRI, STRLANG, STRDT
	and BNODE expressions.

	rasqal_op gains RASQAL_EXPR_IF, RASQAL_EXPR_URI, RASQAL_EXPR_IRI,
	RASQAL_EXPR_STRLANG, RASQAL_EXPR_STRDT and RASQAL_EXPR_BNODE

2010-03-22  Lauri Aalto <laalto@iki.fi>

	* utils/roqet.c: Ported to raptor2 git head.
	raptor_parser_get_option_count() -> raptor_option_get_count()

2010-03-06  Dave Beckett <dave@dajobe.org>

	* src/rasqal.h: Note datetime does not write to literal value

	* src/rasqal_internal.h: Added prototypes for
	rasqal_xsd_date_check and rasqal_xsd_date_string_to_canonical

	* src/rasqal_datetime.c: Adjust normalized xsd:date - no trailing
	Z

	* src/rasqal_datetime.c: Fix
	rasqal_xsd_datetime_parse_and_normalize_common() for dates.  Add
	tests.

	(rasqal_xsd_datetime_parse_and_normalize_common): Handle day in
	common code and allow xsd:date to terminate on Z or +/- timezone.

	(rasqal_xsd_date_to_string): Terminate in Z Add test framework for
	xsd:date and adjust dateTime tests to check timezones with dates
	that canonicalize to a different date.

	* src/rasqal_datetime.c:
	(main): Rename d var to dt for dateTime

	* src/rasqal_datetime.c:
	Add rasqal_xsd_date and xsd:date check,
	normalization functions rasqal_xsd_date added based on y/m/d from
	rasqal_xsd_dateTime

	(rasqal_xsd_date_parse_and_normalize): Added calling
	rasqal_xsd_datetime_parse_and_normalize_common and copying the
	result fields over on success.

	(rasqal_xsd_date_to_string): Added.

	(rasqal_xsd_date_string_to_canonical): Added.

	(rasqal_xsd_date_check): Added.

	* src/rasqal_datetime.c:
	Start letting rasqal_xsd_datetime_parse_and_normalize_common()
	handle date

	(rasqal_xsd_datetime_parse_and_normalize_common): Renamed from
	rasqal_xsd_datetime_parse_and_normalize and takes is_dateTime
	boolean arg.  If set, checks hour, mins, secs and fractions of
	secs, otherwise sets that to 12:00:00.00 for
	xsd:date.

	(rasqal_xsd_datetime_parse_and_normalize): Call
	rasqal_xsd_datetime_parse_and_normalize_common with flag set.

	* src/rasqal_datetime.c: code style

2010-03-04  Dave Beckett <dave@dajobe.org>

	* NEWS.html, configure.ac, src/rasqal.h:
	Bumped version to 0.9.20

	* tests/sparql/bugs/352-result.ttl, tests/sparql/bugs/352.rq,
	tests/sparql/bugs/352.ttl, tests/sparql/bugs/Makefile.am,
	tests/sparql/bugs/manifest.ttl: Add tests for bug 352

	* docs/tmpl/section-general.sgml, docs/tmpl/section-literal.sgml:
	Update doc tmpls

	* docs/rasqal-sections.txt:
	Add rasqal_world_set_log_handler

	* tests/sparql/.gitignore, tests/sparql/bugs/354-result.ttl,
	tests/sparql/bugs/354.nt, tests/sparql/bugs/354.rq,
	tests/sparql/bugs/Makefile.am, tests/sparql/bugs/manifest.ttl: Add
	sparql bugs dir

	* configure.ac, tests/sparql/Makefile.am: Add bugs test area and
	test for Issue#0000354

	* src/rasqal_xsd_datatypes.c: code style

	* src/rasqal.h, src/rasqal_format_json.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_sv.c,
	src/rasqal_literal.c, src/rasqal_query_results.c,
	src/rasqal_query_write.c, src/rasqal_xsd_datatypes.c:
	Added literal type RASQAL_LITERAL_INTEGER_SUBTYPE to let subtypes
	of xsd:integer work.

	rasqal_literal_type gains (internal)
	RASQAL_LITERAL_INTEGER_SUBTYPE to handle literals that are
	sub-types of xsd:integer - so their parent is always
	RASQAL_LITERAL_INTEGER and for all other purposes, act as integer.

	(rasqal_literal_set_typed_value): If type is
	RASQAL_LITERAL_INTEGER_SUBTYPE, do not rewrite the datatype URI
	based on the literal type, but assume URI already there and parent
	type are correct.

	(rasqal_xsd_datatype_uri_to_type): Recognize when a type URI is
	found that is a subtype of xsd:integer, set literal type to
	RASQAL_LITERAL_INTEGER_SUBTYPE.

	(rasqal_xsd_datatype_is_numeric): Accept
	RASQAL_LITERAL_INTEGER_SUBTYPE as a numeric type.

	(rasqal_xsd_datatype_parent_type): Return RASQAL_LITERAL_INTEGER
	as parent type for RASQAL_LITERAL_INTEGER_SUBTYPE.

	Update all literal type switches to use
	RASQAL_LITERAL_INTEGER_SUBTYPE as RASQAL_LITERAL_INTEGER.

	* src/rasqal_xsd_datatypes.c:
	code style

2010-03-02  Lauri Aalto <laalto@iki.fi>

	* src/rasqal.h, src/rasqal_format_sparql_xml.c,
	src/rasqal_general.c, src/rasqal_internal.h, src/rasqal_query.c,
	utils/roqet.c:
	Ported to raptor2 git head while retaining support for raptor1.
	
	(rasqal_query_set_fatal_error_handler,
	rasqal_query_set_error_handler, rasqal_query_set_warning_handler):
	Flagged out for raptor2. Use rasqal_world_set_log_handler()
	instead.
	
	(rasqal_world_set_log_handler): Added new API function for raptor2
	only. 
	
	(rasqal_rowsource_sparql_xml_context): Flagged out error_handlers.
	Not needed with raptor2.
	
	(rasqal_query_results_get_rowsource_sparql_xml): No need to init
	error_handlers. raptor2 raptor_new_sax2() takes a raptor_locator*,
	not error_handlers containing raptor_locator*.
	
	(rasqal_world_open): Flagged out error_handlers magic.
	
	(rasqal_log_error_varargs): Support raptor2 raptor_log_messages and
	raptor_log_handlers.
	
	(rasqal_log_error): Removed unused internal function declaration.
	
	(rasqal_world_s): Flagged out error_handlers. Added support for
	raptor_log_handlers.
	
	(roqet_log_handler): Added.
	
	(main): Use raptor2 log_handler in roqet.

2010-02-28  Dave Beckett <dave@dajobe.org>

	* src/rasqal_query_results.c: Check for limit and offsets when
	reading incremental query results

	(rasqal_query_results_ensure_have_row_internal): When calling the
	execution factory get_row() method, check the query result limit
	and offsets are met and select a subsequence of the returned
	results.

	Intended to address Issue#000352 but may also be better done with
	other changes to QE1 to remove it's duplicate limit/offset
	checking in favour of this check.

2010-02-23  Dave Beckett <dave@dajobe.org>

	* src/rasqal_internal.h: Declare
	rasqal_escaped_name_to_utf8_string with printf format arg.

2010-02-22  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_general.c, src/rasqal_internal.h, src/rdql_lexer.l,
	src/sparql_lexer.l: raptor2 raptor_unicode_utf8_string_put_char(),
	raptor_unicode_utf8_string_get_char()

2010-02-21  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_algebra.c, src/rasqal_format_sparql_xml.c,
	src/rasqal_general.c, src/rasqal_query.c, src/rasqal_query_test.c,
	src/rasqal_raptor.c, src/rasqal_row.c,
	src/rasqal_rowsource_triples.c, src/rasqal_xsd_datatypes.c,
	src/rdql_lexer.l, src/rdql_parser.y, src/sparql_lexer.l,
	src/sparql_parser.y, tests/algebra/convert_graph_pattern.c,
	tests/engine/rasqal_construct_test.c,
	tests/engine/rasqal_graph_test.c,
	tests/engine/rasqal_limit_test.c,
	tests/engine/rasqal_order_test.c,
	tests/engine/rasqal_triples_test.c, utils/roqet.c: raptor2
	raptor_new_uri() with preprocessor macro for raptor1 compatibility

	* src/rasqal_algebra.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c,
	src/rasqal_rowsource.c, tests/algebra/convert_graph_pattern.c,
	utils/roqet.c: raptor2 raptor_new_iostream_to_file_handle() with
	preprocessor macro for raptor1 compatibility

	* src/rasqal_format_json.c, src/rasqal_format_sv.c,
	src/rasqal_internal.h, src/rasqal_literal.c,
	src/rasqal_query_write.c, src/sparql_parser.y: raptor2
	raptor_string_ntriples_write() with preprocessor macro for raptor1
	raptor_iostream_write_string_ntriples() compatibility

	* src/rasqal_feature.c, src/rasqal_general.c,
	src/rasqal_internal.h, src/rasqal_xsd_datatypes.c: raptor2
	raptor_new_uri_from_uri_local_name() with preprocessor macro for
	raptor1 compatibility

	* src/rasqal_expr.c, src/rasqal_internal.h, src/rasqal_query.c,
	src/rasqal_query_results.c, src/rasqal_query_transform.c,
	src/rdql_parser.y, src/sparql_parser.y: raptor2
	RAPTOR_LOG_LEVEL_WARN with preprocessor macro for raptor1
	compatibility

	* src/rasqal_general.c, src/rasqal_internal.h:
	raptor_unicode_decode_utf8_char() ->
	raptor_unicode_utf8_string_get_char()

2010-02-19  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_algebra.c, src/rasqal_expr.c,
	src/rasqal_format_json.c, src/rasqal_format_sparql_xml.c,
	src/rasqal_format_sv.c, src/rasqal_format_table.c,
	src/rasqal_general.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c,
	src/rasqal_query_write.c, src/rasqal_rowsource.c,
	src/rasqal_triple.c, src/rasqal_variable.c, src/sparql_parser.y,
	tests/algebra/convert_graph_pattern.c:
	Ported to raptor2 git head.
	  - raptor_iostream_*()  
	  - raptor_uri_write()
	  - raptor_new_qname_from_namespace_local_uri()

	Use preprocessor defines to maintain compatibility with raptor1. 

2010-02-18  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_literal.c:
	(rasqal_literal_print): DRY: Use rasqal_literal_write().

	(rasqal_literal_print_type): DRY: Use rasqal_literal_write_type().

	(rasqal_literal_write): raptor2
	raptor_iostream_write_string_ntriples() ->
	raptor_string_ntriples_write()

	* utils/roqet.c:
	updated roqet.c to compile on raptor2 git head

	* src/sparql_parser.y:
	(rasqal_sparql_query_language_iostream_write_escaped_counted_string):
	raptor2 raptor_iostream_write_string_ntriples() ->
	raptor_string_ntriples_write()

	* src/rasqal_format_json.c, src/rasqal_format_sv.c:
	(rasqal_query_results_write_json1,rasqal_query_results_write_sv):
	raptor2 raptor_iostream_write_string_ntriples() ->
	raptor_string_ntriples_write()

	* src/rasqal_query_write.c:
	(rasqal_query_write_sparql_uri,rasqal_query_write_sparql_literal):
	raptor2 raptor_iostream_write_qname() -> raptor_qname_write(),
	raptor_iostream_write_string_ntriples() ->
	raptor_string_ntriples_write()

	* src/rasqal_raptor.c:
	(ordinal_as_uri): Flagged out function needed only with raptor1

	* src/rasqal_raptor.c:
	(rasqal_raptor_new_triples_source): raptor2 raptor_parse_uri() ->
	raptor_parser_parse_uri()

2010-02-16  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_result_formats.c:
	(rasqal_query_results_formatter_write): NULL base_uri is valid.

	* src/fix-bison: Removed fix-bison %destructor hack.  Was required
	to get the raptor_world* param to raptor_free_uri() - no longer
	needed.

2010-02-15  Dave Beckett  <dave@dajobe.org>

	* Snapshotted rasqal_0_9_19 for 0.9.19 release

	* NEWS.html, RELEASE.html, configure.ac, src/rasqal.h: 0.9.19

	* rasqal.pc.in:
	Restore Requires: raptor ...

	* README.html: GIT

2010-02-14  Dave Beckett  <dave@dajobe.org>

	* Snapshotted rasqal_0_9_18 for 0.9.18 release

	* utils/Makefile.am: Add -lraptor to internal linking of utility
	and example programs.

	Added -lraptor to linking roqet, srxread and srxwrite so that on
	systems where indirect library symbols (here in libraptor) are not
	automatically found by looking up the base library (here
	librasqal), the programs work.  This should not affect user
	programs that link with rasqal since they use
	  pkg-config rasqal --libs
	or
	  rasqal-config --libs
	both of which add -lraptor.

	See also
	  Fedora bug 564885 for rasqal
	  https://bugzilla.redhat.com/show_bug.cgi?id=564885
	nd
	  http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
	  https://fedoraproject.org/wiki/UnderstandingDSOLinkChange

	Fixes Issue#0000347 http://bugs.librdf.org/mantis/view.php?id=347

2010-02-13  Dave Beckett <dave@dajobe.org>

	* src/rasqal.h:
	reorder to put query results methods together

	* src/rasqal_general.c: 2010

2010-02-12  Dave Beckett <dave@dajobe.org>

	* src/rasqal.h:
	reorder to group query_results functions

	* src/rasqal_literal.c:
	(rasqal_literal_as_node): Return NULL rather than reswitch and die.

	* src/rasqal_literal.c: autodocs

	* src/rasqal_literal.c:
	(rasqal_literal_as_node): Let reswitch - variable values return
	a NULL value for an unbound variable.

	* src/sparql_lexer.l:
	(sparql_copy_string_token): copy language NUL

	* src/sparql_lexer.l: code style

	* src/rdql_lexer.l: code style

	* src/rasqal_prefix.c: add includes

	* src/Makefile.am: Add rasqal_prefix.c to lib

	* src/rasqal_result_formats.c: code style

	* src/rasqal_expr.c, src/rasqal_prefix.c: Move rasqal_prefix
	class to rasqal_prefix.c

	* src/Makefile.am, src/rasqal_data_graph.c, src/rasqal_expr.c:
	Move rasqal_data_graph class to rasqal_data_graph.c

	* src/Makefile.am, src/rasqal_expr.c, src/rasqal_triple.c:
	Move rasqal_triple class to rasqal_triple.c

	* ChangeLog, ChangeLog.7, Makefile.am: Add ChangeLog.7 for 2009

	* .gitignore: do not ignore ChangeLog

2010-02-12  Lauri Aalto <laalto@iki.fi>

	* .gitignore: ignore *.stackdump files

	* src/rasqal_general.c: raptor2 compatible rasqal_log_level_labels

	* src/rasqal_query_results.c:
	(rasqal_query_results_get_triple): break out of switch properly
	with raptor2.

	* tests/algebra/convert_graph_pattern.c,
	tests/engine/rasqal_construct_test.c,
	tests/engine/rasqal_graph_test.c,
	tests/engine/rasqal_limit_test.c,
	tests/engine/rasqal_order_test.c,
	tests/engine/rasqal_triples_test.c: Ported test code to raptor2
	git HEAD with RAPTOR_V2_AVAILABLE flagging.

	* src/rasqal_algebra.c: raptor2 raptor_new_sequence()
	compatibility in test code.

	* utils/roqet.c: Ported roqet to raptor2 git HEAD with
	RAPTOR_V2_AVAILABLE flagging.

	* src/rdql_lexer.l, src/rdql_parser.y: RDQL parser/lexer:
	raptor2 raptor_uri calls

	* src/rasqal_raptor.c:
	(rasqal_raptor_new_triples_source): raptor2 statement_handler,
	generate_id_handler settings. Removed error_handler
	setting.
	(rasqal_raptor_statement_handler): Signature changed
	to accept non-const raptor_statement for raptor2.
	(rasqal_raptor_error_handler): Flagged out as unneeded with
	raptor2.

	* src/rasqal_raptor.c:
	(rasqal_raptor_error_handler): raptor2 raptor_locator_format()

	* src/rasqal_raptor.c:
	(raptor_statement_as_rasqal_triple): raptor2 compatible variant
	of the function

2010-02-11  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_raptor.c:
	(rasqal_raptor_new_triples_source): raptor2 raptor_new_parser()
	call

	* src/rasqal_algebra.c, src/rasqal_expr.c,
	src/rasqal_format_json.c, src/rasqal_format_sparql_xml.c,
	src/rasqal_format_sv.c, src/rasqal_general.c, src/rasqal_query.c,
	src/rasqal_query_test.c, src/rasqal_query_write.c,
	src/rasqal_result_formats.c, src/rasqal_row.c,
	src/rasqal_rowsource.c, src/rasqal_rowsource_graph.c,
	src/rasqal_rowsource_rowsequence.c, src/rasqal_rowsource_sort.c,
	src/rasqal_rowsource_triples.c, src/rasqal_variable.c,
	src/rasqal_xsd_datatypes.c, src/rdql_lexer.l, src/rdql_parser.y,
	src/sparql_lexer.l, src/sparql_parser.y: Work-in-progress to make
	rasqal compile with raptor2 git HEAD (with RAPTOR_V2_AVAILABLE
	defined).

	Changed RAPTOR_LOG_LEVEL_WARNING to RAPTOR_LOG_LEVEL_WARN

	Changed function call args:
	 * raptor_uri calls
	 * raptor_print_locator() -> raptor_locator_print()
	 * raptor_new_sequence():
	   raptor_sequence_{free,print}_handler -> raptor_data_..._handler
	 * raptor_qname_string_to_uri()

	* tests/.gitignore: ignore roqet.tmp in tests

2010-02-10  Dave Beckett <dave@dajobe.org>

	* src/rasqal_literal.c:
	(rasqal_literal_divide): Make decimal division call
	rasqal_xsd_decimal_divide() not add!

	* src/Makefile.am, src/rasqal_formula.c, src/rasqal_literal.c:
	Added rasqal_formula.c for rasqal_formula class code

	* src/rasqal_variable.c: Revert
	"(rasqal_new_variable_from_variable): Do not copy NULL expression"
	This reverts commit 124173f9eddde4a57ed184ebd650418503d53e5b.

	* src/rasqal_rowsource_join.c: Revert
	"(rasqal_new_join_rowsource): Do not copy a NULL expr" This
	reverts commit f9e92a72533cd8432c78175e0d65dce3392951da.

	* src/rasqal_expr.c:
	(rasqal_new_expression_from_expression): Allow NULL arg again for
	the sake of code simplicity.

	* src/rasqal_variable.c: Revert
	"(rasqal_new_variable_from_variable): Do not try to copy NULL
	literal pointer." This reverts commit
	b1df8da1d6fadab183457ead62ab019eccde81ec.

	* src/rasqal_literal.c:
	(rasqal_new_literal_from_literal): Allow NULL arg again for the sake
	of code simplicity.

	* src/rasqal_variable.c:
	(rasqal_new_variable_from_variable): Do not try to copy NULL
	literal pointer.

	* src/rasqal_literal.c: More assertions for NULL args for literal
	class.  Tidied internal autodocs.

	* src/rasqal_literal.c:
	(rasqal_new_decimal_literal_from_decimal): Remove assertions
	already checked in code

	* src/rasqal_literal.c: casts for literal class arg checking

	* src/rasqal_internal.h, src/rasqal_literal.c,
	src/sparql_parser.y:
	
	rasqal_new_formula() gains a world arg.

	* src/rasqal_literal.c: Code style: use var = ... calloc ( ...
	sizeof(*var) )

	* docs/tmpl/section-row.sgml,
	docs/tmpl/section-variables-table.sgml: doc words

	* docs/rasqal-docs.xml, docs/rasqal-sections.txt,
	docs/tmpl/section-query_results.sgml, docs/tmpl/section-row.sgml,
	docs/tmpl/section-variable.sgml,
	docs/tmpl/section-variables-table.sgml: Update docs to add row and
	variables-table sections and new functions

	* src/rasqal_query_results.c:
	(rasqal_query_results_add_row): This is public.  autodocs and
	check params

2010-02-10  Lauri Aalto <laalto@iki.fi>

	* .gitignore: ignore .libs, *.exe

	* src/rasqal_raptor.c: raptor_uri

	* src/rasqal_query_results.c:
	(rasqal_query_results_get_triple): Construct raptor_statement
	using v2 raptor_terms.

	(rasqal_new_query_results): Init static
	raptor_statement.

	(rasqal_free_query_results): Free terms owned by static
	raptor_statement.

2010-02-09  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_algebra.c, src/rasqal_engine.c,
	src/rasqal_engine_sort.c, src/rasqal_expr.c, src/rasqal_feature.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_table.c,
	src/rasqal_general.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c, src/rasqal_map.c,
	src/rasqal_query.c, src/rasqal_query_results.c,
	src/rasqal_query_transform.c, src/rasqal_query_write.c,
	src/rasqal_raptor.c, src/rdql_lexer.l, src/sparql_lexer.l:
	
	Work-in-progress to make rasqal compile with raptor2 git HEAD (with
	RAPTOR_V2_AVAILABLE defined).

	(rasqal_escaped_name_to_utf8_string): Changed internal function
	signature to be compatible with both raptor1 and raptor2.

	(rasqal_query_results_get_triple): Construct raptor_statement
	using v2 raptor_terms.

	(rasqal_new_query_results): Init static raptor_statement.

	(rasqal_free_query_results): Free terms owned by static
	raptor_statement.

	Changed RAPTOR_LOG_LEVEL_WARNING to RAPTOR_LOG_LEVEL_WARN

	Changed function call args:
	  * raptor_new_namespaces()
	  * raptor_new_xml_writer()
	  * raptor_new_qname(), raptor_new_qname_from_namespace_local_name()
	  * raptor_qname_string_to_uri()
	  * raptor_error_handlers_init()
	  * raptor_new_sax2()
	  * raptor_new_iostream_to_string(),
	    raptor_new_iostream_to_file_handle()
	  * raptor_uri calls
	  * raptor_print_ntriples_string()
	  * raptor_new_sequence(),
	    raptor_sequence_{free,print}_handler ->  raptor_data_..._handler

	* src/rasqal_general.c, src/rasqal_internal.h, src/rdql_lexer.l,
	src/sparql_lexer.l:
	(rasqal_escaped_name_to_utf8_string): Changed internal function
	signature to be compatible with both raptor1 and raptor2.

2010-02-09  Dave Beckett <dave@dajobe.org>

	* src/rasqal_expr.c:
	(rasqal_new_prefix): Allow NULL prefix

	* src/rasqal_graph_pattern.c:
	(rasqal_new_graph_pattern_from_sequence): Allow NULL
	graph_patterns seq.

	* src/rasqal_variable.c:
	(rasqal_new_variable_from_variable): Do not copy NULL expression
	value.

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Allow locator arg to be NULL.

	* src/rasqal_rowsource_join.c:
	(rasqal_new_join_rowsource): Do not copy a NULL expr

	* src/rasqal_expr.c, src/rasqal_graph_pattern.c,
	src/rasqal_result_formats.c: Add a lot of assertions for
	validating parameters are not NULL.

	* src/rasqal_feature.c, src/rasqal_general.c,
	src/rasqal_internal.h, src/rasqal_query.c,
	src/rasqal_query_results.c: Add a lot of assertions for validating
	parameters are not NULL.

	* tests/.gitignore: Ignore test output junk

	* utils/.gitignore: Ignore example exes

	* src/rasqal_format_json.c:
	(rasqal_query_results_write_json1): Work when query is NULL and
	take world from query results.

	* src/rasqal_internal.h, src/rasqal_query_results.c: Add
	rasqal_query_results_get_world()

	* utils/Makefile.am: Add examples target

	* utils/Makefile.am: Added srxwrite example to create a query
	results via API and write it

	* utils/srxwrite.c: Added srxwrite example to create a query results
	via API and write it

	* src/rasqal_query_results.c: (rasqal_query_results_get_binding_name):
	Use variables table to get projection order if there is no query

	* src/rasqal_format_sparql_xml.c, src/rasqal_row.c: Change
	rasqal_row_set_value_at semantics to copy the passed-in literal.

	(rasqal_row_set_value_at): Free any existing literal and copy the
	literal given.  Update all callers to above semantics.

	* src/rasqal.h, src/rasqal_row.c,
	src/rasqal_rowsource_assignment.c, src/rasqal_rowsource_graph.c,
	src/rasqal_rowsource_join.c, src/rasqal_rowsource_project.c: Give
	row construct a world parameter like other constructors

	(rasqal_new_row_for_size): Gains world param.

	(rasqal_new_row_common): Gains world parameter.  Update all
	callers.

2010-02-08  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_internal.h, src/rasqal_literal.c:
	(rasqal_literal_string_to_native): Deleted error_handler, error_data
	args from internal function - not used.

	* src/rasqal_format_sparql_xml.c:
	(rasqal_query_results_get_rowsource_sparql_xml): Removed redundant
	call to raptor_sax2_set_characters_handler().

	* src/rasqal_algebra.c, src/rasqal_engine.c,
	src/rasqal_engine_sort.c, src/rasqal_format_sparql_xml.c,
	src/rasqal_format_table.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_map.c, src/rasqal_query.c,
	src/rasqal_query_results.c, src/rasqal_query_transform.c:
	
	raptor_new_sequence(), raptor_sequence_{free,print}_handler ->
	raptor_data_..._handler

	* src/rasqal_literal.c:
	raptor_qname_string_to_uri()

	* src/rasqal_literal.c:
	raptor_print_ntriples_string()

	* src/rasqal_internal.h, src/rasqal_literal.c:
	(rasqal_literal_string_to_native): Deleted error_handler, error_data
	args from internal function - not used.

	* src/rasqal_algebra.c, src/rasqal_graph_pattern.c:
	
	raptor_new_iostream_to_file_handle()

	* src/rasqal_expr.c, src/rasqal_feature.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_general.c,
	src/rasqal_literal.c, src/rasqal_query.c, src/rasqal_query_write.c:
	
	raptor_uri

	* src/rasqal_format_table.c:
	raptor_new_iostream_to_string()

	* src/rasqal_format_sparql_xml.c:
	(rasqal_query_results_get_rowsource_sparql_xml): Removed redundant
	call to raptor_sax2_set_characters_handler().

	* src/rasqal_format_sparql_xml.c:
	raptor_new_sax2()

	* src/rasqal_format_sparql_xml.c:
	raptor_error_handlers_init()

	* src/rasqal_format_sparql_xml.c:
	
	raptor_new_qname_from_namespace_local_name()

	* src/rasqal_format_sparql_xml.c:
	raptor_new_qname()

	* src/rasqal_format_sparql_xml.c:
	raptor_new_xml_writer()

	* src/rasqal_format_sparql_xml.c, src/rasqal_query.c,
	src/rasqal_query_write.c:
	raptor_new_namespaces()

	* src/rasqal_expr.c, src/rasqal_query.c,
	src/rasqal_query_results.c, src/rasqal_query_transform.c:
	
	RAPTOR_LOG_LEVEL_WARNING -> RAPTOR_LOG_LEVEL_WARN

	* src/rasqal_internal.h: raptor_simple_message_handler ->
	raptor_message_handler

2010-02-08  Dave Beckett <dave@dajobe.org>

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_variable.c: Export
	rasqal_variables_table_add to public API.

	* utils/srxread.c: Use only public API.

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_query_results.c,
	src/rasqal_row.c, src/rasqal_variable.c: Export to public API
	functions and structs to allow creating standalone results

	rasqal_variables_table added to public API (opaque struct)

	rasqal_new_variables_table() and rasqal_free_variables_table() added
	to public API to make a variables table and free it.

	rasqal_query_results_type enum added to public API for use with
	rasqal_new_query_results().

	rasqal_new_query_results() added to public API to create a static
	query result set.

	rasqal_query_results_add_row() added to public API to add a row to a
	static query result set.  Adjust to return a failure status.

	rasqal_new_row_for_size(), rasqal_free_row() and
	rasqal_row_set_value_at() added to public API to make a row with
	literal values.  Add docs plus argument and offset checking to
	rasqal_row_set_value_at().

	* utils/srxread.c: #ws

	* utils/srxread.c: Use rasqal_new_query_results_formatter2

	* docs/rasqal-docs.xml, docs/tmpl/section-data.sgml,
	docs/tmpl/section-expression.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-query_results_formatter.sgml,
	docs/tmpl/section-triple.sgml, docs/tmpl/section-updates.sgml,
	docs/tmpl/section-variable.sgml: Updated doc templates.  Added
	section updates.

	* src/rasqal.h: rasqal_update_operation - autodocs for flags

	* src/rasqal_expr.c: rasqal_prefix_print - autodocs

	* docs/rasqal-sections.txt: Add section-updates

	* src/rasqal_query_results.c: autodocs

	* src/rasqal.h, src/rasqal_query_results.c: Added query read and
	write functions with name, mime type and format args.

	(rasqal_query_results_write2, rasqal_query_results_read2): Added
	with new name and mime_type args deprecating versions without the
	2 suffix.

	* src/rasqal_query_results.c: Use
	rasqal_new_query_results_formatter2 in query results read/write
	methods.

	(rasqal_query_results_write, rasqal_query_results_read): Use
	rasqal_new_query_results_formatter2 with NULL name and mime type
	args.

	* utils/roqet.c, utils/srxread.c: Use
	rasqal_new_query_results_formatter2 in utilities

	* src/rasqal.h, src/rasqal_result_formats.c: Added
	rasqal_new_query_results_formatter2 with format name, mime type
	and URI args.

	(rasqal_new_query_results_formatter2): Added

	(rasqal_new_query_results_formatter,
	rasqal_new_query_results_formatter_by_mime_type): Deprecated for
	the above.

	* src/rasqal.h, src/rasqal_algebra.c, src/rasqal_internal.h,
	src/rasqal_literal.c, src/rasqal_map.c: Add status return code for
	literal, algebra node, map print methods.

	(rasqal_literal_print, rasqal_map_print,
	rasqal_algebra_node_print): Return int status.

	* src/rasqal_variable.c: autodocs

	* src/rasqal_expr.c: autodocs

	* src/rasqal_graph_pattern.c: autodocs

	* src/rasqal_expr.c: autodocs

	* src/rasqal_query_write.c: Update query writing for older laqrs
	insert/delete forms.

	(rasqal_query_write_sparql_20060406): Handles LAQRS INSERT/DELETE
	experimental forms.  Add comments for what SPARQL 1.1 (Draft)
	Update forms are done.

	* tests/sparql/update/Makefile.am: insert-2.rq and delete-data-2.rq
	now pass

2010-02-07  Dave Beckett <dave@dajobe.org>

	* src/rasqal_query_write.c: Format SPARQL Update 1.1 output

	(rasqal_query_write_sparql_triple_data): Added to help write
	triple data blocks - GP known to contain just triples.

	* src/sparql_parser.y: Set RASQAL_UPDATE_FLAGS_SILENT for CREATE /
	DROP SILENT

	* src/rasqal.h, src/rasqal_query.c, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Delete RASQAL_QUERY_VERB_CLEAR /
	CREATE / DROP / LOAD

	* src/sparql_parser.y: Use RASQAL_UPDATE_FLAGS_DATA to mark INSERT /
	DELETE DATA is using triples.

	* src/rasqal.h: Add RASQAL_UPDATE_FLAGS_DATA to rasqal_update_flags
	for triple data.

	* src/sparql_parser.y: Add UpdateOperationList to allow sequences of
	update operations

	* tests/sparql/update/Makefile.am: delete-2.rq passes

	* src/sparql_parser.y: (UpdateQuery): Use WhereClauseOpt to allow
	optional WHERE

	* tests/sparql/update/Makefile.am, tests/sparql/update/clear-1.rq,
	tests/sparql/update/clear-2.rq, tests/sparql/update/clear-3.rq,
	tests/sparql/update/create-1.rq, tests/sparql/update/create-2.rq,
	tests/sparql/update/delete-1.rq, tests/sparql/update/delete-2.rq,
	tests/sparql/update/delete-data-1.rq,
	tests/sparql/update/delete-data-2.rq,
	tests/sparql/update/drop-1.rq, tests/sparql/update/drop-2.rq,
	tests/sparql/update/insert-1.rq, tests/sparql/update/insert-2.rq,
	tests/sparql/update/insert-data-1.rq,
	tests/sparql/update/insert-delete-1.rq,
	tests/sparql/update/load-1.rq, tests/sparql/update/load-2.rq:
	Update tests from
	http://www.w3.org/TR/2010/WD-sparql11-update-20100126/

	* tests/sparql/update/Makefile.am,
	tests/sparql/update/delete-data-2.rq: Add delete-data-2.rq from
	http://www.w3.org/TR/2010/WD-sparql11-update-20100126/

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_update.c,
	src/sparql_parser.y: Each rasqal_update_operation can now do
	inserts and deletes in one.

	Remove update types insert, delete and merge into
	RASQAL_UPDATE_TYPE_UPDATE.

	Added enum RASQAL_UPDATE_FLAGS_SILENT for capturing SILENT from
	SPARQL update.

	rasqal_update_operation gains both an insert and delete set of
	templates.

	(rasqal_new_update_operation): Gains two templates args to replace
	one and a flags arg.  Update callers to create one
	rasqal_update_operation instead of 1 or 2.

	* src/sparql_parser.y: Moved WITH ... INSERT/DELETE ... WHERE query
	into rasqal_update_operation form

	* src/rasqal.h, src/rasqal_graph_pattern.c, src/rasqal_internal.h,
	src/rasqal_update.c, src/sparql_parser.y: Added
	rasqal_new_basic_graph_pattern_from_triples()

	(rasqal_new_basic_graph_pattern_from_triples): Added to create a
	basic graph pattern form a sequence of triples.

	* src/sparql_parser.y: improve error message for beyond SPARQL 1.0
	extensions.

	* src/sparql_parser.y: Write update operations into query updates

	Add update to lexer/parser union of type rasqal_update_operation.

	Add destructor for GraphTriples as type rasqal_update_operation

	Make all update queries return RASQAL_QUERY_VERB_UPDATE except for
	previously used RASQAL_QUERY_VERB_INSERT and
	RASQAL_QUERY_VERB_DELETE that are deprecated now.

	(GraphTriples) creates and returns an update operation.

	(InsertQuery, UpdateQuery, DeleteQuery, ClearQuery, DropQuery):
	Create updates rather than store in query structure directly.

	* src/rasqal_internal.h, src/rasqal_query.c: Remove query
	graph_uri and document_uri fields in preference to updates field.

	* src/rasqal_update.c: rasqal_new_update_operation args can be
	NULL for CLEAR.

	* src/rasqal.h, src/rasqal_update.c: Sort rasqal_update_type and
	fix labels

	* src/rasqal.h, src/rasqal_expr.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c, src/rasqal_query.c,
	src/rasqal_row.c, src/rasqal_update.c, src/rasqal_variable.c:
	Debug print methods now return int status to match
	raptor_sequence_print_handler method.

	* src/sparql_parser.y: (LoadQuery): Store document and graph URIs
	in update operations.

	* src/rasqal_update.c: cast for malloc

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_query.c: Added
	rasqal_query_add_update_operation - internal for now

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_query.c: Add
	update reading methods to query class

	(rasqal_query_get_update_operations_sequence): Added to get sequence
	of updates.

	(rasqal_query_get_update_operation): Added to get an operation from
	sequence of updates.

	rasqal_query_s gains updates sequence field.

	(rasqal_free_query): Free updates sequence.

	(rasqal_query_print): Print updates

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_update.c: Add
	document_uri to rasqal_update_operation

	* src/Makefile.am, src/rasqal.h, src/rasqal_internal.h,
	src/rasqal_update.c: Add rasqal graph update type, structure and
	object functions

	Added rasqal_update_type enum for types of graph update

	Added rasqal_update_operation for holding an individual update

	(rasqal_update_type_label): Added to get label for update type.

	(rasqal_new_update_operation, rasqal_free_update_operation): Added
	constructor and destructor for update operation.

	(rasqal_update_operation_print): Added debug print method

	* src/rasqal_query.c: Add update operations to
	rasqal_query_verb_labels

	* src/rasqal.h, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Added RASQAL_QUERY_VERB_UPDATE for
	update operations

	rasqal_query_verb gains RASQAL_QUERY_VERB_UPDATE Update switch
	statements on this type to add new case.

	* src/sparql_parser.y: Restored LAQRS old INSERT and DELETE syntax
	with deprecated warnings.

	* tests/improve: allow recursive running of a test to skip dirs
	where it isn't supported

	* tests/sparql/update/Makefile.am: Mark insert-2.rq as expected to
	fail

	* src/sparql_parser.y: Revert "Improve ConstructTemplate and
	ConstructTriples rules"

	This reverts commit f3e05dc3d465ce12677fc2daa12c80dc4ffc278e.

	Get older tests to work at the cost of new test insert-2 failing.

	* src/sparql_parser.y: debug message fix

	* src/sparql_parser.y: Improve ConstructTemplate and
	ConstructTriples rules

	Down from expect 31 shift/reduce conflicts to
	13 (ConstructTriplesRest): Added for second optional clause in
	ConstructTriples to reduce conflicts.

	* src/sparql_parser.y: Adjust comment - EXPLAIN is LAQRS, not in
	SPARQL 1.1 draft

2010-02-06  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y: Re-add SPARQL 1.1 WITH .. DELETE/INSERT
	From 5 shift/reduce conflicts to 31 shift/reduce conflicts - seems
	to be choices between two optional sequences of triples nearby.

	Add UpdateQuery option that (for now) marks it as an INSERT.

	(DeleteQuery): Switch to list of modify templates - which are
	discarded.

	(GraphTemplate): Added

	(ModifyTemplate, ModifyTemplateList): Added.

	(InsertQuery): Switch to list of modify templates - which are
	discarded.

	(UpdateQuery): Added for WITH alternatives.

	* src/sparql_parser.y: Split ConstructTriplesOpt into
	ConstructTriples and ConstructTriplesOpt

	(ConstructTriplesOpt): Moved empty case here

	(ConstructTriples): Added, calling ConstructTriplesOpt and
	handling a non-empty list of construct triples.  The above makes
	ConstructTemplate closer to the SPARQL 1.0 grammar for construct
	triples.  The difference is probably extra optional '.'s

	* src/sparql_parser.y: Revert to make existing sparql tests work

	Revert commits 83d66dd1c115b9f18b2043f13122630daad594d8
	18ce2f8f3fc61dd641068f6ff5fddc01df4106bc so that the older SPARQL
	tests work.  This makes the SPARQL 1.1 draft insert & delete forms
	tests fail.

	* tests/improve: truncate log to 15 lines only if too long

	* tests/rdql/testsuite/check-rdql: (toDebug): Discard @lang from
	"string"@lang^^datatype

	* tests/rdql/testsuite/check-rdql: #2010

	* .gitignore: Remove rdf files from top level .gitignore

	* docs/tmpl/section-query.sgml, docs/tmpl/section-variable.sgml:
	updated generated docs

	* tests/sparql/update/data.ttl: Data for sparql update test

	* RELEASE.html: 0.9.18

	* src/rasqal_algebra.c, src/rasqal_expr.c,
	src/rasqal_graph_pattern.c, src/rasqal_query.c,
	src/rasqal_rowsource.c, src/rasqal_variable.c: Use FILE* for
	autodocs not #FILE*

	* src/rasqal.h: rasqal_data_graph autodocs

	* src/rasqal_literal.c: rasqal_literal_print_type autodocs

	* src/rasqal.h: rasqal_data_graph autodocs

	* src/rasqal_literal.c: rasqal_literal_print autodocs

	* src/rasqal_query.c: remove autodocs indicator

	* src/rasqal_query_results.c: remove autodocs indicator

	* src/rasqal_general.c:
	rasqal_query_set_default_generate_bnodeid_parameters autodocs

	* src/rasqal_engine.c: remove autodocs indicator

	* .gitignore, RELEASE.html, autogen.sh, build/.gitignore,
	build/shave-libtool.in, build/shave.in, build/shave.m4,
	configure.ac: Use AM_SILENT_RULES and move autotools helper files
	to build/ dir

	Update autogen.sh with latest version; dependent on automake 1.11
	and it's dependencies to get AM_SILENT_RULES.

	Update configure.ac to invoke AM_SILENT_RULES defaulting to 'no'.

	Delete SHAVE.

	* NEWS.html, configure.ac, src/rasqal.h:
	Bumped version to 0.9.18

	* src/sparql_lexer.l:
	Make sparql_token_free static

	* src/rasqal.h:
	Add user_data field to rasqal_variable.

	rasqal_variable gains user_data field.

	Fixes Issue#0000320
	http://bugs.librdf.org/mantis/view.php?id=320

	* src/rasqal_format_json.c: Use application/json for JSON results
	format mime type

	(rasqal_init_result_format_json): Register mime type
	application/json instead of text/json for JSON results format.
	
	Fixes Issue#0000323 http://bugs.librdf.org/mantis/view.php?id=323

2010-02-05  Dave Beckett <dave@dajobe.org>

	* src/rasqal_format_sv.c: Give CSV and TSV query result formats
	mime types and URIs

	(rasqal_init_result_format_sv): Register result format 'csv' with
	URI http://www.ietf.org/rfc/rfc4180.txt and result format 'tsv'
	with mime type text/tab-separated-values and URI
	http://www.iana.org/assignments/media-types/text/tab-separated-valuesValues
	taken from Issue#0000345.

	Fixes Issue#0000345 http://bugs.librdf.org/mantis/view.php?id=345

2010-02-05  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_format_table.c:
	(rasqal_init_result_format_table): Fixed typo in result format
	MIME type.	

	Fixes Issue #0000343
	http://bugs.librdf.org/mantis/view.php?id=343

2010-02-01  Dave Beckett <dave@dajobe.org>

	* configure.ac: Set and enforce raptor max version of <= 1.8.99

2010-01-31  Dave Beckett <dave@dajobe.org>

	* src/sparql_lexer.l: Make sparql_token_free usable outside this
	module.

2010-01-24  Dave Beckett <dave@dajobe.org>

	* rasqal.pc.in: Use pkg-config (undocumented) Requires.private for
	raptor

2010-01-19  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y: Alter DELETE to take a list of templates
	(sub-graphs) to delete.

	* src/sparql_parser.y: make WITH <uri> DELETE ... INSERT ... WHERE
	.. SPARQL 1.1 update (draft) work

	Because the grammar is ambiguous in several places and unstable,
	in this grammar WITH <uri> is required, not optional as the
	grammar makes it.

	Shift/reduce conflicts goes from 5 to 13 probably because of
	insert/delete ambiguity.

	(ConstructTriples): Added; was part of ConstructTriplesOpt

	(GraphTemplate): Added.

	(ModifyTemplate, ModifyTemplateList): To form list of graphs to
	update.  This data is thrown away now, not stored.

	(UpdateQuery): Added but pretending to be INSERT verb.  Only
	supports WITH <uri> DELETE { ... } INSERT { ... } WHERE ...  form
	with no optional WITH; otherwise this is even more ambiguous.

	* tests/sparql/update/insert-1.rq: ws

	* src/sparql_lexer.l, src/sparql_parser.y: Add SPARQL 1.1 update
	draft LOAD <documentUri> [ INTO <graph URI>]

	Added INTO keyword to sparql lexer

	(LoadQuery): Added with the two forms, storing the document URI as
	well as the optional graph URI

	* src/rasqal_internal.h, src/rasqal_query.c: Add document_uri
	field to rasqal_query for SPARQL 1.1 update LOAD document URI

	* src/rasqal.h, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Add RASQAL_QUERY_VERB_LOAD for
	SPARQL 1.1 update draft LOAD command

	* src/sparql_parser.y: Code style - break lines and whitespace

	* src/sparql_parser.y: Code style - break lines, whitespace, move
	seq size out of loops.

	* src/sparql_parser.y: Code style - break long lines.

	* src/sparql_parser.y: Add DELETE triples syntax from SPARQL 1.1
	update draft

	(DeleteQuery): Add DELETE DATA { triples} form, storing the
	triples to delete in the rasqal_query constructs field, for now.

	* src/sparql_parser.y: Add INSERT triples syntax from SPARQL 1.1
	update draft

	(GraphTriples): Added to turn a block of triples with optional
	graph URI into query structure.  The insert triples are stored in
	the query construct triples field.

	(InsertQuery): Allow SPARQL 1.1 update draft form inserting a set
	of triples with INSERT DATA { triples }.

	(GraphpatternListOpt): Fix error message label

	* src/sparql_parser.y: Add CREATE and DROP syntax from SPARQL 1.1
	update draft

	* src/rasqal.h, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Add RASQAL_QUERY_VERB_CREATE and
	RASQAL_QUERY_VERB_DROP for SPARQL 1.1 update draft

	* src/sparql_parser.y:
	Added SPARQL 1.1 Update CLEAR & CLEAR GRAPH

	<uri> (ClearQuery): Added.  Stores graph URI when given, in
	rasqal_query field graph_uri.

	* tests/sparql/update/Makefile.am:
	Use -i laqrs in testing for now

	* src/sparql_lexer.l:
	(sparql_token_print): Add missing tokens

	* src/rasqal_internal.h, src/rasqal_query.c: rasqal_query gains
	graph_uri field for storing CLEAR/DROP graph uri

	* src/rasqal.h, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Added RASQAL_QUERY_VERB_CLEAR for
	SPARQL 1.1 update CLEAR verb

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	LOAD keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	DROP keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	DATA keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	SILENT keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	CREATE keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	CLEAR keyword

	* configure.ac, tests/sparql/Makefile.am,
	tests/sparql/update/Makefile.am, tests/sparql/update/bad-1.rq,
	tests/sparql/update/clear-1.rq, tests/sparql/update/clear-2.rq,
	tests/sparql/update/clear-3.rq, tests/sparql/update/create-1.rq,
	tests/sparql/update/create-2.rq, tests/sparql/update/delete-1.rq,
	tests/sparql/update/delete-data-1.rq,
	tests/sparql/update/drop-1.rq, tests/sparql/update/drop-2.rq,
	tests/sparql/update/insert-1.rq, tests/sparql/update/insert-2.rq,
	tests/sparql/update/insert-data-1.rq,
	tests/sparql/update/insert-delete-1.rq,
	tests/sparql/update/load-1.rq, tests/sparql/update/load-2.rq: Add
	SPARQL 1.1 Update tests

	* src/sparql_lexer.l, src/sparql_parser.y: Added WITH keyword to
	SPARQL 1.1 (draft) / LAQRS

2010-01-06  Dave Beckett <dave@dajobe.org>

	* LICENSE.html: 2010

	* TODO.html: 2010

	* INSTALL.html: 2010

	* RELEASE.html: 2010

	* README.html: 2010

	* NEWS.html: 2010

2010-01-02  Dave Beckett <dave@dajobe.org>

	* tests/engine/.gitignore: Ignore deps

	* docs/tmpl/.gitignore: Update another .gitignore

	* .gitignore, build/.gitignore, docs/.gitignore, src/.gitignore,
	tests/algebra/.gitignore, tests/engine/.gitignore, utils/.gitignore:
	
	Add .gitignore to replace SVN properties svn:ignore