File: RELEASE.html

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 (3017 lines) | stat: -rw-r--r-- 108,097 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
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <title>Rasqal RDF Query Library - Release Notes</title>
</head>
<body>

  <h1>Rasqal RDF Query Library - Release Notes</h1>

<h2 id="rel0_9_20"><a name="rel0_9_20">Rasqal 0.9.20 Changes</a></h2>

<p>The main changes in this release are:</p>
<ul>
<li>Support more SPARQL 1.1 Query and Update draft syntax and some
execution semantics for new built-in expressions.</li>
<li>Support building with Raptor V2 API as well as Raptor V1 API.  The Raptor V2 API is only used if <code>--enable-raptor2</code> is given to <code>configure</code>.</li>
</ul>

<p>Fixed Issues:</p>
<ul>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=352">0000352</a>: CONSTRUCT with a LIMIT doesn't limit query results</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=353">0000353</a>: CONSTRUCT with an ORDER always(?) returns an empty graph</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=354">0000354</a>: Comparing xsd:int and xsd:integer fails in SPARQL</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=360">0000360</a>: [PATCH] HTML Table results format</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=374">0000374</a>: Solaris 10 'make check' failures</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=377">0000377</a>: Cannot format results in roqet</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=378">0000378</a>: Crash when cleaning up after a failed query containing unsupported syntax</li>
</ul>


<h3>Query API changes</h3>

<p>Moved generate blank node ID functionality to world class.
Deprecated
<code>rasqal_query_set_default_generate_bnodeid_parameters()</code>
for
<code>rasqal_world_set_default_generate_bnodeid_parameters()</code>.
Deprecated <code>rasqal_query_set_generate_bnodeid_handler()</code>
for new function (with different handler signature)
<code>rasqal_world_set_generate_bnodeid_handler()</code>.
</p>

<p>Added <code>rasqal_query_get_having_conditions_sequence()</code> and
<code>rasqal_query_get_having_condition()</code> for getting access
to the HAVING expression list in a query.
</p>


<h3>Expression and literal class changes</h3>

<p>Added new literal type <code>RASQAL_LITERAL_INTEGER_SUBTYPE</code>
to let subtypes of <code>xsd:integer</code> work in data and
expression evaluation.
</p>

<p>Add support for SPARQL 1.1 draft <code>FILTER</code> expression
operators including execution in the expression evaluation and
writing the expression as SPARQL:</p>
<table>
<tr>
<th>New <code>rasqal_op</code> enum</th>
<th>SPARQL 1.1 expression</th>
</tr>
<tr>
<td><code>RASQAL_EXPR_IF</code></td>
<td>IF(condition expression, expr if true, expr if false)</td>
</tr>
<tr>
<td><code>RASQAL_EXPR_URI</code></td>
<td>URI(uri string)</td>
</tr>
<tr>
<td><code>RASQAL_EXPR_IRI</code></td>
<td>IRI(iri string)</td>
</tr>
<tr>
<td><code>RASQAL_EXPR_STRLANG</code></td>
<td>STRLANG(literal string, language string)</td>
</tr>
<tr>
<td><code>RASQAL_EXPR_STRDT</code></td>
<td>STRDT(literal string, datatype URI)</td>
</tr>
<tr>
<td><code>RASQAL_EXPR_BNODE</code></td>
<td>BNODE() and BNODE(string)</td>
</tr>
<tr>
<td><code>RASQAL_EXPR_IN</code></td>
<td>Expr IN ( list )</td>
</tr>
<tr>
<td><code>RASQAL_EXPR_NOT_IN</code></td>
<td>Expr NOT IN ( list )</td>
</tr>
</table>

<p>Added expression evaluation and expression formatting support for
the above new (non-aggregate) expression operations in:
<code>rasqal_expression_clear()</code>,
<code>rasqal_expression_visit()</code>,
<code>rasqal_expression_write()</code>,
<code>rasqal_expression_print()</code>,
<code>rasqal_expression_is_constant()</code> and
<code>rasqal_query_write_sparql_expression()</code>.</p>

<p>Added <code>rasqal_op</code> enumeration values for built-in
aggregate functions <code>RASQAL_EXPR_GROUP_CONCAT</code> and
<code>RASQAL_EXPR_SAMPLE</code> but no expression execution.
</p>

<p>Added new bitflags <code>rasqal_expression_flags</code> for
<code>rasqal_expression</code> flags with initial bitflags
<code>RASQAL_EXPR_FLAG_DISTINCT</code> for distinct (aggregate functions) and
<code>RASQAL_EXPR_FLAG_AGGREGATE</code> for aggregate functions.
</p>

<p>Added <code>rasqal_new_function_expression2()</code> for functions
with parameters and optional bit flags deprecating
<code>rasqal_new_function_expression()</code>.  This is not
capable of adding a user extension aggregate function.
</p>

<p>Added new <code>rasqal_new_aggregate_function_expression()</code>
constructor for making a 1-arg built-in aggregate functions.
This is not capable of adding a user extension aggregate function.
</p>

<p>The never used <code>RASQAL_EXPR_GROUP_COND_ASC</code> and
<code>RASQAL_EXPR_GROUP_COND_DESC</code> are marked as obsolete.
</p>

<p>Updated documentation for <code>rasqal_expression_visit()</code>,
<code>rasqal_graph_pattern_visit_fn</code> and
<code>rasqal_expression_visit_fn</code> typedef to match what the code
actually does.</p>

<p>Added <code>rasqal_new_group_concat_expression()</code> for
building SPARQL GROUP_CONCAT() expressions with flags, non-empty list
of expressions and optional literal separator.
</p>


<h3>SPARQL query language changes</h3>

<p>Support latest
<a href="http://www.w3.org/TR/2010/WD-sparql11-query-20100601/">SPARQL 1.1 Query W3C working draft of 1 June 2010</a>
syntax such as:</p>

<p>For SPARQL 1.1 Query, allow <code>DISTINCT</code> optionally before extension function
expressions with new flag <code>RASQAL_EXPR_FLAG_DISTINCT</code>.</p>

<p>Added draft SPARQL 1.1 Query <code>IF()</code>, <code>URI()</code>,
<code>IRI()</code>, <code>STRLANG()</code>, <code>STRDT()</code> and
<code>BNODE()</code> (with optional expression arg) built-in
expressions.</p>

<p>Added draft SPARQL 1.1 Query <code>IN()</code> and <code>NOT IN()</code>
operators.</p>

<p>Adjust draft SPARQL 1.1 Query select expression syntax to latest
version: '(' Expr 'AS' Var ')' with required braces.
</p>

<p>Added draft SPARQL 1.1 Query aggregate functions
<code>GROUP_CONCAT()</code> and <code>SAMPLE()</code>
with new expression enum
<code>RASQAL_EXPR_GROUP_CONCAT</code> and
<code>RASQAL_EXPR_SAMPLE</code> as well as formatting to SPARQL and
placeholder expression handling implementation - no aggregate expression
evaluation.  Supports the optional <code>; SEPARATOR =
"string"</code> syntax for GROUP_CONCAT().
</p>

<p>Add support for draft SPARQL 1.1 Query syntax
<code>GROUP BY</code> a list of select expressions and
<code>HAVING</code> with a list of expressions.
</p>

<p>Add partial support for draft SPARQL 1.1 Query extension (aggregate)
functions with DISTINCT and parameters.
</p>

<p>Support latest
<a href="http://www.w3.org/TR/2010/WD-sparql11-update-20100601/">SPARQL 1.1 Update W3C working draft of 1 June 2010</a>
syntax such as:</p>
<ul>
<li><code>CLEAR GRAPH DEFAULT</code></li>
<li><code>CLEAR GRAPH <em>uri</em></code></li>
<li><code>DELETE DATA { ... }</code></li>
<li><code>DELETE DATA { GRAPH <em>uri</em> { ... } } INSERT DATA { GRAPH <em>uri</em> { ... } }</code></li>
<li><code>DELETE WHERE { ... }</code></li>
<li><code>DELETE WHERE { GRAPH <em>uri</em> { ... } }</code></li>
<li><code>DELETE { ... } WHERE { ... }</code></li>
<li><code>DROP GRAPH <em>uri</em></code></li>
<li><code>DROP SILENT GRAPH <em>uri</em></code></li>
<li><code>INSERT DATA { ... }</code></li>
<li><code>INSERT { GRAPH <em>uri</em> { ... } } WHERE { ... }</code></li>
<li><code>LOAD <em>uri</em> INTO DEFAULT</code></li>
<li><code>LOAD <em>uri</em> INTO <em>uri</em></code></li>
<li><code>LOAD <em>uri</em></code></li>
<li><code>WITH <em>uri</em> DELETE { ... } INSERT { ... } USING NAMED <em>uri</em> WHERE { ... }</code></li>
</ul>
<p>Not all cases may be covered
yet since the grammar is hard to implement and may be ambiguous.
</p>

<h3>LAQRS syntax support</h3>

<p>Start giving deprecated messages for LAQRS <code>SELECT ... AS
varname</code> (bare variable name) instead of the draft SPARQL 1.1
Query <code>SELECT ... AS ?varname</code> with $ or ? symbol.
</p>


<h3>Query engine changes</h3>

<p>Make query result limit and offset work when no <code>ORDER
BY</code> is part of the query (yes - this is a well-defined count of
under-defined actual results) with the original query engine.
Related to
<a href="http://bugs.librdf.org/mantis/view.php?id=352">Issue#0000352</a>.
</p>

<p>Add datatype support for <code>xsd:date</code> for value
normalization and comparisons.
</p>

<p>Handle when results are sorted before used to build triples via
<code>CONSTRUCT</code>, which has no practical use since triples are
not ordered and is less efficient since you have to read all the
results into memory.  Anyway, it works now.
</p>


<h3>Query results formatter class changes</h3>

<p>Added an HTML Table results format (name 'table') by Nicholas J Humfrey
using patch from 
<a href="http://bugs.librdf.org/mantis/view.php?id=360">Issue#0000360</a>.
</p>

<p>A NULL base_uri is valid in
<code>rasqal_query_results_formatter_write()</code></p>


<h3>World class changes</h3>

<p>Moved generate blank node ID functionality to
world class, deprecating the query class methods.
Added
<code>rasqal_world_set_default_generate_bnodeid_parameters()</code>,
<code>rasqal_world_set_generate_bnodeid_handler()</code> with new
handler typedef <code>rasqal_generate_bnodeid_handler2</code>.
</p>


<h3>Other changes</h3>

<p>Made all rasqal destructors simply return when given a
<code>NULL</code> object pointer.  They mostly did this already.
</p>

<p>Updated <code>rasqal.spec.in</code> based on fedora spec (not tested)
</p>

<p>Replace <code>strncpy()</code> with <code>memcpy()</code> since
the the <code>strncpy()</code> zero-checking and zero-filling
semantics are never needed.
</p>

<p>Minimum raptor version is now 1.4.19 so that the
<code>raptor_world</code> typedef is always available.
</p>



<h2 id="rel0_9_19"><a name="rel0_9_19">Rasqal 0.9.19 Changes</a></h2>

<p>The only change to this release is to fix the pkg-config
<code>rasqal.pc</code> file to to restore the dependency on raptor
which was accidently deleted.  Lesson learnt: do not commit code
after midnight local time.
</p>


<h2 id="rel0_9_18"><a name="rel0_9_18">Rasqal 0.9.18 Changes</a></h2>

<p>The main changes in this release are:</p>
<ul>
<li>Add initial draft parsing and API (NOT execution) support for
<a href="http://www.w3.org/TR/2010/WD-sparql11-update-20100126/">SPARQL 1.1 Update W3C Working Draft of 2010-01-26</a>.</li>
<li>Add public APIs (row, results, result formatter, variables table) so that query results can be built, read and written without a query.</li>
<li>Add API resilience checks for invalid NULL pointer arguments.</li>
</ul>


<p>Fixed Issues:</p>
<ul>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=320">0000320</a>: Add a void* user_data field to rasqal_variable</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=323">0000323</a>: Official MIME Type for JSON isn't text/json</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=343">0000343</a>: Mime type for 'table' results format is text/plan</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=345">0000345</a>: MIME Type and URI for TSV and CSV</li>
  <li><a href="http://bugs.librdf.org/mantis/view.php?id=347">0000347</a>: rasqal linking fix</li>
</ul>


<h3>Query API Changes</h3>

<p>A user data <code>void* user_data</code> field was added to the
<code>rasqal_variable</code> structure to allow application code to
store additional information.</p>

<p>Added a new <code>rasqal_query_verb</code> enum value for SPARQL
1.1 (draft) Update: <code>RASQAL_QUERY_VERB_UPDATE</code> which
indicates that a sequence of update operations are available in the
query structure, rather than a query (SELECT, ASK, DESCRIBE).
</p>

<p>Added a <code>rasqal_update_operation</code> class for holding
an updates that adds and/or removes triples from a graph (with
possible conditional where) or does a graph administration
operation on a grpah.
</p>

<p>Added an <code>rasqal_update_type</code> enum for the types of
graph update - clear, drop, delete, insert and, load.
</p>

<p>Added <code>rasqal_update_type_label()</code> to get a label for
a rasqal-update_type.
</p>
<pre>
  const char* rasqal_update_type_label(rasqal_update_type type);
</pre>

<p>Added an <code>rasqal_update_flags</code> enum for capturing
update operations flags such as SPARQL 1.1 Update <code>SILENT</code>
for silent graph administration operations and <code>DATA</code> for
bulk insert/delete data, rather than graph pattern templates with
variables.
</p>

<p>Added <code>rasqal_query_get_update_operations_sequence()</code>
to get the sequence of updates from a query.  Added
<code>rasqal_query_get_update_operation()</code> get an individual
update operation from a query via an index.</p>
<pre>
  raptor_sequence* rasqal_query_get_update_operations_sequence(rasqal_query* query);

  rasqal_update_operation* rasqal_query_get_update_operation(rasqal_query* query,
    int idx);
</pre>


<h3>Query Results Class Changes</h3>

<p><code>rasqal_new_query_results()</code> added to public API to
construct a standalone query result set without being the result of a
query execution.  (The destructor is already present).  Added method
<code>rasqal_query_results_add_row()</code> to add a row to a query
result set.
</p>
<pre>
  rasqal_query_results* rasqal_new_query_results(rasqal_world* world,
     rasqal_query* query, rasqal_query_results_type type,
     rasqal_variables_table* vars_table);

  int rasqal_query_results_add_row(rasqal_query_results* query_results,
     rasqal_row* row);
</pre>

<p><code>rasqal_query_results_type</code> enum added to public API
for use with <code>rasqal_new_query_results()</code>.
</p>


<h3>Query Results Formatter Class Changes</h3>

<p>Registered URIs for the CSV and TSV query result formats and fixed
the mime types for those as well as the JSON format as reported in issues
<a href="http://bugs.librdf.org/mantis/view.php?id=345">Issue #0000345</a>
and
<a href="http://bugs.librdf.org/mantis/view.php?id=323">Issue #0000323</a>.
</p>

<p>Added <code>rasqal_new_query_results_formatter2()</code> with
format name, mime type and URI args deprecating
<code>rasqal_new_query_results_formatter()</code> and
<code>rasqal_new_query_results_formatter_by_mime_type()</code>.
</p>
<pre>
  rasqal_query_results_formatter* rasqal_new_query_results_formatter2(rasqal_world* world,
    const char *name, const char *mime_type, raptor_uri* format_uri);
</pre>

<p>Added <code>rasqal_query_results_write2()</code> and
<code>rasqal_query_results_read2()</code> with both name and
mime_type args deprecating <code>rasqal_query_results_write()</code>
and <code>rasqal_query_results_read()</code> respectively.
</p>
<pre>
  int rasqal_query_results_write2(raptor_iostream *iostr,
    rasqal_query_results *results, const char* name, const char* mime_type,
    raptor_uri *format_uri, raptor_uri *base_uri);

  int rasqal_query_results_read2(raptor_iostream *iostr,
    rasqal_query_results *results, const char* name, const char* mime_type,
    raptor_uri *format_uri, raptor_uri *base_uri);
</pre>


<h3>Query Result Row Class</h3>

<p>Export the query result row class to the public API to allow
creating standalone query results set without a query.
</p>

<p>Added <code>rasqal_new_row_for_size()</code>,
<code>rasqal_free_row()</code> to construct and destruct a row and
<code>rasqal_row_set_value_at()</code> to set row literal values.
</p>

<pre>
  rasqal_row* rasqal_new_row_for_size(rasqal_world* world, int size);

  void rasqal_free_row(rasqal_row* row);

  int rasqal_row_set_value_at(rasqal_row* row, int offset,
    rasqal_literal* value);
</pre>


<h3>Variables Table Class</h3>

<p>Added variables table class <code>rasqal_variables_table</code> to
the public API to allow use in creating a standalone query results.
</p>

<p>Added <code>rasqal_new_variables_table()</code> and
<code>rasqal_free_variables_table()</code> to construct and destroy a
variables table.  Added method
<code>rasqal_variables_table_add()</code> to add a variable to the
variables table.
</p>
<pre>
  rasqal_variables_table* rasqal_new_variables_table(rasqal_world* world);

  void rasqal_free_variables_table(rasqal_variables_table* vt);

  rasqal_variable* rasqal_variables_table_add(rasqal_variables_table* vt,
    rasqal_variable_type type, const unsigned char *name,
    rasqal_literal *value);
</pre>


<h3>SPARQL Changes</h3>

<p>Added syntax-only and API support (<strong>no execution</strong>)
for the
<a href="http://www.w3.org/TR/2010/WD-sparql11-update-20100126/">SPARQL 1.1 Update W3C Working Draft of 2010-01-26</a>
syntax.  These are only available when using the 'laqrs' query
language name, until SPARQL 1.1 is stable.</p>

<p>Added new lexer support for keywords: WITH, CLEAR, CREATE, SILENT,
DATA, DROP, LOAD</p>

<p>Added <code>CLEAR</code> and <code>CLEAR GRAPH uri</code></p>

<p>Added <code>DROP GRAPH uri</code></p>

<p>Added <code>INSERT DATA { triples }</code></p>

<p>Added <code>DELETE templates</code> to delete multiple subgraphs.</p>

<p>Added <code>DELETE DATA { triples }</code></p>

<p>Added <code>LOAD uri</code> and <code>LOAD uri INTO graph-uri</code></p>

<p>Added <code>WITH uri DELETE { ... } INSERT { ... } WHERE ...</code>
update form since other combinations are ambiguous.
</p>

<p><strong>NOTE:</strong> The older LAQRS experimental INSERT and
DELETE formats are supported but deprecated.</p>


<h3>Query Engine changes</h3>

<p>Nobody reported it, but decimal division was totally broken.  Fixed
it to do division and not add!
</p>


<h3>Other Changes</h3>

<p>Multiple code style updates and code file reorganizing.
</p>

<p>Link <code>roqet</code> directly with <code>-lraptor</code> to get
raptor symbols used linked directly, to enable alternate library
linking approaches to work.  Based on the request in
<a href="http://bugs.librdf.org/mantis/view.php?id=347">Fixes Issue#0000347</a>
and
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=564885">Fedora bug 564885</a>.
</p>

<p>Added checks for the public API methods to ensure NULL pointers
are not accepted or used.
</p>

<p>Added example code for constructing a query result set without a query
</p>

<p>Updated <code>configure</code> and the build system to use silent
rules for the maintainer (by default), or when
<code>--enable-silent-rules</code> is passed to
<code>configure</code>.  This feature requires building with automake
1.11 which requires autoconf 2.62 or newer when building from GIT.
</p>

<p><code>autogen.sh</code> script was updated to enforce the
autotools versions above.</p>

<p>The rasqal.pc file now uses the Requires.private field for raptor;
it should only be in the link line with<br />
<code>pkg-config --static ...</code> is used.
</p>

<p>Enforce that only raptor versions &lt;1.9.0 are supported.  No
Raptor2 or Raptor2 alpha support yet.
</p>


<h2 id="rel0_9_17"><a name="rel0_9_17">Rasqal 0.9.17 Changes</a></h2>

<blockquote>
<p><b>WARNING: ABI AND API CHANGED IN THIS RELEASE.</b></p>

<p>This means: functions and structs were removed, modified and added.</p>

<p>Consequently the shared library major soname version has changed from 1 to 2.</p> 

</blockquote>

<p>The main change in this release is to add a
<a href="#query-engine-0917">new query engine</a>
and to enable it as the default query engine.  It supports more
of the SPARQL query algebra such as groups and optionals.  There
were many other changes and fixes.
</p>

<p>Fixed Issues: (most of them in query engine 2)</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=077">Issue#0000077</a>: OPTIONAL messes up query results </li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=128">Issue#0000128</a>: GROUP graph pattern support in the query engine</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=168">Issue#0000168</a>: Wrong processing of the function "bound" with "OPTIONAL"</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=258">Issue#0000258</a>: Using FILTER with OPTIONAL in SPARQL queries</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=261">Issue#0000261</a>: Some SPARQL queries with multiple OPTIONAL patterns fail to return results</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=271">Issue#0000271</a>: rasqal library does not compile cleanly when using g++ compiler</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=279">Issue#0000279</a>: JSON query binding serializer is returning illegal JSON - extra double quotes before "ordered" and "distinct"</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=305">Issue#0000305</a>: bound gives incoherent results</li>
</ul>


<h3>Rasqal world API changes</h3>

<p>Added methods for setting of an already-opened raptor library to pass
into rasqal, rather than it creating one itself.
<code>rasqal_world_open()</code> can then be called to do the actual
initialisation:</p>
<pre>
  int rasqal_world_open(rasqal_world* world);

  void rasqal_world_set_raptor(rasqal_world* world,
                               raptor_world* raptor_world_ptr);

  raptor_world *rasqal_world_get_raptor(rasqal_world* world);
</pre>

<p>Exported new C defines for the library versions:
<code>RASQAL_VERSION</code> in 6-digit integer MMNNRR format (Major, miNor, Release),
<code>RASQAL_VERSION_STRING</code> in string "MM.NN.RR" format,
<code>RASQAL_VERSION_MAJOR</code> for integer major version number,
<code>RASQAL_VERSION_MINOR</code> for integer minor version number and
<code>RASQAL_VERSION_RELEASE</code> for integer release number.
</p>

<p>API CHANGE:
<code>rasqal_features_enumerate()</code> gains an
initial rasqal_world argument to become a method of the world class:
</p>
<pre>
  int rasqal_features_enumerate(rasqal_world* world,
    const rasqal_feature feature, const char **name,
    raptor_uri **uri, const char **label);
</pre>

<p>API CHANGE:
<code>rasqal_feature_from_uri()</code> gains an initial
rasqal_world argument to become a method of the world class:
</p>
<pre>
  rasqal_feature rasqal_feature_from_uri(rasqal_world* world,
    raptor_uri *uri);
</pre>


<h3>Data Graph API changes</h3>

<p>API CHANGE: The <code>rasqal_data_graph</code> structure gains a
new world reference pointer field.
</p>


<p>API CHANGE:
<code>rasqal_new_data_graph()</code> gains an initial
rasqal_world argument:
</p>
<pre>
  rasqal_data_graph* rasqal_new_data_graph(rasqal_world* world,
    raptor_uri* uri, raptor_uri* name_uri, int flags);
</pre>


<h3>Expression API changes</h3>

<p>
<code>rasqal_op</code> enumeration gains values for LAQRS
(possible SPARQL 1.1) expression operators:
<code>RASQAL_EXPR_SUM</code>,
<code>RASQAL_EXPR_AVG</code>,
<code>RASQAL_EXPR_MIN</code> and
<code>RASQAL_EXPR_MAX</code>.
It also gains <code>RASQAL_EXPR_COALESCE</code> for LAQRS experimental
coalesce expression <code>COALESCE(<em>expression list</em>)</code>
</p>


<p>API CHANGE:
The <code>rasqal_expression</code> structure gains a new world reference
pointer field.
</p>

<p>API CHANGE:
All <code>rasqal_expression</code> constructors gain an
initial rasqal_world argument:
</p>
<pre>
  rasqal_expression* rasqal_new_0op_expression(rasqal_world* world,
    rasqal_op op);
  rasqal_expression* rasqal_new_1op_expression(rasqal_world* world,
    rasqal_op op, rasqal_expression* arg);
  rasqal_expression* rasqal_new_2op_expression(rasqal_world* world,
    rasqal_op op, rasqal_expression* arg1, rasqal_expression* arg2);
  rasqal_expression* rasqal_new_3op_expression(rasqal_world* world,
    rasqal_op op, rasqal_expression* arg1,  rasqal_expression* arg2,
    rasqal_expression* arg3);
  rasqal_expression* rasqal_new_string_op_expression(rasqal_world* world,
    rasqal_op op, rasqal_expression* arg1, rasqal_literal* literal);
  rasqal_expression* rasqal_new_literal_expression(rasqal_world* world,
    rasqal_literal* literal);
  rasqal_expression* rasqal_new_function_expression(rasqal_world* world,
    raptor_uri* name, raptor_sequence* args);
  rasqal_expression* rasqal_new_cast_expression(rasqal_world* world,
    raptor_uri* name, rasqal_expression *value);
</pre>

<p>API CHANGE:
<code>rasqal_expression_evaluate()</code> gains an initial
rasqal_world argument:
</p>
<pre>
  rasqal_literal* rasqal_expression_evaluate2(rasqal_world *world,
    raptor_locator *locator, rasqal_expression* e, int flags);
</pre>

<p>Added <code>rasqal_graph_pattern_get_origin()</code>
to get the graph from a GRAPH graph pattern:
</p>
<pre>
  rasqal_literal* rasqal_graph_pattern_get_origin(rasqal_graph_pattern* gp);
</pre>

<p>Added <code>rasqal_graph_pattern_set_filter_expression()</code>
and <code>rasqal_graph_pattern_get_filter_expression()</code>
methods to set/get an expression for a filter graph pattern:</p>
<pre>
  int rasqal_graph_pattern_set_filter_expression(rasqal_graph_pattern* gp,
    rasqal_expression* expr);

  rasqal_expression*
    rasqal_graph_pattern_get_filter_expression(rasqal_graph_pattern* gp);
</pre>



<h3>Graph Pattern API changes</h3>

<p><code>rasqal_graph_pattern_operator</code> enumeration gains
<code>RASQAL_GRAPH_PATTERN_OPERATOR_FILTER</code> for a filter graph pattern
and <code>RASQAL_GRAPH_PATTERN_OPERATOR_LET</code> for LAQRS experimental
assignment 'graph pattern'.
</p>

<p>API CHANGE:
Removed functions
<code>rasqal_graph_pattern_add_constraint()</code>,
<code>rasqal_graph_pattern_get_constraint_sequence()</code> and
<code>rasqal_graph_pattern_get_constraint()</code>.
These are replaced by filter graph pattern with expression - functions
<code>rasqal_graph_pattern_set_filter_expression</code> and
<code>rasqal_graph_pattern_get_filter_expression()</code>.
</p>


<h3>LAQRS Changes</h3>

<p>LAQRS is now available in the configuration and does not need to
be explicitly selected with <code>configure</code>.</p>

<p>Add <code>SUM()</code>, <code>AVG()</code>, <code>MIN()</code> and
<code>MAX()</code> aggregate expressions to LAQRS.  Supported in
syntax only, not in any of the query engines.
</p>

<p>Add <code>LET ?var := expression</code> experimental syntax.
Query engine 2 can execute this.</p>

<p>Add <code>COALESCE(<em>expression list</em>)</code> experimental
expression to return the first defined expression value in the
list.  Query engines 1 and 2 can execute this.</p>


<h3>Literal API changes</h3>

<p>API CHANGE:
Reordered <code>rasqal_literal_type</code> enumeration
to match numeric type promotion order: float is now between integer and double.
Also added
<code>RASQAL_LITERAL_XSD_STRING</code> for xsd:string typed literals and
<code>RASQAL_LITERAL_UDT</code> for unknown data typed literals.
Both were separated out of <code>RASQAL_LITERAL_STRING</code> which
is now for RDF plain literals and plain/typed turned into RDF terms only
</p>

<p>Added <code>rasqal_literal_get_rdf_term_type()</code> method to return
the RDF term type of a literal as a <code>rasqal_literal_type</code>
- uri, blank node, literal or cannot be represented (e.g. qname or
internal literal types).
</p>
<pre>
  rasqal_literal_type rasqal_literal_get_rdf_term_type(rasqal_literal* l);
</pre>

<p>Added <code>rasqal_literal_same_term()</code> method to perform
SPARQL sameTerm() comparison.
</p>
<pre>
  int rasqal_literal_same_term(rasqal_literal* l1, rasqal_literal* l2);
</pre>

<p>Added <code>rasqal_literal_is_rdf_literal()</code> method
to check if a literal is an RDF literal (not qname or other internal
types).
</p>
<pre>
  int rasqal_literal_is_rdf_literal(rasqal_literal* l);
</pre>


<h3>Prefix API changes</h3>

<p>API CHANGE:
The <code>rasqal_prefix</code> structure gain a new world reference
pointer field.
</p>

<p>API CHANGE:
<code>rasqal_new_prefix()</code> gains an initial rasqal_world argument:
</p>
<pre>
  rasqal_prefix* rasqal_new_prefix(rasqal_world* world,
    const unsigned char* prefix, raptor_uri* uri);
</pre>


<h3>Query API changes</h3>

<p>Added <code>rasqal_query_dataset_contains_named_graph()</code>
method to check if a named graph is in a dataset:</p>
<pre>
  int rasqal_query_dataset_contains_named_graph(rasqal_query* query,
                                                raptor_uri *graph_uri);
</pre>


<h3>Query Formatter Changes</h3>

<p>SPARQL <code>DESCRIBE</code> no longer writes commas between terms.
</p>


<h3>Query Results API changes</h3>

<p>Added <code>rasqal_query_results_get_query()</code> method to get
the associated query:</p>
<pre>
  rasqal_query*
    rasqal_query_results_get_query(rasqal_query_results* query_results);
</pre>

<p>Added <code>rasqal_graph_pattern_variable_bound_in()</code> method
to check if a graph pattern in a query defines a variable</p>
<pre>
  int rasqal_graph_pattern_variable_bound_in(rasqal_graph_pattern *gp,
    rasqal_variable *v);
</pre>


<h3>Query Results Formatter Changes</h3>

<p>SPARQL/JSON: Do not emit double " for distinct/ordered flags.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=279">Issue #0000279</a>
</p>

<p>Added comma-separated values (CSV), tab-separated values (TSV) and
text table output formats with names <code>csv</code>,
<code>tsv</code> and <code>table</code>.
</p>


<h3>RDQL Changes</h3>

<p>Some updates to handle refactored query list of constraint
expressions switching to a filter graph pattern. RDQL only
has 0 or 1 such expressions in a single query.
</p>


<h3>SPARQL Changes</h3>

<p>Ensure <em>GroupOrUnionGraphPattern</em> rule constructs the
sequence of graph patterns in document order.
</p>

<p><em>OptionalGraphPattern</em> rule is now a list of 1 group graph
patterns.
</p>

<p>Fix support for <code>&lt;&gt;</code> URI literal.
</p>

<p>Support <code>\b</code>, <code>\f</code>, <code>\'</code> and
<code>\"</code> escapes in all types of quoted literals.
</p>

<p>Fixed optional <code>WHERE</code> in parser to match SPARQL
grammar - optional for <code>DESCRIBE</code>, but required for
<code>SELECT</code>, <code>CONSTRUCT</code> and <code>ASK</code>
queries.</p>


<h3>Triples Source API changes</h3>

<p>API CHANGE:
The <code>rasqal_triples_source</code> and
<code>rasqal_triples_source_factory</code> structures
gain API version fields that must be set to a known API version.
</p>

<p>API CHANGE:
The <code>rasqal_set_triples_source_factory()</code> function for
registering a triples source factory now take a function with an int
error return code, and it returns an int now:</p>
<pre>
  int rasqal_set_triples_source_factory(rasqal_world* world,
     rasqal_triples_source_factory_register_fn register_fn,
     void* user_data);
</pre>


<h3>Variable API changes</h3>

<p>API CHANGE:
The <code>rasqal_variable</code> structure gains a variables table
pointer.
</p>


<h3>Other API changes</h3>

<p><code>rasqal_triple_parts</code> adds value
<code>RASQAL_TRIPLE_NONE</code> for no parts.
</p>

<p><code>rasqal_compare_flags</code> enumeration gains
<code>RASQAL_COMPARE_URI</code> - now also provides RDQL string to
bool comparison.
</p>

<p>API CHANGE:
<code>rasqal_new_xsd_decimal()</code> gains an initial rasqal_world argument:
</p>
<pre>
  rasqal_xsd_decimal* rasqal_new_xsd_decimal(rasqal_world* world);
</pre>

<p>Removed <code>rasqal_triple_flags</code> enumeration with unused
values: <code>RASQAL_TRIPLE_FLAGS_EXACT</code>,
<code>RASQAL_TRIPLE_FLAGS_OPTIONAL</code> and
<code>RASQAL_TRIPLE_FLAGS_LAST</code>
</p>


<h3>Configure and Build Changes</h3>

<p>configure now prefers <code>pkg-config raptor</code> to
<code>raptor-config</code> but will accept both for now.
<code>pkg-config</code> will not allow compiling against raptor in
source tree in future.
</p>

<p>Added <code>--with-query-engine-version</code> to configure
to allow selecting default query engine version - values 1 or 2.
This is allowed for people to switch to old engine if necessary
for some existing query that the new engine cannot handle.  This
option will be removed at some point.
</p>

<p>Add
<a href="http://git.lespiau.name/cgit/shave/">SHAVE support</a>
(<code>git clone git://git.lespiau.name/shave</code> )
to <em>"make autotools output sane"</em> which amounts to much less
verbose messages when compiling.  It is now enabled for the
maintainer.
</p>

<p><code>rasqal-config(1)</code> is now a wrapper around
<code>pkg-config rasqal</code>.  Consequently <code>--prefix=DIR</code>
and <code>--libtool-libs</code> are ignored.
</p>


<h3 id="query-engine-0917"><a name="query-engine-0917">Query Engine Changes</a></h3>

<p>An entirely new query execution engine was written. The existing
query execution engine was refactored out of a mess of
<code>rasqal_query</code> and <code>rasqal_query_results</code> code
and data.  It is the default query engine as of Rasqal 0.9.17</p>

<p>The query engine to use can be selected at configure time wiht
<code>--with-query-engine-version</code> to allow switching to old
engine if necessary for some existing query that the new engine
cannot handle.  This option will be removed at some point.
</p>

<p>The interface between the query API and the query engine is now
via the <code>rasqal_rowsource</code> abstraction - an evaluation of
a query returns a rowsource that generates the result rows of
variable bindings.
</p>

<p>Rewrote <code>query_results</code> class to be a pure wrapper
around the rowsource and variables table, handling such things like
generating triples (CONSTRUCT) from rows, creating a boolean result
(ASK) by counting at least 1 result rows and generating syntax
results using a query results formatter.</p>

<p>Added a new <code>rasqal_query_execution_factory</code>
abstraction to provide the interface that the query execution engines
implement to return a rowsource to get the results.</p>

<p>Both query engines can potentially be selected at
runtime from the query API but <strong>ONLY</strong> when rasqal is
built for development (<code>configure --enable-maintainer-mode</code>).
</p>
<ol>
<li>If the envariable <code>RASQAL_DEBUG_ENGINE</code>
is set with value 1 or 2, the query execution engine is chosen.
</li>
<li>The <code>roqet(1)</code> utility gains a <code>-g</code> /
<code>--engine</code> argument.
</li>
</ol>

<p><strong>Query engine 1 (existing)</strong>:<br />
Existing lazy evaluated engine that is hard
to refactor.  Internally, implemented by functions named
<code>rasqal_query_engine_1_<em>...</em>()</code>.
Execution factory instance <code>rasqal_query_engine_1</code>
</p>

<p><strong>Query engine 2 (new)</strong>:<br />
Based on transforming a tree of SPARQL algebra nodes constructed from
the query, into a tree of rowsource-generating expressions that when
evaluated at the top, returns the result rows.  Each algebra node
type and each rowsource type has it's own set of module unit tests
built-in.
Execution factory instance <code>rasqal_query_engine_algebra</code>
</p>

<p>Removed query engine core legacy support for <code>CONSTRUCT *</code> -
never in the SPARQL 1.0 language.
</p>

<p>Pulled out row sorting code from query engine 1 into a
rasqal_engine_sort module so it can be used by all query engines.
</p>

<p>Implemented rowsource abstraction <code>rasqal_rowsource</code> for
the following types of rowsources:</p>
<ul>
<li><em>empty rowsource</em>: always returns no rows</li>
<li><em>filter rowsource</em>: filter an inner rowsource with an expression - used for SPARQL <code>FILTER</code></li>
<li><em>graph rowsource</em>: apply a graph variable to an inner rowsource - used for SPARQL <code>GRAPH</code> matching</li>
<li><em>join rowsource</em>: join two inner rowsources on common variables and an expression.  Two types of join supported: left outer join used for SPARQL <code>OPTIONAL</code> and natural join for groups of graph patterns.</li>
<li><em>project rowsource</em>: pick [project] certain variables from an inner rowsource</li>
<li><em>query engine execution rowsource</em>: rows generated by a query execution engine</li>
<li><em>row sequence rowsource</em>: built from a sequence of rows</li>
<li><em>SPARQL xml rowsource</em>: make rows from SPARQL Results XML syntax</li>
<li><em>triples rowsource</em>: create a rowsource by binding variables to an RDF graph sort rowsource: sorts the inner rowsource by an order expression - used for SPARQL <code>ORDERBY</code></li>
<li><em>union rowsource</em>: union/concatenation of two inner rowsources - used for SPARQL <code>UNION</code></li>
</ul>

<p>Renamed row abstraction from <code>rasqal_query_result_row</code>
to <code>rasqal_row</code> since it is independent of query results
and shorter.
</p>

<p>Use new <code>rasqal_engine_error</code> enumeration for query
engine/internal errors - OK, FAILED or FINISHED rather than altering
<code>rasqal_query_results</code> object fields directly.
</p>

<p>Documented query execution engine internals as autodocs.
</p>

<p>Added a query algebra abstraction <code>rasqal_algebra</code> with
node type <code>rasqal_algebra_node_operator</code> based on SPARQL
algebra operators: BGP, FILTER, JOIN, DIFF, LEFTJOIN, UNION, TOLIST,
ORDERBY, PROJECT, DISTINCT, REDUCED, SLICE and GRAPH.  Some of these
are not needed by the query execution engines since they are handled
by the high level query API - such as SLICE (limit and offset) and
TOLIST (turning results into user data)
</p>

<p>Added a variables table abstraction <code>rasqal_variables_table</code>
pulled out of the internal query results and query structures which now
point to it.  Constructor <code>rasqal_new_variables_table()</code>,
destructor <code>rasqal_free_variables_table()</code>
and methods <code>rasqal_variables_table_add()</code>,
<code>rasqal_variables_table_get()</code>,
<code>rasqal_variables_table_has()</code>,
<code>rasqal_variables_table_set()</code>,
<code>rasqal_variables_table_get_value()</code>,
<code>rasqal_variables_table_get_named_variables_count()</code>,
<code>rasqal_variables_table_get_anonymous_variables_count()</code>,
<code>rasqal_variables_table_get_total_variables_count()</code>,
<code>rasqal_variables_table_get_named_variables_sequence()</code> and
<code>rasqal_variables_table_get_anonymous_variables_sequence()</code>.
</p>

<p>Allow queries with no graph pattern to be accepted such as SPARQL
<code>DESCRIBE <em>uri</em></code> (which the query engine does not
execute at present but now is at least parsed).
</p>

<p>Do not warn about unbound variables for variables bound in GRAPH and
SELECT expressions.
</p>

<p>Renamed query language-specific factory class for creating query
structure from SPARQL and RDQL syntaxes from <code>struct
rasqal_query_engine_factory</code> to
<code>rasqal_query_language_factory</code> since it is about the
language, not the engine.
</p>

<p>Query engine known problems:</p>
<ul>
<li>Variable binding/use scope is not calculated correctly.</li>
<li>Consequently no queries with <code>UNION</code> work correctly.</li>
<li>Also consequently, some <code>OPTIONAL</code> queries execute and return results when they shouldn't due to scoping of variable rules especially in nested optionals.</li>
<li><code>DISTINCT</code> uses RDF literal equality not RDF sameTerm equality and thus returns results not to spec.</li>
<li><code>xsd:date</code> comparison is not date-aware, it uses a simple string equality</li>
<li><code>REDUCED</code> is not implemented.</li>
</ul>

<p>Summary of the approved
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/">DAWG SPARQL 1.0 tests</a>
as of Rasqal SVN r15841</p>
<pre>
Fail:       22 (4.99 %)
    algebra                        4
    dataset                        3
    distinct                       4
    graph                          2
    open-world                     3
    optional                       4
    reduced                        2
Pass:      419 (95.01 %)
</pre>

<p>The above results in EARL:
<a href="http://librdf.org/2009/12/13-rasqal/rasqal-0917-earl.rdf">RDF/XML</a>
and
<a href="http://librdf.org/2009/12/13-rasqal/rasqal-0917-earl.ttl">Turtle</a>
</p>


<h3>Internal Changes</h3>

<p>Added sparql algebra tests based on the examples in the SPARQL 1.0 Query Language  Specification section
<a href="http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/#convertGraphPattern">12.2.1 Converting Graph Patterns</a>
</p>

<p>
Optionally support the experimental raptor V2 API.
</p>

<p>Lots of resiliency fixes in the case of out of memory - Lauri Aalto.
</p>

<p>Adjusted internal test suite to use a perl <code>improve</code>
script that generates and uses an RDF-based manifest.  The test
running is now much more consise when successful.
</p>

<p>Switch to final DAWG approved testsuite files from
<a href="http://www.w3.org/2001/sw/DataAccess/tests/r2/">http://www.w3.org/2001/sw/DataAccess/tests/r2/</a>
at CVS Revision 1.6 1008
</p>



<h2 id="rel0_9_16"><a name="rel0_9_16">Rasqal 0.9.16 Changes</a></h2>

<blockquote>
<p><b>WARNING: ABI AND API CHANGED IN THIS RELEASE.</b></p>

<p>This means: functions were removed, modified and added.</p>

<p>Consequently the shared library major soname version has changed from 0 to 1.</p> 

<p>The header files moved to be installed in
<em>PREFIX</em>/include/rasqal such as
<code>/usr/include/rasqal</code> for usual installs.</p>
</blockquote>

<blockquote>
<p><strong>NOTE:</strong> In the next release of rasqal, the
<code>rasqal-config</code> utility that provides the compile and link
args will be deprecated, generate a warning when run and will turn into a
wrapper for <code>pkg-config rasqal ...</code>
It will be removed in a future release.</p>
</blockquote>


<h3>Major Changes (break ABI and API)</h3>

<p>Removed <code>rasqal_init()</code> and <code>rasqal_finish()</code>
functions.</p>

<p>Added a new <code>rasqal_world</code> object to manage
library allocations and classes with new library
constructor/initializing function
<code>rasqal_world *rasqal_new_world(void)</code>
and destructor/cleanup function:
<code>void rasqal_free_world(rasqal_world*)</code>
</p>

<p>The following functions now take a <code>librdf_world*
world</code> argument as the first argument:
<code>rasqal_language_name_check()</code>,
<code>rasqal_languages_enumerate()</code>,
<code>rasqal_new_query()</code>,
<code>rasqal_query_results_formats_check ()</code>,
<code>rasqal_new_query_results_formatter()</code>,
<code>rasqal_new_query_results_formatter_by_mime_type()</code>,
<code>rasqal_new_integer_literal()</code>,
<code>rasqal_new_typed_literal()</code>,
<code>rasqal_new_double_literal()</code>,
<code>rasqal_new_float_literal()</code>,
<code>rasqal_new_uri_literal()</code>,
<code>rasqal_new_pattern_literal()</code>,
<code>rasqal_new_string_literal()</code>,
<code>rasqal_new_simple_literal()</code>,
<code>rasqal_new_boolean_literal()</code>,
<code>rasqal_new_variable_literal()</code>,
<code>rasqal_new_decimal_literal()</code>,
<code>rasqal_new_decimal_literal_from_decimal()</code>
</p>

<p>Removed deprecated
<code>rasqal_new_floating_literal()</code>,
<code>rasqal_graph_pattern_get_flags()</code>,
<code>rasqal_expression_foreach()</code> functions,
<code>RASQAL_LITERAL_FLOATING</code> macro and
<code>rasqal_expression_foreach_fn</code> typedef.
</p>

<p>
Modified <code>rasqal_triples_match</code> struct to add a
rasqal_world* world field.
</p>

<p>There is no more static data such as error pointers, arrays of
query languages, URI objects; it is all attached to the rasqal_world
object.</p>


<h3>Misc changes</h3>

<p>Fixed memory leaks in lang() expression evaluation. (Lauri Aalto)</p>

<p>Made several low-memory resiliance fixes in query construction and
execution. (Lauri Aalto)</p>

<p>Library requires raptor 1.4.17 or newer to get the newly public
raptor SAX2 API for reading SPARQL XML Results format.</p>

<p>Updated mpfr configure check to look for modern functions rather
than functions that are also in the older gmp-mpfr library too.
</p>

<p>Only the first error is reported for syntax errors in lex/parse
of SPARQL and RDQL since the lack of error recovery means that the
consequent messages are of little use.</p>

<p>Fatal errors in SPARQL and RDQL lexer/parser no longer does an
abort, but exits via setjmp/longjmp.</p>


<h3>Query Engine Changes</h3>

<p>Added internal rowsource class to get rows from an execution
engine or a syntax (query result formatter).</p>


<h3>Graph Pattern Class Changes</h3>
<p>Modified <code>rasqal_graph_pattern_add_sub_graph_pattern()</code> to
have an int return value for catching allocation failures.
</p>

<h3>Query Class Changes</h3>
<p>Modified <code>rasqal_query_add_variable()</code> and
<code>rasqal_query_add_prefix()</code> to have int return values for
catching allocation failures.
</p>

<h3>Query Results Class Changes</h3>

<p>Updated the internals to allow construction of a query result
outside the query engine, such as from a syntax.
</p>

<p>Added <code>rasqal_query_results_read()</code> to read a query
results from an iostream in some format.
</p>

<p>Modified <code>rasqal_query_results_formats_enumerate()</code> to add
a flags argument with
<code>RASQAL_QUERY_RESULTS_FORMAT_FLAG_READER</code> and
<code>RASQAL_QUERY_RESULTS_FORMAT_FLAG_WRITER</code> choices to
choose formats for read or write enumeration.</p>

<p>Removed function
<code>rasqal_query_results_formats_enumerate_full</code> now handled
by <code>rasqal_query_results_formats_enumerate()</code>.</p>

<p>Added <code>rasqal_query_results_formatter_read()</code> to read
query results from a syntax via an iostream.</p>

<h3>Variable Class Changes</h3>

<p>Added <code>rasqal_new_variable_from_variable()</code> copy
constructor.</p>


<h2 id="rel0_9_15"><a name="rel0_9_15">Rasqal 0.9.15 Changes</a></h2>

<h3>General Changes</h3>

<p>Many updates for better SPARQL support.  Rasqal 0.9.15 passes over
92% of the DAWG SPARQL Test Suite as of 2007-11-13.</p>

<p>Rasqal still does not support either <code>UNION</code> or
<code>GROUP</code> and <code>OPTIONAL</code> remains buggy.  There
remain a few other minor areas not yet completely supported such as
XSD <code>date</code> and XSD <code>dateTime</code> equality and
comparisons.
</p>

<blockquote>
<p><b>WARNING: ABI AND API CHANGE in Rasqal 0.9.16. The next
release of Rasqal will be incompatible with this one.</b></p>

<p>It will have both ABI and API changes that will require source
updates.</p>

<p>The shared library major soname will change from 0 to 1.</p> 

<p>The header files will move to be installed in
<em>PREFIX</em>/include/rasqal such as
<code>/usr/include/rasqal</code> for usual installs.</p>

<p>The full details of the API change have not been decided but the
driving change is that using the library will be done via a new
Rasqal world object,k will now be used to working like a Redland
<code>librdf_world</code>.  All constructors will take this world
object as an argument and all static data will be indirected from the
object.  Handlers such as the uri_handler/data and error handlers
will also move to be set/get via the world object.
</p>

<p>There are almost certainly other API changes and cleanups that
will be done, and some possibly some of the data structures may be
made internal.</p>

</blockquote>

<p>Fixed issues:</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=190">Issue#0000190</a>: Memory leaks in rasqal_literal.c</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=191">Issue#0000191</a>: RAPTOR_API in rasqal.h</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=193">Issue#0000193</a>: SPARQL "ASK" always returns true</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=196">Issue#0000196</a>: Memory leak with RASQAL_REGEX_PCRE</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=197">Issue#0000197</a>: Problem with float comparison in rasqal</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=198">Issue#0000198</a>: rasqal_redland.c compilation errors</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=199">Issue#0000199</a>: SPARQL effective boolean value: empty string literal not false</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=200">Issue#0000200</a>: SPARQL filter scope</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=201">Issue#0000201</a>: SPARQL langMatches patch</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=203">Issue#0000203</a>: API declarations for Symbian portability</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=204">Issue#0000204</a>: SPARQL WHERE is optional</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=219">Issue#0000219</a>: SPARQL BASE makes rasqal query->locator.uri a dangling pointer</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=220">Issue#0000220</a>: Query offset off by one</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=221">Issue#0000221</a>: rasqal_literal_as_integer() with RASQAL_LITERAL_INTEGER literals</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=225">Issue#0000225</a>: SPARQL parser leaks memory on syntax error</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=234">Issue#0000234</a>: autogen.sh $dir quoting</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=235">Issue#0000235</a>: $(EXEEXT) in tests</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=236">Issue#0000236</a>: EOL issues when building svn version on cygwin</li>
</ul>


<h3>SPARQL Query Language Changes</h3>

<p>Many updates to support the SPARQL
<a href="http://www.w3.org/TR/2007/CR-rdf-sparql-query-20070614/">Candidate Recommendation</a> and
<a href="http://www.w3.org/TR/2007/PR-rdf-sparql-query-20071112/">Proposed Recommendation</a> versions of the language including:</p>
<ul>
   <li>Added <code>REDUCED</code> syntax support (no query engine support)</li>
   <li>Added <code>SAMETERM()</code> support.</li>
   <li>Allowing numbers at the start of local names.</li>
   <li>Allowing <code>@</code><em>lang</em> and
       <code>^^</code><em>datatype</em> after triple-quoted literals.</li>
   <li>Make unary + and - work</li>
   <li>Remove <code>CONSTRUCT *</code> that is no longer in the spec</li>
   <li>Removed hexadecimal literals which were never in the spec</li>
   <li>Made queries with the <code>ASK</code> verb work again.</li>
   <li>Made <code>LANG()</code> and <code>DATATYPE()</code> work to
       spec on typed literals.</li>
   <li>Remove warning about optional SPARQL <code>WHERE</code>
       although it is still a dumb idea to have useless keywords.</li>
</ul>


<h3>Query Engine Changes</h3>

<p>Many internal changes were made including refactoring the engine
core and adding of additional internal documentation for the engine
functions.</p>

<p>Substantial improvements were made to datatypes support:</p>
<ul>
  <li>SPARQL / XQuery / XPath numeric type promotion is now supported,
      including derived types of <code>xsd:integer</code> etc.</li>
  <li>Added XSD <code>xsd:decimal</code> implementation either using
      GNU MP, MPFR, C99 <code>_Decimal</code> (but I have yet to find a
      working implementation) or by default and inaccurately, C
      doubles.</li>
  <li>Added XSD <code>xsd:dateTime</code> initial support for validation.</li>
  <li>Numeric operations such as +, -, *, / and ! as well as comparisons
      are now done in the appropriate datatype (which may be a promotion).</li>
</ul>

<p>Improved the way that literal equality and comparisons work
especially with respect to datatypes.  Triple pattern matching
(equality) works with RDF terms.  SPARQL <code>FILTER</code> literal
equality and comparisons follow SPARQL rules with possible numeric
type promotion, then using RDF Term if the types are different.
<code>ORDER</code> comparison or <code>DISTINCT</code> equality
checks use RDF Term.  RDQL execution uses it's own existing "stringy"
rules.
</p>

<p>Set the query base URI.</p>

<p>Make queries that bind the origin (SPARQL <code>GRAPH</code>)
match correctly against the default graph.
</p>

<p>Memory reduction in stack usage when evaluation expressions
(such as SPARQL <code>FILTER</code>s).</p>


<h3>Public API changes</h3>

<p>Added <code>rasqal_home_url_string</code> static constant.</p>

<p>Added <code>rasqal_xsd_decimal</code> class and API calls
described below.</p>

<p>Added a <code>decimal</code> part to the rasqal_literal union
value for <code>RASQAL_LITERAL_DECIMAL</code> types.</p>

<p>Added a <code>parent_type</code> part to the rasqal_literal when
the type can be promoted.</p>

<p>Added <code>RASQAL_EXPR_SAMETERM</code> expression</p>

<p>Added <code>RASQAL_COMPARE_RDF</code> and
<code>RASQAL_COMPARE_URI</code> comparison types for RDF Term
comparsion rules and allowing URI comparison (without
<code>STR()</code>) respectively.</p>

<p>Added <code>rasqal_new_typed_literal()</code> to make an RDF typed
literal from a type and string (no language).</p>

<p>Added <code>rasqal_new_float_literal()</code> for wrapping a C
<code>float</code> as XSD float.</p>

<p>Added new decimal literal constructor
rasqal_literal* rasqal_new_decimal_literal_from_decimal(const unsigned char *string, rasqal_ xsd_decimal* decimal)
</p>

<p>Added <code>rasqal_literal_datatype</code> method to get the datatype
URI of a literal.</p>

<p>Added <code>rasqal_literal_value</code> method to get the literal
value of a literal, looking up any variables to their value.
FIXME should this not involve query results?
</p>

<p>Added addition <code>rasqal_triple_parts</code> enums:
<code>RASQAL_TRIPLE_GRAPH</code> for just the named graph part
<code>RASQAL_TRIPLE_SPO</code> for subject, predicate and objects and
<code>RASQAL_TRIPLE_SPOG</code> for all parts including named grpah.
</p>


<h3>Decimal Class</h3>

<p>A new <code>rasqal_xsd_decimal</code> class was added to handle
XSD decimals with accurate decimal arithmetic.</p>

<p>Constructor:</p>
<pre>
rasqal_xsd_decimal* rasqal_new_xsd_decimal(void);
</pre>

<p>Destructor:</p>
<pre>
void rasqal_free_xsd_decimal(rasqal_xsd_decimal* dec);
</pre>

<p>Methods:</p>
<pre>
double rasqal_xsd_decimal_get_double(rasqal_xsd_decimal* dec);
int rasqal_xsd_decimal_set_double(rasqal_xsd_decimal* dec, double d);
iint rasqal_xsd_decimal_set_string(rasqal_xsd_decimal* dec, const char* string);
int rasqal_xsd_decimal_set_long(rasqal_xsd_decimal* dec, long l);
int rasqal_xsd_decimal_print(rasqal_xsd_decimal* dec, FILE* stream);
char* rasqal_xsd_decimal_as_string(rasqal_xsd_decimal* dec);
char* rasqal_xsd_decimal_as_counted_string(rasqal_xsd_decimal* dec, size_t* len_p);
</pre>

<p>Numeric methods (writing to the <code>result</code> argument):</p>
<pre>
int rasqal_xsd_decimal_add(rasqal_xsd_decimal* result,
                           rasqal_xsd_decimal* a, rasqal_xsd_decimal* b);
int rasqal_xsd_decimal_subtract(rasqal_xsd_decimal* result,
                                rasqal_xsd_decimal* a, rasqal_xsd_decimal* b);
int rasqal_xsd_decimal_multiply(rasqal_xsd_decimal* result,
                                rasqal_xsd_decimal* a, rasqal_xsd_decimal* b);
int rasqal_xsd_decimal_divide(rasqal_xsd_decimal* result,
                              rasqal_xsd_decimal* a, rasqal_xsd_decimal* b);
int rasqal_xsd_decimal_negate(rasqal_xsd_decimal* result,
                              rasqal_xsd_decimal* a);
</pre>

<p>Comparison methods:</p>
<pre>
int rasqal_xsd_decimal_compare(rasqal_xsd_decimal* a, rasqal_xsd_decimal* b);
int rasqal_xsd_decimal_equals(rasqal_xsd_decimal* a, rasqal_xsd_decimal* b);
int rasqal_xsd_decimal_is_zero(rasqal_xsd_decimal* d);
</pre>


<h3>Query Results Formatter Class Changes</h3>

<p>Updated to the 4th version of the SPARQL XML Results format by
removing the <code>ordered</code> and <code>distict</code>
attributes.  Removed support for all the earlier versions 1 to 3.</p>


<h3><code>roqet</code> Utility Changes</h3>

<p>Added <code>-D</code> / <code>--data</code> options for specifying
data URis for the default graph and <code>-G</code> /
<code>--named</code> for URIs of named graphs (the existing
<code>-s</code> is a also a synonym for the latter).
</p>


<h3>Other Changes</h3>

<p>Many internal fixes and cleanups after failures so that memory is
not lost and/or rasqal does not crash.  These many changes were
primarily made by Lauri Aalto.</p>

<p>Several portability fixes for helping with low-memory, embedded
systems and using a compiler that is not gcc.
</p>

<p>The SPARQL test runner <code>check-sparql</code> was improved to
read the SPARQL XML Results format (but not via
<code>XML::Simple</code> because it is insanely complex and
counterintuitive), handle DAWG test manifests and generate EARL
reports.  It also has new help and usage messages.
</p>


<h2 id="rel0_9_14"><a name="rel0_9_14">Rasqal 0.9.14 Changes</a></h2>

<h3>General Changes</h3>

<p>Added syntax and API support (but no query engine support)
for <b>experimental</b> extensions to SPARQL called
<a href="http://www.dajobe.org/2007/04/laqrs/">LAQRS</a>:
LAQRS Adds to Querying RDF in SPARQL.
</p>

<p>Updated the query results formatter to allow better introspection
of supported formats.</p>

<p>Fixed issues:</p>
<ul>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=152">Issue#0000152</a>: Allow <code>&lt;_:NAME&gt;</code> to work as <code>_:NAME</code> in SPARQL.</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=156">Issue#0000156</a>: Add LAQRS extensions to SPARQL grammar</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=160">Issue#0000160</a>: rasqal_strcasecmp without prototype</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=167">Issue#0000167</a>: Make CONSTRUCT work with LIMIT</li>
<li><a href="http://bugs.librdf.org/mantis/view.php?id=182">Issue#0000182</a>: Allow '-' in SPARQL language tags (and RDQL)</li>
</ul>


<h3>LAQRS Adds to Querying RDF in SPARQL (LAQRS)</h3>

<p>LAQRS is <b>experimental</b> and Rasqal provides only syntax and
API support (but no query engine support) for:</p>
<ul>
<li><code>DELETE</code> via query verb <code>RASQAL_QUERY_VERB_DELETE</code></li>
<li><code>EXPLAIN</code> as a keyword allowed before any query.  Returned by <code>rasqal_query_get_explain()</code></li>
<li><code>INSERT</code> via query verb <code>RASQAL_QUERY_VERB_INSERT</code></li>
<li><code>COUNT()</code> and COUNT(*) via new expressions <code>RASQAL_EXPR_COUNT</code> and <code>RASQAL_EXPR_VARSTAR</code></li>
<li><code>SELECT </code><em>expression</em> <code>AS</code> <em>variable</em> via the new expression field of rasqal_variable</li>
<li><code>GROUP BY</code> results via rasqal_query_get_group_conditions_sequence() and rasqal_query_get_group_condition() and new expressions <code>RASQAL_EXPR_GROUP_COND_ASC</code> and <code>RASQAL_EXPR_GROUP_COND_DESC</code></li>
</ul>

<p>Repeating <b>THERE IS NO QUERY ENGINE SUPPORT FOR ANY OF THE ABOVE</b></p>

<p>LAQRS is not enabled by default in Rasqal (unless using
maintainer mode or building from Subversion).  To enable it,
configure Rasqal like this:</p>
<pre>
$ ./configure '--enable-query-languages=sparql rdql laqrs'
...

Rasqal build summary:
  RDF query languages available : rdql sparql
  RDF query languages enabled   : sparql rdql laqrs
  Triples source                : raptor 1.4.15
$
</pre>

<p>The API changes for LAQRS are as follows:</p>

<p>Added new query verbs <code>RASQAL_QUERY_VERB_DELETE</code> and
<code>RASQAL_QUERY_VERB_INSERT</code>
</p>

<p>Added a constructor to create a constant or 0-operand expression
(for COUNT):</p>
<pre>
rasqal_expression* rasqal_new_0op_expression(rasqal_op op);
</pre>

<p>Added a query method to get the explain flag:</p>
<pre>
int rasqal_query_get_explain(rasqal_query* query);
</pre>

<p>Added a query method to get the 'group by' condition expressions:</p>
<pre>
raptor_sequence*
rasqal_query_get_group_conditions_sequence(rasqal_query* query);

rasqal_expression*
rasqal_query_get_group_condition(rasqal_query* query, int idx);
</pre>

<p>Added <code>rasqal_expression</code> expression types:</p>
<ul>
<li><code>RASQAL_EXPR_GROUP_COND_ASC</code> for group condition ascending.</li>
<li><code>RASQAL_EXPR_GROUP_COND_DESC</code> for group condition descending.</li>
<li><code>RASQAL_EXPR_COUNT</code> for select <code>COUNT()</code></li>
<li><code>RASQAL_EXPR_VARSTAR</code> for select <code>COUNT(*)</code></li>
</ul>

<p><code>rasqal_variable</code> now has
a <code>rasqal_expression*</code> field <code>expression</code>.
</p>


<h3>Configuration and Build Changes</h3>

<p>The pkgconfig rasqal.pc file and the <code>rasqal-config</code>
script now separates directly linked shared libraries and indirectly
linked ones.  This prevents unnecessary references to libraries.  The
regular libraries includes -L plus <code>-lrasqal</code> and the
dynamic and static libraries are available with:</p>
<ul>
<li><code>pkgconfig rasqal --static --libs</code></li>
<li><code>rasqal-config --libs --private-libs</code></li>
</ul>

<p>So for example to statically link with rasqal, use either:</p>
<pre>
$ cc .. -o foo foo.c `pkgconfig rasqal --static --libs`

$ cc .. -o foo foo.c `rasqal-config --libs --private-libs`
</pre>


<h3>Query Results Formatter Changes</h3>

<p>Made it easier to discover and create of query results in a syntax
by using a MIME Type.</p>

<p>Added query results formatter constructor by required mime type:</p>
<pre>
rasqal_query_results_formatter*
rasqal_new_query_results_formatter_by_mime_type(const char *mime_type);
</pre>
<p>Added a method to return the mime type of a selected formatter:</p>
<pre>
const char*
rasqal_query_results_formatter_get_mime_type(
  rasqal_query_results_formatter *formatter);
</pre>

<p>Added another query results formatter static method to enumerate
possible results formats, their names, labels and (new) mime type.</p>
<pre>
int
rasqal_query_results_formats_enumerate_full(const unsigned int counter,
  const char **name, const char **label,
  const unsigned char **uri_string, const char **mime_type);
</pre>

<p>Added a static method to check for support for a query results
format.</p>
<pre>
int rasqal_query_results_formats_check(const char *name,
  raptor_uri* uri, const char *mime_type);
</pre>


<h3>SPARQL Query Language Changes</h3>

<p>Updated for the
<a href="http://www.w3.org/TR/2007/WD-rdf-sparql-query-20070326/">SPARQL Query Language for RDF</a>, W3C Working Draft 26 March 2007</p>
<ul>
<li>Added <code>REDUCED</code> token.  This entailed changing the
distinct flag from a boolean to a mode.
<code>rasqal_query_get_distinct</code> and
<code>rasqal_query_set_distinct</code> now takes a mode (0, 1
DISTINCT, 2 REDUCED) rather than the former boolean flag.
There is no query engine support for REDUCED at present.
</li>
</ul>


<h3>Query Engine Changes</h3>

<p>Added the possibility that a query's native result is a syntax
(rather than natively bindings, boolean or triples) and added
a method to check for that:</p>
<pre>
int rasqal_query_results_is_syntax(rasqal_query_results* query_results);
</pre>

<p>Many query engine internal changes, but these remain unsupported:
OPTIONAL graph pattern (partially working), GROUP graph pattern (no
support), UNION graph pattern (no support) and new <code>SELECT
REDUCED</code> (no support).
</p>


<h3><code>roqet</code> Utility Changes</h3>

<p><code>roqet</code> can use -r to generate a chosen result syntax
for bindings results or triples (using raptor).</p>

<p>roqet now generates namespace declarations for triples when
serializing output. The result is that they are used when the
serializer handles them such as generating RDF/XML (Abbreviated)
or Turtle.
</p>


<h3>Other Changes</h3>

<p><code>rasqal_expression</code> lost the unused
<code>rasqal_variable*</code> field <code>variable</code>
</p>

<p>Added exported variables to return the license string
in <code>rasqal_license_string</code>
and home page in <code>rasqal_home_url_string</code>
</p>



<h2 id="rel0_9_13"><a name="rel0_9_13">Rasqal 0.9.13 Changes</a></h2>

<h3>General Changes</h3>

<p>Added a new <code>rasqal_query_results_formatter</code> class.
</p>

<p>Many internal query engine changes, mostly to separate query and
query_results internals so that eventually the run-time execution
context is entirely separated from the static query structure.
</p>

<p>Added query features system with one initial feature 
<code>RASQAL_FEATURE_NO_NET</code>.</p>


<h3>Configuration and Build Changes</h3>

<p>Allow shell variable <code>LEX</code> to be set to things that
aren't exactly <code>flex</code> Recommend flex 2.5.33 and update
configure to point at the main flex site whichq finally gets 2.5.33
after 9 years.</p>

<p><code>PKGCONFIG</code> vars not substituted
correctly in configure.ac.  Remove @LDFLAGS from rasqal.pc.in.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=98">Issue#0000098</a>.
</p>

<p>Win32 build fixes.Correct win32 static linking of rasqal.
(Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=100">Issue#0000100</a>)
and include float.h and <code>#define isnan</code> on win32.
(Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=111">Issue#0000111</a>).
</p>

<p>In maintainer mode, add all the supported compiler <code>-W</code>
warning flags to the CFLAGS.
</p>

<p>Declare several rasqal functions with GCC printf-formatting
attributes when using a new enough GCC.</p>

<p>Remove broken debug messages.
<a href="http://bugs.librdf.org/mantis/view.php?id=131">#0000131</a>.
</p>

<h3>SPARQL Query Language Changes</h3>

<p>Added labels to grammar tokens using bison to give better error messages.</p>

<p>Fix looking for EOF in an unsigned variable since it may be negative
on some systems.</p>

<p>The query engine now implements SPARQL <code>GRAPH</code> matching.
</p>


<h3>RDQL Query Language Changes</h3>

<p>Added labels to grammar tokens using bison to give better error messages.</p>

<p>Fix looking for EOF in an unsigned variable since it may be negative
on some systems.</p>


<h3>Query Engine Changes</h3>

<p>The query engine now implements SPARQL <code>GRAPH</code> matching.
</p>

<p>Merge only all adjacent sequences of basic graph pattern triples, not
anything with triples such as optional BGP triples.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=80">Issue#0000080</a>.
</p>

<p>When an exact triple match is present, do not execute a query forever.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=94">Issue#0000094</a>.
</p>

<p> Fail if a variable argument to <code>LANG()</code> has an
undefined value rather than try to execute a NULL pointer.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=113">Issue#0000113</a>.
</p>

<p>Add query / query_results link early so reference counting is done right.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=95">Issue#0000095</a>.
</p>

<p>Report failure as well as query finished when an error occurs
during making results.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=118">Issue#0000118</a>.
</p>

<p>Added a hack to check an outer constraint expression.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=129">Issue#0000129</a>.
</p>

<p>Free origins (<code>GRAPH</code> nodes) in triples to prevent memory leak.
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=133">Issue#0000133</a>.
</p>



<h3>Query API Changes</h3>

<p>Added a new <code>rasqal_query_results_formatter</code> class to
format <code>librdf_query_results</code> into a syntax.  Also added
a <code>rasqal_query_results_formats_enumerate()</code> function to
enumerate all the supported formats.  The query results
method <code>rasqal_query_results_write()</code> was changed to use
this class internally.
</p>

<p>Added a new feature system to allow setting parameters on
the query parser/engine.  Initially have one
feature <code>RASQAL_FEATURE_NO_NET</code> that prevents
network requests during a query execution.
Added functions:
<code>rasqal_features_enumerate</code>,
<code>rasqal_get_feature_count</code>,
<code>rasqal_feature_from_uri</code>,
<code>rasqal_feature_value_type</code>,
<code>rasqal_query_set_feature</code>,
<code>rasqal_query_set_feature_string</code>,
<code>rasqal_query_get_feature</code>,
<code>rasqal_query_get_feature_string</code>.
</p>

<p><code>roqet</code> gained a <code>-f</code>
/ <code>--feature</code> option to set query features.
</p>


<h2 id="rel0_9_12"><a name="rel0_9_12">Rasqal 0.9.12 Changes</a></h2>

<h3>General Changes</h3>

<p>Added <a href="http://json.org/">JSON</a> as a query results
format based on the
<a href="http://www.w3.org/2001/sw/DataAccess/json-sparql/">Serializing SPARQL Query Results in JSON</a>
draft.
</p>

<p>Added query writing to a <code>raptor_iostream</code> which allows
reading in one query language and writing in another.  The only
useful consequence of this now is that it enables <code>roqet</code>
to become an RDQL to SPARQL translator.</p>

<p>Rasqal now requires <a href="http://librdf.org/raptor/">raptor</a>
1.4.9 or newer.
</p>


<h3>Configuration and Build Changes</h3>

<p>Now using subversion.</p>


<h3><code>roqet</code> utility Changes</h3>

<p>Altered the <code>-d</code> (<code>--dump-query</code>) option to
now take an argument of the query format to dump.  The values it can
take are <code>debug</code>, <code>structure</code> or
<code>sparql</code>.</p>

<p>To convert a query from RDQL to SPARQL, use:</p>
<pre>
roqet -q -i rdql -d sparql -n query.rdql > query.sparql
</pre>

<p>Added <code>-r json</code> for <a href="http://json.org/">JSON</a>
query results output based on the draft defined in the
<a href="http://www.w3.org/2001/sw/DataAccess/json-sparql/">Serializing SPARQL Query Results in JSON</a> draft
</p>


<h3>SPARQL Query Language Changes</h3>

<p>Updated to match
<a href="http://www.w3.org/TR/2006/CR-rdf-sparql-query-20060406/">SPARQL Query Language for RDF, W3C Candidate Recommendation 6 April 2006</a>.
All DAWG syntax tests now pass.
The update includes near alignment with SPARQL grammar term names
except where the flex/bison approach diverged.</p>

<p>Updated SPARQL tests from DAWG CVS</p>

<p>Finally removed long deprecated <code>ASC[]</code> and
<code>DESC[]</code> syntax.</p>


<h3>RDQL Query Language Changes</h3>

<p>Handle empty regex <code>//</code>
Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=71">Issue#0000071</a>
</p>


<h3>Query Engine Changes</h3>

<p>Some updates to handle latest changes to SPARQL grammar.</p>

<p>Added <code>RASQAL_EXPR_REGEX</code> 3-arg operation to match
the SPARQL <code>regex()</code> 2/3-arg function.</p>

<p>Many internal changes to move more of the query execution state
from inside <code>rasqal_query</code> to
inside <code>rasqal_query_results</code> and related structures.
This is not yet complete but when done, you will be able to execute
the same query more than once at the same time.
</p>


<h3>Query API Changes</h3>

<p>Added <code>rasqal_query_write</code> to write a query
structure into a syntax onto a raptor_iostream.  Implements
writing SPARQL format with format URI NULL,
<a href="http://www.w3.org/TR/rdf-sparql-query/">http://www.w3.org/TR/rdf-sparql-query/</a>
or
<a href="http://www.w3.org/TR/2006/CR-rdf-sparql-query-20060406/">http://www.w3.org/TR/2006/CR-rdf-sparql-query-20060406/</a>
</p>

<p>Added a <a href="http://json.org/">JSON</a>
SPARQL query results format with format URI identifier
<a href="http://www.w3.org/2001/sw/DataAccess/json-sparql/">http://www.w3.org/2001/sw/DataAccess/json-sparql/</a>
based on the draft defined in
<a href="http://www.w3.org/2001/sw/DataAccess/json-sparql/">http://www.w3.org/2001/sw/DataAccess/json-sparql/</a>
Implemented document with version
<code>alt-ser-sparql.rst,v 1.3 2006/02/16 16:03:08 k Exp</code>.
</p>

<p><code>rasqal_query_get_all_variable_sequence</code> was corrected to match the
definition - return all variables, not just the bound (<code>SELECT</code>ed) ones.
Fixes  <a href="http://bugs.librdf.org/mantis/view.php?id=79">Issue#00000079</a>.
</p>

<p>Added <code>rasqal_query_get_anonymous_variable_sequence</code> to return
only anonymous variables after change above.
</p>

<p>Added <code>rasqal_graph_pattern_get_index</code> to get the
absolute index of a graph pattern in a graph.
</p>


<h3>IOstream class Changes</h3>

<p>Added
<code>rasqal_query_iostream_write_escaped_counted_string</code> and
<code>rasqal_query_escape_counted_string</code>
to format an escaped string suitable for using inside a query.
</p>


<h3>Documentation Changes</h3>

<p>Updated <code>roqet.1</code> for --exec option and new usages.</p>


<h2 id="rel0_9_11"><a name="rel0_9_11">Rasqal 0.9.11 Changes</a></h2>

<h3>General Changes</h3>

<p>Duplicated <code>SELECT</code> variables are now detected, give a
warning and are removed.
</p>

<p>Rasqal now requires <a href="http://librdf.org/raptor/">raptor</a>
1.4.8 or newer to get the <em>guess</em> parser that uses URI/name
and mime type returned from protocol request (if available) to choose
the correct parser.
</p>

<p>Added an internal <code>rasqal_map</code> key : value map for use
with result duplicate detection and ordering.
</p>

<p>A major source code regoranisation moved all library source code
to the <code>src/</code> dir, roqet to <code>utils/</code> and other
documentation to <code>docs/</code>.  This should only affect
packagers, not any functionality.</p>

<p>Many more function documentation were added to the sources for use
by gtk-doc.</p>


<h3>SPARQL Query Language Changes</h3>

<p>Updated to the 
<a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20051123/">SPARQL Query Language for RDF W3C Working Draft 23 November 2005</a>:</p>
<ul>
<li>Added <code>isIRI</code> keywords.</li>
<li>Updated the name definitions to allow initial _ in variable names.</li>
<li>Changed the decimal and double literal syntax.</li>
<li>Allow negative numeric literals.</li>
<li>Change the AND and OR logic when an error is present.</li>
</ul>

<p>Added a post 2005-11-23 SPARQL WD syntax change: added
<code>langMatches</code> operator and initial query engine support.
</p>

<p>Invalid <code>\u</code><em>HHHH</em> and
<code>\U</code><em>HHHHHHHH</em> hex escapes and floating point
number formats are detected and warned.</p>
 
<p>Updates to the query engine make <code>DISTINCT</code>
and <code>ORDER BY</code> now work, including with <code>LIMIT</code>.
</p>

<p>The lexer now counts line numbers correctly over multi-line
comments.</p>

<p>Updated changes to the valid characters allowed in SPARQL names
for variable, prefix and QNames.</p>


<h3>RDQL Query Language Changes</h3>

<p>The lexer now counts line numbers correctly over multi-line
comments.</p>


<h3>Query Engine Changes</h3>

<p>When query result sorting is used with limit
(SPARQL <code>LIMIT</code>) and offset, they now work correctly,
performing the limit and offset after ordering the result.  This
matches the SPARQL query result semantics.
</p>

<p>The query engine now implements distinct results
(SPARQL <code>DISTINCT</code>) including with ordering
(SPARQL <code>ORDER BY</code>).
</p>

<p>More cases with optional graph patterns (SPARQL
<code>OPTIONAL</code>s) are now executed correctly.
Note: this does <em>not</em> mean all cases work, there are known
problems with executing optional clauses.</p>

<p>Added types for <code>xsd:float</code> (C float)
and <code>xsd:double</code> (C double); <code>xsd:decimal</code>
(handled as a string) and <code>xsd:datetime</code> (as a string).
</p>

<p>Fixed (a compare b) between integers and doubles to be the right sign.
</p>

<p>Do not promote literals early on in comparisons to strings "perl
style" but do the best type-based comparsion as late as possible.
</p>


<h3>Query API Changes</h3>

<p>Added <code>rasqal_new_double_literal</code>.</p>

<p>Added <code>rasqal_graph_pattern_visit</code> and type for visitor
function <code>rasqal_graph_pattern_visit_fn</code>.
</p>

<p>Added <code>rasqal_new_expression_from_expression</code>.</p>

<p>Added <code>rasqal_expression_visit</code> and type for visitor
function <code>rasqal_expression_visit_fn</code>.
</p>

<p>Deprecated function <code>rasqal_new_floating_literal</code> replaced by
new <code>rasqal_new_double_literal</code>.
</p>

<p>Deprecated function <code>rasqal_expression_foreach</code>,
replaced by new <code>rasqal_expression_visit</code>.
</p>

<p>Function <code>rasqal_expression_evaluate</code> gains a flag
argument of new enum <code>rasqal_compare_flags</code>.</p>

<p>Added enum <code>rasqal_compare_flags</code> flags for
<code>rasqal_expression_evaluate</code> or
<code>rasqal_literal_compare</code>.  Type
<code>RASQAL_COMPARE_XQUERY</code> can be used with
to ask for use of XQuery comparison and type promotions.
</p>

<p>Added <code>rasqal_literal</code> types:
<code>RASQAL_LITERAL_DECIMAL</code>,
<code>RASQAL_LITERAL_DATETIME</code>,
<code>RASQAL_LITERAL_DOUBLE</code> (replacing deprecated
<code>RASQAL_LITERAL_FLOATING</code>) and
<code>RASQAL_LITERAL_FLOAT</code>.  Reordered the
<code>rasqal_literal</code> types in the enum.
</p>

<p>The enum types in <code>rasqal_literal_type</code> were reordered
to make them match sparql type promotion.</p>


<h3><code>roqet</code> utility program changes</h3>

<p><code>roqet</code> gains -e/--exec option to execute a query
string directly rather than via a file or URI containing the query.
</p>

<p>Now writes out XML results format in format with version URI
<code>http://www.w3.org/2005/06/sparqlResults</code> and short name
"xml".  The previous version is available with short name "xml-v2".
The latest version now writes <code>ordered</code>
and <code>distinct</code> boolean-valued attributes on
the <code>results</code> element.
</p>


<h3>Configuration Changes</h3>

<p>The autogen.sh script for building from CVS was revamped to be
more modular.</p>

<p><code>configure</code> now takes an <code>--enable-gtk-doc</code>
option to enable building of the documentation using the
<code>gtk-doc</code> utility.  It is by default enabled only if the
utility is available.
</p>


<h3>Documentation Changes</h3>

<p>The GNOME <code>gtk-doc</code> program is now used to
automatically extract documentation from source comments into
reference documentation.  This is then merged with templates and
additional documentation to provide a reference manual for rasqal
as XML document which is turned into HTML along with GNOME devhelp
support.</p>

<p>This new documentation intended to replace the librasqal manual
page/web page as easier to read document with scope for better
expanding with more detail of rasqal including examples and tutorial
information.
The <a href="http://librdf.org/rasqal/librasqal.html">librasqal</a>
manual page will continue to contain the summary information for the
present.
</p>


<h2 id="rel0_9_10"><a name="rel0_9_10">Rasqal 0.9.10 Changes</a></h2>

<h3>General Changes</h3>

<p>The query engine now supports ordering query results, in SPARQL
this is the <code>ORDER BY</code> clause.</p>


<h3>SPARQL Query Language Changes</h3>

<p>The SPARQL parser now passes (accepts) all the 70+
<em>SyntaxFull</em> tests in the RDF Data Access Working Group (DAWG)
test suite for SPARQL.  This mostly means accepting optional
punctuation in some places.
</p>

<p>Sorting results with <code>ORDER BY</code> now partially works
however comparison is not done with the SPARQL literal comparison
rules (after XQuery) but using the existing RDQL-style "string-y"
comparisons.
</p>

<p>Allow <code>&lt;&gt;</code> as a URI.</p>

<p>The SPARQL parser now accepts some changes made by the DAWG after
the last published working draft:
<a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050419/">SPARQL Query Language for RDF</a>,
W3C Working Draft, 19 April 2005.  This includes:</p>

<ul>
<li>In <code>ORDER BY</code>
<code>ASC(</code>expression<code>)</code> replaces <code>ASC[...]</code>,
<code>DESC(</code>expression<code>)</code> replaces <code>DESC[...]</code>,
and it also accepts <code>ORDER BY (</code>expression<code>)</code>.
<code>ORDER BY </code>func()<code></code> is accepted although at
present no extension function support is available that could use it.
</li>

<li><code>[]</code> can be used in the triple predicate position
as an anonymous existential variable</li>

<li>Enforce that ASK queries cannot use <code>ORDER BY</code>,
<code>LIMIT</code> or <code>OFFSET</code></li>

</ul>

<p>Omitting <code>WHERE</code> gives a warning.  Don't do that!</p>


<h3>Query Engine Changes</h3>

<p>The query engine now allows sorting of results (<code>ORDER BY</code>
in SPARQL).  It performs comparisons using the existing RDQL style
and does not yet support the SPARQL literal comparison rules.  Sorting
can be done by a sequence of expressions, ascending or descending.
If the final result is equality, the object pointers are used.</p>

<p>Note: removal of duplicates is not supported yet.</p>

<p>Some test code for datatypes support was added, not enabled by
default and not yet useful.</p>


<h3>Query API Changes</h3>

<p>Removed functions deprecated in 0.9.9.</p>

<p>Added <code>rasqal_graph_pattern_operator</code> enumeration with
values for the main SPARQL graph patterns, graph pattern class method
<code>rasqal_graph_pattern_get_operator</code> and graph pattern
utility function <code>rasqal_graph_pattern_operator_as_string</code></p>

<p>Modified the type of the final argument of
<code>rasqal_new_graph_pattern_from_sequence</code> and
<code>rasqal_graph_pattern_add_triples</code> from an integer to a
<code>rasqal_graph_pattern_operator</code> enumeration.</p>

<p>Deprecated function <code>rasqal_graph_pattern_get_flags</code>
now always returning 0 replaced by the graph pattern operator
functions listed above .</p>


<h3><code>roqet</code> utility program changes</h3>

<p>Removed deprecated flags -f and -o</p>


<h2 id="rel0_9_9"><a name="rel0_9_9">Rasqal 0.9.9 Changes</a></h2>

<h3>General Changes</h3>

<p>SPARQL is now the default query language</p>

<p>Added a signing memory debugging system to aid checking when
rasqal-allocated memory is freed in another library or vice-versa
enabled by <code>--with-memory-signing</code> configure option
(defaults to on in maintainer mode).</p>

<p>Fixed a few internal malloc/frees to use RASQAL_MALLOC / RASQAL_FREE
so that the above signed memory system worked.</p>


<h3>SPARQL Query Language Changes</h3>

<p>Grammar updated to follow the
<a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050419/">SPARQL Query Language for RDF</a>,
W3C Working Draft, 19 April 2005.  This changes many parts of the syntax:
</p>
<ul>
<li>Turtle/N3 style for triples with abbreviations</li>
<li><code>{</code> ... <code>}</code> around triple patterns</li>
<li><code>OPTIONAL</code> instead of <code>[]</code></li>
<li><code>GRAPH</code> replaces <code>SOURCE</code></li>
<li><code>FROM NAMED</code> replaces <code>LOAD</code></li>
<li><code>FILTER</code> replaces <code>AND</code></li>
<li><code>REGEX</code> replaces <code>?var =~ /match/flags</code>
and <code>!~</code></li>
<li>Added <code>LIMIT</code>, <code>OFFSET</code> and
<code>ORDER BY</code> with <code>ASC[]</code> and <code>DESC[]</code></li>
<li>Changed function syntax to remove <code>&amp;</code></li>
<li>Removed old operator tokens: <code>ne</code>, <code>eq</code>, <code>==</code></li>
</ul>

<p>(Note: the query engine does not support sorting amongst other
recently added SPARQL features)</p>

<p>SPARQL keywords are now case independent rather than just upper
or lowercase.</p>

<p>Added """long literals""" after N3 (and soon, Turtle)
and '''long literals''' for SPARQL only.
</p>

<p>Added many SPARQL tests from DAWG most not yet approved by the
working group. Not all pass either because not implemented or
known bugs.</p>

<p>Added the revised 
<em>SPARQL Query Results XML Format</em> (the latest version not yet published)
support to <code>rasqal_query_results_write</code> when called with
format URI <code>http://www.w3.org/2001/sw/DataAccess/rf1/result2</code>.
</p>


<h3>Query Engine Changes</h3>

<p>Uses the query results limit and offset information to skip
initial results (offset) and provide a maximum number of results (limit).
</p>

<p>Moved some engine-specific operations from RDQL and SPARQL parser.
</p>

<p>Added internal <code>rasqal_formula</code> class for the Turtle
part of the SPARQL parser
</p>

<p><strong>Deprecated</strong> the <code>rasqal_triples_source</code>
factory method <code>new_triples_match</code>.  It is replaced by a
new method <code>init_triples_match</code> and will be removed from
the next release.</p>



<h3>Query API Changes</h3>

<p>Added bnode identifier generation functions:
<code>rasqal_query_set_default_generate_bnodeid_parameters</code>,
<code>rasqal_query_set_generate_bnodeid_handler</code> based on the
raptor API for generating blank node identifiers in the Turtle/N3
triple style.
</p>

<p>Added <code>order_conditions_sequence</code> to the query
structure to store query ordering conditions and added access methods
<code>rasqal_query_get_order_conditions_sequence</code> and
<code>rasqal_query_get_order_condition</code> to read the resulting
expressions.
</p>

<p>Added expressions for SPARQL ordering conditions:
<code>RASQAL_EXPR_ORDER_COND_ASC</code>,
<code>RASQAL_EXPR_ORDER_COND_DESC</code> and
<code>RASQAL_EXPR_ORDER_COND_NONE</code>.
</p>


<p>Added types for variables in two version - normal and anonymous
with an new enum <code>rasqal_variable_type</code> and
<code>rasqal_new_variable_typed</code> to allow creating them.
</p>

<p>Completed the distinct/limit and offset get/set methods by adding:
<code>rasqal_query_set_distinct</code>,
<code>rasqal_query_set_limit</code>,
<code>rasqal_query_get_offset</code> and
<code>rasqal_query_set_offset</code>
</p>

<p>Deprecated the <code>rasqal_triple</code> flags field - the value
<code>RASQAL_TRIPLE_FLAGS_EXACT</code> was only used in internals of
the execution engine. The value
<code>RASQAL_TRIPLE_FLAGS_OPTIONAL</code> was never used.  Optionals
are now noted on graph patterns.  Deprecated
<code>rasqal_triple_set_flags</code> and
<code>rasqal_triple_get_flags</code>.
</p>

<p>Added enum <code>rasqal_query_verb</code> for the main query verbs:
<code>RASQAL_QUERY_VERB_SELECT</code>
<code>RASQAL_QUERY_VERB_CONSTRUCT</code>
<code>RASQAL_QUERY_VERB_DESCRIBE</code> and
<code>RASQAL_QUERY_VERB_ASK</code>.
Added method <code>rasqal_query_get_verb</code> to access the verb.
</p>

<p>Added <code>rasqal_query_get_query_graph_pattern</code> to get the
top graph pattern.</p>

<p>Added <code>rasqal_query_get_wildcard</code> to get the query verb
wildcard flag such as with SPARQL <code>SELECT *</code>
</p>

<p>Added <code>rasqal_query_get_construct_triples_sequence</code> and
<code>rasqal_query_get_construct_triple</code> to get the triples
made from a SPARQL <code>CONSTRUCT</code> query.</p>


<h3><code>roqet</code> utility program changes</h3>

<p>Updated roqet to include better query structure walking with
<code>-w</code> / <code>--walk</code> including listing query verb,
distinct, limit, offset flags, construct triples and easier to read
groupings of graph patterns and triples.</p>

<p>Deprecated roqet arguments <code>-f</code> / <code>--format</code>
and <code>-o</code> / <code>--output</code> in place of
<code>-r</code> / <code>--results</code> as both choose the query
results format.
</p>

<p>SPARQL is now the default query language for roqet.</p>



<h2 id="rel0_9_8"><a name="rel0_9_8">Rasqal 0.9.8 Changes</a></h2>

<h3>SPARQL Query Language Changes</h3>

<p>Grammar updated to follow the
<a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050217/">SPARQL Query Language for RDF</a>,
W3C Working Draft, 17 February 2005.
</p>

<p>Added support for casting in constraint expresions for datatyped literals
with the syntax <em>qname</em><code>(</code><em>literal</em><code>)</code>
such as <code>xsd:decimal("10")</code>.
</p>

<p>Added named graphs parsing with <code>LOAD</code> and note that
<code>UNION</code> cannot be handled yet, <code>SOURCE</code> and
<code>[</code>...<code>]</code> syntax for optionals are deprecated.
</p>


<h3>Query Engine Changes</h3>

<p>Engine now operates over a hierarchy of
<code>rasqal_graph_pattern</code> objects, where at the root the
query has a single <em>query graph</em> rather than a sequence of
graph patterns.  The query graph contains the former sequence of
graph patterns.</p>

<p>Constraints can be applied to any graph pattern, not just at the
top level of a query.</p>

<p>Added casting expressions type <code>RASQAL_EXPR_CAST</code>
and constructor <code>rasqal_new_cast_expression</code>.</p>

<p>Fixed setting of a triple origin (SPARQL <code>GRAPH</code>) which
was not working in 0.9.7</p>

<p><code>xsd:boolean</code> RDF literals are now promoted into
internal <code>RASQAL_LITERAL_BOOLEAN</code> typed
<code>rasqal_literal</code> like for XSD integer and double.
</p>

<p>The query engine uses the named graph information when evaluating
queries, passing it to the <code>rasqal_triples_match</code> factory
methods either implemented with raptor or redland as a 
<code>rasqal_triples_source_factory</code> and returning them
as results of variable bindings.
</p>



<h3>Query API Changes</h3>

<p>Added no-arg constructor
<code>rasqal_new_graph_pattern</code>
</p>

<p>Added method
<code>rasqal_graph_pattern_add_triples</code>
to add triples to an existing graph pattern.
</p>

<p>Added methods
<code>rasqal_graph_pattern_add_constraint</code>,
<code>rasqal_graph_pattern_get_constraint_sequence</code> and
<code>rasqal_graph_pattern_get_constraint</code>
to add constraints to a graph pattern.
</p>

<p>Added method
<code>rasqal_graph_pattern_add_sub_graph_pattern</code>
to add a sub-graph pattern to a graph pattern.
</p>

<p>Added a <em>Data Graph</em> class with constructor
<code>rasqal_new_data_graph</code>, destructor
<code>rasqal_free_data_graph</code> and debug method
<code>rasqal_data_graph_print</code>.
</p>

<p>Added query methods for data graphs:
<code>rasqal_query_add_data_graph</code>,
<code>rasqal_query_get_data_graph_sequence</code>,
<code>rasqal_query_get_data_graph</code>.
</p>

<p>Deprecated query methods
<code>rasqal_query_add_constraint</code>,
<code>rasqal_query_get_constraint_sequence</code>
<code>rasqal_query_get_constraint</code>,
<code>rasqal_query_add_source</code>,
<code>rasqal_query_get_source_sequence</code> and
<code>rasqal_query_get_source</code>.  These will be removed in the
next release.</p>

<p>Removed functions deprecated in previous version:
<code>rasqal_query_get_variable_sequence</code>
and <code>rasqal_query_add_triple</code>.
</p>


<h2 id="rel0_9_7"><a name="rel0_9_7">Rasqal 0.9.7 Changes</a></h2>

<h3>General Changes</h3>

<p>Fix a resource clean up when query results are either not read at
all or not fully exhausted.  This caused a problem in Redland when it
held on to MySQL database handles despite a query having ended.</p>

<p>Added option <code>-n/--dryrun</code> to <code>roqet</code> to stop after
preparing the query.  Added option <code>-w/--walk-query</code> to
walk and print the query using the graph API.</p>

<p>New build configuration and portability fixes for win32 (John Barstow)</p>

<p>Portability fixes for win32 - define <code>RASQAL_INLINE</code>
and use it as for raptor.  (Dave Viner)</p>

<p>Make rasqal tests work when building against raptor in a sibling
source tree.</p>


<h3>Query Engine Changes</h3>

<p>Added a graph pattern API with <code>rasqal_graph_pattern</code>
typedef and <code>rasqal_pattern_flags</code> enum with value
<code>RASQAL_PATTERN_FLAGS_OPTIONAL</code> to allow complete
walking of the query structure.</p>

<p>Two new methods to the query class were added to support this:
<code>rasqal_query_get_graph_pattern_sequence</code> to get the
raptor_sequence of graph patterns in a query and
<code>rasqal_query_get_graph_pattern</code> to get individual an
graph pattern by index.</p>

<p>The new graph pattern methods added are:</p>
<ul>
  <li><code>rasqal_graph_pattern_get_triple</code> to get a
  <code>raptor_triple</code> inside a graph pattern.</li>
  <li><code>rasqal_graph_pattern_get_sub_graph_pattern_sequence</code> to
  get the raptor_sequence of sub-graph patterns.</li>
  <li><code>rasqal_graph_pattern_get_sub_graph_pattern</code> to get
  a sub-graph pattern inside a graph pattern by index.</li>
  <li><code>rasqal_graph_pattern_get_flags</code> to get a graph
  pattern's flags.</li>
  <li><code>rasqal_graph_pattern_print</code> to print a graph
  pattern in a debug form.</li>
</ul>

<p>Deprecated <code>rasqal_query_add_triple</code> as it doesn't
construct the graph patterns and is of little use as it does not
build the correct query structures.</p>

<p>Added query API methods to get the bound and all variables
in a query:  <code>rasqal_query_get_bound_variable_sequence</code>
and <code>rasqal_query_get_all_variable_sequence</code> respectively.
Deprecated <code>rasqal_query_get_variable_sequence</code> as
too ambiguous.</p>

<p>With the aid of gcc <code>-Wswitch-enum</code>, found and fixed
cases where switch on enumerated values were missing cases.  The
remaining cases return failure or an error message rather than
abort().  This fixed a crash when comparing for equality a variable
?x with a blank node value and an interger.</p>

<p>Deleted <code>RASQAL_EXPR_PATTERN</code> as it was never used.</p>

<p>Added <code>rasqal_query_get_distinct</code> to get a
query-specified distinct results flag.</p>

<p>Added <code>rasqal_query_get_limit</code> to get a query-specified
limit on the number of results.</p>



<h3>SPARQL Query Language Changes</h3>

<p>Updated some of the SPARQL syntax to match the changes in the
<a href="http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050217/">SPARQL Query Language for RDF</a>
W3C Working Draft of 17 February 2005.  Added <code>GRAPH</code>
replacing <code>SOURCE</code> and <code>WITH</code> replacing
<code>FROM</code>.  Added warnings about using the older forms
and about using <code>[</code>...<code>]</code> instead of
<code>OPTIONAL</code>.
</p>

<p>Added recording of <code>DISTINCT</code> and <code>LIMIT</code>
in the query structures but not yet used by the query engine.</p>



<h3>RDQL Query Language Changes</h3>

<p>None.</p>



<h2 id="rel0_9_6"><a name="rel0_9_6">Rasqal 0.9.6 Changes</a></h2>

<h3>General Changes</h3>

<p>Fix a bug in writing a query result to XML when blank nodes are
used. Now also correctly uses the base URI when pass in to the
writing method.</p>

<p>Added support for three types of query result - bindings (the only
one in previous versions), an RDF graph and a boolean.  Added
<code>rasqal_query_results</code> methods to test the type of the
result: <code>rasqal_query_results_is_bindings</code>,
<code>rasqal_query_results_is_boolean</code> and
<code>rasqal_query_results_is_graph</code>.</p>

<p>Added
<code>rasqal_query_results_get_triple</code>
to get current triple as a <code>raptor_statement</code>
and <code>rasqal_query_results_next_triple</code> to move to the next triple.
</p>

<p>Added 
<code>rasqal_query_results_get_boolean</code>
to get a boolean query result value.
</p>

<p>Added <code>rasqal_triple</code> copy constructor
<code>rasqal_new_triple_from_triple</code>.
</p>



<h3>Query Engine Changes</h3>

<p>Constructs an RDF graph result as a sequence of triples.  This
enables the SPARQL <code>CONSTRUCT</code> form to work.
</p>

<p>Can return a boolean result indicating that there were variable
binding results, but not returning them.  This enables the SPARQL
<code>ASK</code> form to work.
</p>

<p>Added a new function expression - rasqal_op enum value
<code>RASQAL_EXPR_FUNCTION</code>, added new <code>name</code> and
<code>args</code> fields to the <code>rasqal_expression</code>
structure and added <code>rasqal_new_function_expression</code> to
construct this expression.
</p>

<p>Added new 1-argument expression <code>RASQAL_EXPR_STR</code>
returning a string version of the expression.</p>

<p>Added new 1-argument expressions operating on RDF literals:
<code>RASQAL_EXPR_LANG</code> returning the language string of an RDF literal,
<code>RASQAL_EXPR_DATATYPE</code> returning the datatype URI of an RDF literal.
</p>

<p>Added new 1-argument testing expressions returning booleans:
<code>RASQAL_EXPR_BOUND</code> true if the variable argument is bound to a value,
<code>RASQAL_EXPR_ISURI</code> true if the argument is a URI,
<code>RASQAL_EXPR_ISBLANK</code> true if the argument is a blank node and
<code>RASQAL_EXPR_ISLITERAL</code> true if the argument is an RDF literal.
</p>

<p>Fixed a problem in optional results returning extra results
with no new bindings.
</p>


<h3>SPARQL Query Language Changes</h3>

<p>The SPARQL Parser now allows UTF-8 and \u, \U in prefixes and
QNames.
</p>

<p>Now supports <code>CONSTRUCT</code> and <code>ASK</code>
queries using the updated query engine features.</p>

<p><code>OPTIONAL</code> can now be used wherever <code>[</code> ...
<code>]</code> could be used (parser bug fix).</p>

<p>Now supports the SPARQL built-in functions
<code>STR()</code> returning a string version of the expression,
<code>LANG()</code> returning the language string of an RDF literal,
<code>DATATYPE()</code> returning the datatype URI of an RDF literal,
<code>BOUND()</code> testing if a variable is bound,
<code>ISURI()</code> testing if an expression is a URI,
<code>ISBLANK()</code> testing if an expression is a blank node and
<code>ISLITERAL()</code> testing if an expression is an RDF literal.
</p>

<p>Now supports SPARQL <code>BASE</code> directive for setting the
base URI of a query.  This is <em>experimental</em> and may not be in
the next version or may not be in the final SPARQL language.</p>

<p>The parser now expands QNames correctly when used in literals like
<code>"blah"^^xsd:string</code>.
</p>


<h3>RDQL Query Language Changes</h3>

<p>The RDQL Parser now allows UTF-8 and \u, \U in prefixes and
QNames.  This makes RDQL testsuite tests S-03, S-04 and S-05 work.
</p>



<h2 id="rel0_9_5"><a name="rel0_9_5">Rasqal 0.9.5 Changes</a></h2>

<p>A release with major changes internal to the query engine to
operate over graph patterns instead of sequences of triple patterns
and to add execution of optional graph patterns.  Additionally the
query results can now be written in a recognised XML format.</p>

<p>This version of Rasqal requires
<a href="http://librdf.org/raptor/">Raptor</a> 1.4.4.</p>


<h3>Core Changes</h3>

<p>Added a <code>rasqal_graph_pattern</code> class for handling
matching a graph pattern (set of triple patterns) in an
<code>rasqal_query</code>.  RDQL only has one of these wheras SPARQL
may have many, and they may be nested (this may change, as SPARQL is
under development).</p>

<p>Added <code>rasqal_query_results_write</code> method to write
variable binding query results to a <code>raptor_iostream</code> in
the XML format defined by
<a href="http://www.w3.org/TR/2004/WD-rdf-sparql-XMLres-20041221/">SPARQL Variable Binding Results XML Format</a>, W3C Working Draft, 21 December 2004.
</p>



<h3>Query Engine Changes</h3>

<p>Updated the query engine to operate over graph patterns rather
than a single sequence of triple patterns.  The graph patterns may be
optional, which is used to implement SPARQL optionals.  Nested graph
patterns are constructed but cannot yet be executed.
</p>

<p>Added a unary minus expression type.</p>

<p>Improved the type promotion for expression evaluation.  Try to
evaluate strings as doubles or integers if the operation contains one
double or integer respectively.</p>

<p>Fixed a memory leak with string matches/non-matches.</p>


<h3>SPARQL Query Language Changes</h3>

<p>Optional graph patterns <code>OPTIONAL</code> and
<code>[</code> ... <code>]</code> now work.</p>

<p>Added the <code>{</code> ... <code>}</code> group syntax and
removed the <code>(</code> ... <code>)</code> form.</p>

<p><code>$</code> was added as an allowed variable prefixes.</p>

<p>A warning was added to show <code>SOURCE *</code> is ignored.</p>

<p>Added the <code>UNION</code> keyword, unsupported.</p>

<p>Rasqal now passes the
<a href="http://www.w3.org/2001/sw/DataAccess/">DAWG</a>
SPARQL 
<a href="http://www.w3.org/2001/sw/DataAccess/tests/">test cases</a>:
Optional triples (dawg-opt-query-001, dawg-opt-query-002,
dawg-opt-query-003, dawg-opt-query-004)
and examples from query WD (sparql-query-example-2.1a,
sparql-query-example-2.2a, sparql-query-example-2.3a,
sparql-query-example-2.4a, sparql-query-example-3)
</p>

<p>Allow UTF-8 qname prefixes and check name against XML name
constraints.</p>

<p>Recover lexer state from errors in regexes.</p>

<p>Terminate the lexer on a syntax error, rather than produce
multiple errors.</p>


<h3>RDQL Query Language Changes</h3>

<p>The lexer now handles UTF-8 qname prefixes, enabling RDQL
testsuite test S-02 to pass.</p>

<p>Allow UTF-8 qname prefixes and check name against XML name
constraints.</p>

<p>Recover lexer state from errors in regexes.</p>

<p>Terminate the lexer on a syntax error, rather than produce
multiple errors.</p>



<h2 id="rel0_9_4"><a name="rel0_9_4">Rasqal 0.9.4 Changes</a></h2>

<p>Pass on raptor parser errors to rasqal's error routines and
upwards.</p>

<p>Clean up several memory allocations when a query fails to prepare
or execute fully.</p>

<p>Fixed lexer jams when a query contained an illegal
variable name after a '?'.</p>

<p>Fixed lexer crashes when a query ended in a regex pattern like
<code>/abc/</code>.</p>

<p>Tidied up the testing framework so 'make distcheck' works.</p>


<h2 id="rel0_9_3"><a name="rel0_9_3">Rasqal 0.9.3 Changes</a></h2>

<p>Rasqal's License was changed from LGPL 2.1/MPL 1.1 to
LGPL 2.1/Apache 2</p>

<p>Added support for the
<a href="http://www.w3.org/TR/2004/WD-rdf-sparql-query-20041012/">
SPARQL Query Language for RDF</a>,
W3C Working Draft, 12 October 2004
from the W3C RDF Data Access Working Group (DAWG).
The support is at the basic syntax level - token lexer and grammar parser
which passes the first simple tests from the proposed
DAWG testcases.  No additional query engine support has been added for SPARQL
features that are not supported by RDQL.
</p>

<p>Queries can now be prepared and then executed multiple times.</p>

<p>Added configure <code>--enable-query-languages</code> option with
<code>rdql</code> and <code>sparql</code> as the choices.</p>

<p>Thanks to Chris Pointon for several patches to make Rasqal easier
to build under Win32.  Applied with some modifications.  Renamed the
RDQL and SPARQL syntax tokens ERROR to ERROR_TOKEN to help.</p>

<p>Added experimental support for querying multiple sources; the same
query is executed over each source in turn.  Also added some support
for returning the source URI which is not yet enabled as this feature
is in flux in the DAWG work.  This may change or be removed in future
versions.</p>

<p><code>roqet</code> can specify a data source URI on the command
line with <code>-s</code> / <code>--source</code>) <em>URI</em> for
queries executing against an implicit model.</p>

<p>Added the
<a href="http://www.w3.org/2001/sw/DataAccess/tests/">DAWG SPARQL test cases</a>
driven from the manifest.n3 format.  Created tests from the examples
in the working draft.</p>

<p>Added an experimental XML result format for bindings, based on
DAWG work.  Enabled in <code>roqet</code> with <code>-o xml</code>.
This is very likely to change or replaced in future versions.</p>

<p>Added <code>roqet</code> argument <code>-d</code> /
<code>--dump-query</code> to dump the processed query, rather than
do it by default (0.9.2 and earlier).</p>

<p><code>roqet</code> can now read queries from URIs, using
the <code>raptor_www</code> class to do the retrieval.</p>

<p>Fixed the <code>configure</code> checks for a posix regex
function regcomp to correctly discover it is present.</p>


<h3>Internal changes</h3>

<p>Added support for declaring prefixes for XML-style QNames both
before and after their use.</p>

<p>The struct <code>rasqal_prefix</code> gained a
<code>declared</code> field.</p>

<p>The struct <code>rasqal_triple</code> gained an origin field; not
used at present but intended to support work on tracking triple
provenance such as provided by Redland Contexts.</p>

<p>Added methods <code>rasqal_triple_set_origin</code> and
<code>rasqal_triple_get_origin</code> to support the above.</p>

<p>struct <code>rasqal_triple_meta</code> now takes a 4-array of
bindings, the fourth being the origin.</p>

<p>Exported function <code>rasqal_set_triples_source_factory</code>
publically as originally intended.
</p>


<h2 id="rel0_9_2"><a name="rel0_9_2">Rasqal 0.9.2 Changes</a></h2>

<p>This release made minor portability fixes for building with
C++ and Win32 (untested).</p>

<p>Several functions changed their parameters or return values from
char* to unsigned char* or const unsigned char* to reflect the
actual use.</p>

<p>Changed to return a <code>const unsigned char*</code>:<br />
<code>rasqal_literal_as_string</code>
</p>

<p>Changed to take <code>const unsigned char*</code> (or add
<code>const</code>):<br />
<code>rasqal_new_floating_literal</code><br />
<code>rasqal_new_pattern_literal</code><br />
<code>rasqal_new_prefix</code><br />
<code>rasqal_new_simple_literal</code><br />
<code>rasqal_new_string_literal</code><br />
<code>rasqal_new_variable</code><br />
<code>rasqal_query_has_variable</code><br />
<code>rasqal_query_results_get_binding_name</code><br />
<code>rasqal_query_results_get_binding_value_by_name</code><br />
<code>rasqal_query_results_get_bindings</code><br />
<code>rasqal_query_set_variable</code><br />
</p>


<h2 id="rel0_9_1"><a name="rel0_9_1">Rasqal 0.9.1 Changes</a></h2>

<p>This release changed the way that results were returned.  A new
<code>rasqal_query_results</code> class was created.  This allows for
a clean separation of the two concepts allowing multiple form of the
results to be retrieved as methods of the query_results class, rather
than the query class.  The only form of results currently available
is variable bindings, but RDF graphs will be returned in future,
as a set of triples in a serialised form.</p>

<p>The execution method <code>rasqal_query_execute</code> was changed
to return a new object of that class rather than an <code>int</code>
success or failure.</p>

<p>The following methods of the <code>rasqal_query</code> class
were renamed and moved to the new <code>rasqal_query_results</code>
class:</p>

<table>
<tr>
<th>0.9.0 name</th> <th>0.9.1+ name</th>
</tr>
<tr>
<td><code>rasqal_query_get_result_count</code></td> <td><code>rasqal_query_results_get_count</code></td>
</tr>
<tr>
<td><code>rasqal_query_next_result</code></td> <td><code>rasqal_query_results_next</code></td>
</tr>
<tr>
<td><code>rasqal_query_results_finished</code></td> <td><code>rasqal_query_results_finished</code></td>
</tr>
<tr>
<td><code>rasqal_query_get_result_bindings</code></td> <td><code>rasqal_query_results_get_bindings</code></td>
</tr>
<tr>
<td><code>rasqal_query_get_result_binding_value</code></td> <td><code>rasqal_query_results_get_binding_value</code></td>
</tr>
<tr>
<td><code>rasqal_query_get_result_binding_name</code></td> <td><code>rasqal_query_results_get_binding_name</code></td>
</tr>
<tr>
<td><code>rasqal_query_get_result_binding_by_name</code></td> <td><code>rasqal_query_results_get_binding_value_by_name</code></td>
</tr>
<tr>
<td><code>rasqal_query_get_bindings_count</code></td> <td><code>rasqal_query_results_get_bindings_count</code></td>
</tr>
</table>

<p>A new <code>rasqal_free_query_results</code> destructor was created
to delete the query results.  (There is no public constructor).</p>

<p>Other minor bugs were fixed such as multiple constraints now being
ANDed and not ORed, and adding defensive code for when queries fail
and results methods are invoked.</p>


<h2 id="rel0_9_0"><a name="rel0_9_0">Rasqal 0.9.0 Changes</a></h2>

<p>
It is all new.
</p>



<hr />

<p>Copyright (C) 2004-2010 <a href="http://www.dajobe.org/">Dave Beckett</a><br />Copyright (C) 2003-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p>

</body>
</html>