/usr/share/gtk-doc/html/rasqal/rasqal-section-query.html is in librasqal3-doc 0.9.32-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Query</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Rasqal RDF Query Library Manual">
<link rel="up" href="reference-manual.html" title="Part I. Reference Manual">
<link rel="prev" href="rasqal-section-prefix.html" title="Prefixes">
<link rel="next" href="rasqal-section-query-results.html" title="Query Results">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="rasqal-section-prefix.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="reference-manual.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Rasqal RDF Query Library Manual</th>
<td><a accesskey="n" href="rasqal-section-query-results.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#rasqal-section-query.synopsis" class="shortcut">Top</a>
|
<a href="#rasqal-section-query.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="rasqal-section-query"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="rasqal-section-query.top_of_page"></a>Query</span></h2>
<p>Query — Query object API, parsing and execution</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="rasqal-section-query.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">enum <a class="link" href="rasqal-section-query.html#rasqal-query-verb" title="enum rasqal_query_verb">rasqal_query_verb</a>;
typedef <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query">rasqal_query</a>;
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="returnvalue">rasqal_query</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-new-query" title="rasqal_new_query ()">rasqal_new_query</a> (<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *world</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query.html#rasqal-free-query" title="rasqal_free_query ()">rasqal_free_query</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-add-data-graph" title="rasqal_query_add_data_graph ()">rasqal_query_add_data_graph</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> *data_graph</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-add-data-graphs" title="rasqal_query_add_data_graphs ()">rasqal_query_add_data_graphs</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">raptor_sequence</span> *data_graphs</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-add-prefix" title="rasqal_query_add_prefix ()">rasqal_query_add_prefix</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-prefix.html#rasqal-prefix" title="rasqal_prefix"><span class="type">rasqal_prefix</span></a> *prefix</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-add-variable" title="rasqal_query_add_variable ()">rasqal_query_add_variable</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> *var</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-dataset-contains-named-graph" title="rasqal_query_dataset_contains_named_graph ()">rasqal_query_dataset_contains_named_graph</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *graph_uri</code></em>);
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="returnvalue">rasqal_query_results</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-execute" title="rasqal_query_execute ()">rasqal_query_execute</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-all-variable-sequence" title="rasqal_query_get_all_variable_sequence ()">rasqal_query_get_all_variable_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-anonymous-variable-sequence" title="rasqal_query_get_anonymous_variable_sequence ()">rasqal_query_get_anonymous_variable_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-row.html#rasqal-row" title="rasqal_row"><span class="returnvalue">rasqal_row</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-bindings-row" title="rasqal_query_get_bindings_row ()">rasqal_query_get_bindings_row</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-bindings-rows-sequence" title="rasqal_query_get_bindings_rows_sequence ()">rasqal_query_get_bindings_rows_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-bindings-variable" title="rasqal_query_get_bindings_variable ()">rasqal_query_get_bindings_variable</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-bindings-variables-sequence" title="rasqal_query_get_bindings_variables_sequence ()">rasqal_query_get_bindings_variables_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-bound-variable-sequence" title="rasqal_query_get_bound_variable_sequence ()">rasqal_query_get_bound_variable_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="returnvalue">rasqal_triple</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-construct-triple" title="rasqal_query_get_construct_triple ()">rasqal_query_get_construct_triple</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-construct-triples-sequence" title="rasqal_query_get_construct_triples_sequence ()">rasqal_query_get_construct_triples_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="returnvalue">rasqal_data_graph</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-data-graph" title="rasqal_query_get_data_graph ()">rasqal_query_get_data_graph</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-data-graph-sequence" title="rasqal_query_get_data_graph_sequence ()">rasqal_query_get_data_graph_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-describe-sequence" title="rasqal_query_get_describe_sequence ()">rasqal_query_get_describe_sequence</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-get-distinct" title="rasqal_query_get_distinct ()">rasqal_query_get_distinct</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-get-explain" title="rasqal_query_get_explain ()">rasqal_query_get_explain</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="returnvalue">rasqal_expression</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-group-condition" title="rasqal_query_get_group_condition ()">rasqal_query_get_group_condition</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-group-conditions-sequence" title="rasqal_query_get_group_conditions_sequence ()">rasqal_query_get_group_conditions_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="returnvalue">rasqal_graph_pattern</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-graph-pattern" title="rasqal_query_get_graph_pattern ()">rasqal_query_get_graph_pattern</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-graph-pattern-sequence" title="rasqal_query_get_graph_pattern_sequence ()">rasqal_query_get_graph_pattern_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="returnvalue">rasqal_expression</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-having-condition" title="rasqal_query_get_having_condition ()">rasqal_query_get_having_condition</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-having-conditions-sequence" title="rasqal_query_get_having_conditions_sequence ()">rasqal_query_get_having_conditions_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-label" title="rasqal_query_get_label ()">rasqal_query_get_label</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-get-limit" title="rasqal_query_get_limit ()">rasqal_query_get_limit</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-name" title="rasqal_query_get_name ()">rasqal_query_get_name</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-get-offset" title="rasqal_query_get_offset ()">rasqal_query_get_offset</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="returnvalue">rasqal_expression</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-order-condition" title="rasqal_query_get_order_condition ()">rasqal_query_get_order_condition</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-order-conditions-sequence" title="rasqal_query_get_order_conditions_sequence ()">rasqal_query_get_order_conditions_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-prefix.html#rasqal-prefix" title="rasqal_prefix"><span class="returnvalue">rasqal_prefix</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-prefix" title="rasqal_query_get_prefix ()">rasqal_query_get_prefix</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-prefix-sequence" title="rasqal_query_get_prefix_sequence ()">rasqal_query_get_prefix_sequence</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="returnvalue">rasqal_graph_pattern</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-query-graph-pattern" title="rasqal_query_get_query_graph_pattern ()">rasqal_query_get_query_graph_pattern</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="returnvalue">rasqal_triple</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-triple" title="rasqal_query_get_triple ()">rasqal_query_get_triple</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-triple-sequence" title="rasqal_query_get_triple_sequence ()">rasqal_query_get_triple_sequence</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">void</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-user-data" title="rasqal_query_get_user_data ()">rasqal_query_get_user_data</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-variable" title="rasqal_query_get_variable ()">rasqal_query_get_variable</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<a class="link" href="rasqal-section-query.html#rasqal-query-verb" title="enum rasqal_query_verb"><span class="returnvalue">rasqal_query_verb</span></a> <a class="link" href="rasqal-section-query.html#rasqal-query-get-verb" title="rasqal_query_get_verb ()">rasqal_query_get_verb</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-get-wildcard" title="rasqal_query_get_wildcard ()">rasqal_query_get_wildcard</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-has-variable2" title="rasqal_query_has_variable2 ()">rasqal_query_has_variable2</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-has-variable" title="rasqal_query_has_variable ()">rasqal_query_has_variable</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-prepare" title="rasqal_query_prepare ()">rasqal_query_prepare</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *query_string</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *base_uri</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-print" title="rasqal_query_print ()">rasqal_query_print</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-graph-pattern-visit2" title="rasqal_query_graph_pattern_visit2 ()">rasqal_query_graph_pattern_visit2</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern-visit-fn" title="rasqal_graph_pattern_visit_fn ()"><span class="type">rasqal_graph_pattern_visit_fn</span></a> visit_fn</code></em>,
<em class="parameter"><code><span class="type">void</span> *data</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query.html#rasqal-query-graph-pattern-visit" title="rasqal_query_graph_pattern_visit ()">rasqal_query_graph_pattern_visit</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern-visit-fn" title="rasqal_graph_pattern_visit_fn ()"><span class="type">rasqal_graph_pattern_visit_fn</span></a> visit_fn</code></em>,
<em class="parameter"><code><span class="type">void</span> *data</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-distinct" title="rasqal_query_set_distinct ()">rasqal_query_set_distinct</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> distinct_mode</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-explain" title="rasqal_query_set_explain ()">rasqal_query_set_explain</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> is_explain</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-limit" title="rasqal_query_set_limit ()">rasqal_query_set_limit</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> limit</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-offset" title="rasqal_query_set_offset ()">rasqal_query_set_offset</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> offset</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-user-data" title="rasqal_query_set_user_data ()">rasqal_query_set_user_data</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-variable2" title="rasqal_query_set_variable2 ()">rasqal_query_set_variable2</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *value</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-variable" title="rasqal_query_set_variable ()">rasqal_query_set_variable</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *value</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-store-results" title="rasqal_query_set_store_results ()">rasqal_query_set_store_results</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> store_results</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-wildcard" title="rasqal_query_set_wildcard ()">rasqal_query_set_wildcard</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> wildcard</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-verb-as-string" title="rasqal_query_verb_as_string ()">rasqal_query_verb_as_string</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query-verb" title="enum rasqal_query_verb"><span class="type">rasqal_query_verb</span></a> verb</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-write" title="rasqal_query_write ()">rasqal_query_write</a> (<em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *format_uri</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *base_uri</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-iostream-write-escaped-counted-string" title="rasqal_query_iostream_write_escaped_counted_string ()">rasqal_query_iostream_write_escaped_counted_string</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *string</code></em>,
<em class="parameter"><code><span class="type">size_t</span> len</code></em>);
unsigned <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-escape-counted-string" title="rasqal_query_escape_counted_string ()">rasqal_query_escape_counted_string</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *string</code></em>,
<em class="parameter"><code><span class="type">size_t</span> len</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *output_len_p</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-feature" title="rasqal_query_set_feature ()">rasqal_query_set_feature</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>,
<em class="parameter"><code><span class="type">int</span> value</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-set-feature-string" title="rasqal_query_set_feature_string ()">rasqal_query_set_feature_string</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *value</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query.html#rasqal-query-get-feature" title="rasqal_query_get_feature ()">rasqal_query_get_feature</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>);
const unsigned <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-feature-string" title="rasqal_query_get_feature_string ()">rasqal_query_get_feature_string</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>);
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results-type" title="enum rasqal_query_results_type"><span class="returnvalue">rasqal_query_results_type</span></a> <a class="link" href="rasqal-section-query.html#rasqal-query-get-result-type" title="rasqal_query_get_result_type ()">rasqal_query_get_result_type</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
<a class="link" href="rasqal-section-updates.html#rasqal-update-operation" title="rasqal_update_operation"><span class="returnvalue">rasqal_update_operation</span></a> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-update-operation" title="rasqal_query_get_update_operation ()">rasqal_query_get_update_operation</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);
<span class="returnvalue">raptor_sequence</span> * <a class="link" href="rasqal-section-query.html#rasqal-query-get-update-operations-sequence" title="rasqal_query_get_update_operations_sequence ()">rasqal_query_get_update_operations_sequence</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="rasqal-section-query.description"></a><h2>Description</h2>
<p>
This class provides the main interface to the library. A query
can be constructed by parsing a string, retrieving it from a URI
and/or constructing it via API methods to build the query expression.
</p>
<p>The query structures can be read via methods to return
the query verb <a class="link" href="rasqal-section-query.html#rasqal-query-get-verb" title="rasqal_query_get_verb ()"><code class="function">rasqal_query_get_verb()</code></a>,
the <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> RDF data sources with <a class="link" href="rasqal-section-query.html#rasqal-query-get-data-graph" title="rasqal_query_get_data_graph ()"><code class="function">rasqal_query_get_data_graph()</code></a> etc.,
the <a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="type">rasqal_graph_pattern</span></a> tree with <a class="link" href="rasqal-section-query.html#rasqal-query-get-query-graph-pattern" title="rasqal_query_get_query_graph_pattern ()"><code class="function">rasqal_query_get_query_graph_pattern()</code></a>,
the sequence of order conditions with <a class="link" href="rasqal-section-query.html#rasqal-query-get-order-condition" title="rasqal_query_get_order_condition ()"><code class="function">rasqal_query_get_order_condition()</code></a> etc.,
the <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> selected to return with
<a class="link" href="rasqal-section-query.html#rasqal-query-get-bound-variable-sequence" title="rasqal_query_get_bound_variable_sequence ()"><code class="function">rasqal_query_get_bound_variable_sequence()</code></a> or <a class="link" href="rasqal-section-query.html#rasqal-query-get-all-variable-sequence" title="rasqal_query_get_all_variable_sequence ()"><code class="function">rasqal_query_get_all_variable_sequence()</code></a>,
and so on.
</p>
<p>
To process a query string, the <a class="link" href="rasqal-section-query.html#rasqal-query-prepare" title="rasqal_query_prepare ()"><code class="function">rasqal_query_prepare()</code></a> method
parses the query string in some query language and initialises
the <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> structures.
</p>
<p>
The query can be evaluated with the internal query engine against
some source of matches using <a class="link" href="rasqal-section-query.html#rasqal-query-execute" title="rasqal_query_execute ()"><code class="function">rasqal_query_execute()</code></a> to give an
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a>. There are multiple forms of results that
can include variable bindings, a boolean or an RDF graph that
can be tested for with methods on <a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> and
then retrieved.
</p>
</div>
<div class="refsect1">
<a name="rasqal-section-query.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="rasqal-query-verb"></a><h3>enum rasqal_query_verb</h3>
<pre class="programlisting">typedef enum {
/* internal */
RASQAL_QUERY_VERB_UNKNOWN = 0,
RASQAL_QUERY_VERB_SELECT = 1,
RASQAL_QUERY_VERB_CONSTRUCT = 2,
RASQAL_QUERY_VERB_DESCRIBE = 3,
RASQAL_QUERY_VERB_ASK = 4,
RASQAL_QUERY_VERB_DELETE = 5,
RASQAL_QUERY_VERB_INSERT = 6,
RASQAL_QUERY_VERB_UPDATE = 7,
/* internal */
RASQAL_QUERY_VERB_LAST = RASQAL_QUERY_VERB_UPDATE
} rasqal_query_verb;
</pre>
<p>
Query main operation verbs describing the major type of query
being performed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-UNKNOWN:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_UNKNOWN</code></span></p></td>
<td>Internal
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-SELECT:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_SELECT</code></span></p></td>
<td>SPARQL query select verb.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-CONSTRUCT:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_CONSTRUCT</code></span></p></td>
<td>SPARQL query construct verb.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-DESCRIBE:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_DESCRIBE</code></span></p></td>
<td>SPARQL query describe verb.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-ASK:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_ASK</code></span></p></td>
<td>SPARQL query ask verb.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-DELETE:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_DELETE</code></span></p></td>
<td>LAQRS query delete verb.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-INSERT:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_INSERT</code></span></p></td>
<td>LAQRS query insert verb.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-UPDATE:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_UPDATE</code></span></p></td>
<td>SPARQL 1.1 (draft) update operation
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-VERB-LAST:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_VERB_LAST</code></span></p></td>
<td>Internal
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query"></a><h3>rasqal_query</h3>
<pre class="programlisting">rasqal_graph_query* query;
</pre>
<p>
Rasqal query class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-query"></a><h3>rasqal_new_query ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="returnvalue">rasqal_query</span></a> * rasqal_new_query (<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *world</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
Constructor - create a new rasqal_query object.
</p>
<p>
A query language can be named or identified by a URI, either
of which is optional. The default query language will be used
if both are NULL. rasqal_world_get_query_language_description returns
the description of the known names, labels, MIME types and URIs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>rasqal_world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the query language name (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>
<span class="type">raptor_uri</span> language uri (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-free-query"></a><h3>rasqal_free_query ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_free_query (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Destructor - destroy a <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-add-data-graph"></a><h3>rasqal_query_add_data_graph ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_add_data_graph (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> *data_graph</code></em>);</pre>
<p>
Add a data graph to the query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_graph</code></em> :</span></p></td>
<td>data graph</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-add-data-graphs"></a><h3>rasqal_query_add_data_graphs ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_add_data_graphs (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">raptor_sequence</span> *data_graphs</code></em>);</pre>
<p>
Add a set of data graphs to the query.
</p>
<p>
The objects in the passed-in <em class="parameter"><code>data_graphs</code></em> sequence becomes owne by the query.
The <em class="parameter"><code>data_graphs</code></em> sequence itself is freed and must not be used after this call.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_graphs</code></em> :</span></p></td>
<td>sequence of <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-add-prefix"></a><h3>rasqal_query_add_prefix ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_add_prefix (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-prefix.html#rasqal-prefix" title="rasqal_prefix"><span class="type">rasqal_prefix</span></a> *prefix</code></em>);</pre>
<p>
Add a namespace prefix to the query.
</p>
<p>
If the prefix has already been used, the old URI will be overridden.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prefix</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-prefix.html#rasqal-prefix" title="rasqal_prefix"><span class="type">rasqal_prefix</span></a> namespace prefix, URI</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-add-variable"></a><h3>rasqal_query_add_variable ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_add_variable (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> *var</code></em>);</pre>
<p>
Add a projected (named) variable to the query.
</p>
<p>
See also <a class="link" href="rasqal-section-query.html#rasqal-query-set-variable" title="rasqal_query_set_variable ()"><code class="function">rasqal_query_set_variable()</code></a> which assigns or removes a value to
a previously added variable in the query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>var</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> variable</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-dataset-contains-named-graph"></a><h3>rasqal_query_dataset_contains_named_graph ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_dataset_contains_named_graph
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *graph_uri</code></em>);</pre>
<p>
Test if the query dataset contains a named graph
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>graph_uri</code></em> :</span></p></td>
<td>query URI</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if the dataset contains a named graph</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-execute"></a><h3>rasqal_query_execute ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="returnvalue">rasqal_query_results</span></a> * rasqal_query_execute (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Excute a query - run and return results.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> structure or NULL on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-all-variable-sequence"></a><h3>rasqal_query_get_all_variable_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_all_variable_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of all variables mentioned in the query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-anonymous-variable-sequence"></a><h3>rasqal_query_get_anonymous_variable_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_anonymous_variable_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of anonymous variables mentioned in the query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-bindings-row"></a><h3>rasqal_query_get_bindings_row ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-row.html#rasqal-row" title="rasqal_row"><span class="returnvalue">rasqal_row</span></a> * rasqal_query_get_bindings_row (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a rasqal_row* in the sequence of BINDINGS block result rows
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <span class="type">raptor_row</span> pointers</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-bindings-rows-sequence"></a><h3>rasqal_query_get_bindings_rows_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_bindings_rows_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of BINDINGS block result rows
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <span class="type">raptor_row</span> pointers</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-bindings-variable"></a><h3>rasqal_query_get_bindings_variable ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * rasqal_query_get_bindings_variable (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a rasqal_variable* in the sequence of BINDINGS block variables
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <span class="type">raptor_variable</span> pointers</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-bindings-variables-sequence"></a><h3>rasqal_query_get_bindings_variables_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_bindings_variables_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of BINDINGS block variables
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <span class="type">raptor_variable</span> pointers</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-bound-variable-sequence"></a><h3>rasqal_query_get_bound_variable_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_bound_variable_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of projected variables in the query.
</p>
<p>
This returns the sequence of variables that are explicitly chosen
via SELECT in SPARQL. Or all variables mentioned with SELECT *
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-construct-triple"></a><h3>rasqal_query_get_construct_triple ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="returnvalue">rasqal_triple</span></a> * rasqal_query_get_construct_triple (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a triple in the sequence of construct triples.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="type">rasqal_triple</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-construct-triples-sequence"></a><h3>rasqal_query_get_construct_triples_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_construct_triples_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of triples for a construct.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="type">rasqal_triple</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-data-graph"></a><h3>rasqal_query_get_data_graph ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="returnvalue">rasqal_data_graph</span></a> * rasqal_query_get_data_graph (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a rasqal_data_graph* in the sequence of data_graphs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-data-graph-sequence"></a><h3>rasqal_query_get_data_graph_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_data_graph_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of data_graph URIs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <span class="type">raptor_uri</span> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-describe-sequence"></a><h3>rasqal_query_get_describe_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_describe_sequence (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of literals described in the query.
</p>
<p>
This returns the sequence of literals (constants or variables) that are
explicitly chosen via DESCRIBE in SPARQL.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-distinct"></a><h3>rasqal_query_get_distinct ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_get_distinct (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the query distinct mode
</p>
<p>
See <a class="link" href="rasqal-section-query.html#rasqal-query-set-distinct" title="rasqal_query_set_distinct ()"><code class="function">rasqal_query_set_distinct()</code></a> for the distinct modes.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if the results should be distinct</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-explain"></a><h3>rasqal_query_get_explain ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_get_explain (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the query explain results flag.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if the results should be explain</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-group-condition"></a><h3>rasqal_query_get_group_condition ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="returnvalue">rasqal_expression</span></a> * rasqal_query_get_group_condition (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a query grouping expression in the sequence of query grouping conditions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="type">rasqal_expression</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-group-conditions-sequence"></a><h3>rasqal_query_get_group_conditions_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_group_conditions_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of query grouping conditions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="type">rasqal_expression</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-graph-pattern"></a><h3>rasqal_query_get_graph_pattern ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="returnvalue">rasqal_graph_pattern</span></a> * rasqal_query_get_graph_pattern (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a graph_pattern in the sequence of graph_pattern expressions in the top query graph pattern.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="type">rasqal_graph_pattern</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-graph-pattern-sequence"></a><h3>rasqal_query_get_graph_pattern_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_graph_pattern_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of graph_patterns expressions inside the top query graph pattern.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="type">rasqal_graph_pattern</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-having-condition"></a><h3>rasqal_query_get_having_condition ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="returnvalue">rasqal_expression</span></a> * rasqal_query_get_having_condition (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a query having expression in the sequence of query havinging conditions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="type">rasqal_expression</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-having-conditions-sequence"></a><h3>rasqal_query_get_having_conditions_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_having_conditions_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of query having conditions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="type">rasqal_expression</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-label"></a><h3>rasqal_query_get_label ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * rasqal_query_get_label (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get a readable label for the query language.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>shared string label value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-limit"></a><h3>rasqal_query_get_limit ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_get_limit (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the query-specified limit on results.
</p>
<p>
This is the limit given in the query on the number of results allowed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>integer >=0 if a limit is given, otherwise <0</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-name"></a><h3>rasqal_query_get_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * rasqal_query_get_name (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get a short name for the query language.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>shared string label value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-offset"></a><h3>rasqal_query_get_offset ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_get_offset (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the query-specified offset on results.
</p>
<p>
This is the offset given in the query on the number of results
allowed. It is only guaranteed to work after the query is
prepared and before it is executed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>integer >=0 if a offset is given, otherwise <0</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-order-condition"></a><h3>rasqal_query_get_order_condition ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="returnvalue">rasqal_expression</span></a> * rasqal_query_get_order_condition (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a query ordering expression in the sequence of query ordering conditions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="type">rasqal_expression</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-order-conditions-sequence"></a><h3>rasqal_query_get_order_conditions_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_order_conditions_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of query ordering conditions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-expression.html#rasqal-expression" title="rasqal_expression"><span class="type">rasqal_expression</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-prefix"></a><h3>rasqal_query_get_prefix ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-prefix.html#rasqal-prefix" title="rasqal_prefix"><span class="returnvalue">rasqal_prefix</span></a> * rasqal_query_get_prefix (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a prefix in the sequence of namespsace prefixes in the query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-prefix.html#rasqal-prefix" title="rasqal_prefix"><span class="type">rasqal_prefix</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-prefix-sequence"></a><h3>rasqal_query_get_prefix_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_prefix_sequence (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of namespace prefixes in the query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-prefix.html#rasqal-prefix" title="rasqal_prefix"><span class="type">rasqal_prefix</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-query-graph-pattern"></a><h3>rasqal_query_get_query_graph_pattern ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="returnvalue">rasqal_graph_pattern</span></a> * rasqal_query_get_query_graph_pattern
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the top query graph pattern.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="type">rasqal_graph_pattern</span></a> of the top query graph pattern</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-triple"></a><h3>rasqal_query_get_triple ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="returnvalue">rasqal_triple</span></a> * rasqal_query_get_triple (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a triple in the sequence of matching triples in the query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="type">rasqal_triple</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-triple-sequence"></a><h3>rasqal_query_get_triple_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_triple_sequence (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of matching triples in the query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="type">rasqal_triple</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-user-data"></a><h3>rasqal_query_get_user_data ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> * rasqal_query_get_user_data (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get query user data.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>user data as set by <a class="link" href="rasqal-section-query.html#rasqal-query-set-user-data" title="rasqal_query_set_user_data ()"><code class="function">rasqal_query_set_user_data()</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-variable"></a><h3>rasqal_query_get_variable ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * rasqal_query_get_variable (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a variable in the query
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> pointer or NULL if out of range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-verb"></a><h3>rasqal_query_get_verb ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-query.html#rasqal-query-verb" title="enum rasqal_query_verb"><span class="returnvalue">rasqal_query_verb</span></a> rasqal_query_get_verb (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the query verb.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the operating verb of the query of type rasqal_query_verb</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-wildcard"></a><h3>rasqal_query_get_wildcard ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_get_wildcard (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the query verb is wildcard flag.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if the query verb was a wildcard (such as SELECT *)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-has-variable2"></a><h3>rasqal_query_has_variable2 ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_has_variable2 (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
<p>
Find if the named variable of the given type is in the query
</p>
<p>
Note that looking up for any type <a class="link" href="rasqal-section-variable.html#RASQAL-VARIABLE-TYPE-UNKNOWN:CAPS"><span class="type">RASQAL_VARIABLE_TYPE_UNKNOWN</span></a>
may a name match but for any type so in cases where the query has
both a named and anonymous (extensional) variable, an arbitrary one
will be returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>the variable type to match or <a class="link" href="rasqal-section-variable.html#RASQAL-VARIABLE-TYPE-UNKNOWN:CAPS"><span class="type">RASQAL_VARIABLE_TYPE_UNKNOWN</span></a> for any.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>variable name</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if the variable name was found.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-has-variable"></a><h3>rasqal_query_has_variable ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_has_variable (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
<p>
Find if the named variable is in the query (of any type)
</p>
<p>
<em class="parameter"><code>Deprecated</code></em>: Use <a class="link" href="rasqal-section-query.html#rasqal-query-has-variable2" title="rasqal_query_has_variable2 ()"><code class="function">rasqal_query_has_variable2()</code></a> with the variable type arg
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>variable name</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if the variable name was found.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-prepare"></a><h3>rasqal_query_prepare ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_prepare (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *query_string</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *base_uri</code></em>);</pre>
<p>
Prepare a query - typically parse it.
</p>
<p>
Some query languages may require a base URI to resolve any
relative URIs in the query string. If this is not given,
the current directory in the filesystem is used as the base URI.
</p>
<p>
The query string may be NULL in which case it is not parsed
and the query parts may be created by API calls such as
rasqal_query_add_source etc.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_string</code></em> :</span></p></td>
<td>the query string (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td>base URI of query string (optional)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-print"></a><h3>rasqal_query_print ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_print (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);</pre>
<p>
Print a query in a debug format.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td>
<td>the FILE* handle to print to.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-graph-pattern-visit2"></a><h3>rasqal_query_graph_pattern_visit2 ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_graph_pattern_visit2 (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern-visit-fn" title="rasqal_graph_pattern_visit_fn ()"><span class="type">rasqal_graph_pattern_visit_fn</span></a> visit_fn</code></em>,
<em class="parameter"><code><span class="type">void</span> *data</code></em>);</pre>
<p>
Visit all graph patterns in a query with a user function <em class="parameter"><code>visit_fn</code></em>.
</p>
<p>
See also <a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern-visit" title="rasqal_graph_pattern_visit ()"><code class="function">rasqal_graph_pattern_visit()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>query</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visit_fn</code></em> :</span></p></td>
<td>user function to operate on</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user data to pass to function</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result from visit function <em class="parameter"><code>visit_fn</code></em> if it returns non-0</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-graph-pattern-visit"></a><h3>rasqal_query_graph_pattern_visit ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_query_graph_pattern_visit (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern-visit-fn" title="rasqal_graph_pattern_visit_fn ()"><span class="type">rasqal_graph_pattern_visit_fn</span></a> visit_fn</code></em>,
<em class="parameter"><code><span class="type">void</span> *data</code></em>);</pre>
<p>
Visit all graph patterns in a query with a user function <em class="parameter"><code>visit_fn</code></em>.
</p>
<p>
<em class="parameter"><code>Deprecated</code></em>: use <a class="link" href="rasqal-section-query.html#rasqal-query-graph-pattern-visit2" title="rasqal_query_graph_pattern_visit2 ()"><code class="function">rasqal_query_graph_pattern_visit2()</code></a> that returns the <em class="parameter"><code>visit_fn</code></em> status code.
</p>
<p>
See also <a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern-visit" title="rasqal_graph_pattern_visit ()"><code class="function">rasqal_graph_pattern_visit()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>query</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visit_fn</code></em> :</span></p></td>
<td>user function to operate on</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user data to pass to function</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-distinct"></a><h3>rasqal_query_set_distinct ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_query_set_distinct (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> distinct_mode</code></em>);</pre>
<p>
Set the query distinct results mode.
</p>
<p>
The allowed <em class="parameter"><code>distinct_mode</code></em> values are:
0 if not given
1 if DISTINCT: ensure solutions are unique
2 if SPARQL REDUCED: permit elimination of some non-unique solutions
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>distinct_mode</code></em> :</span></p></td>
<td>distinct mode</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-explain"></a><h3>rasqal_query_set_explain ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_query_set_explain (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> is_explain</code></em>);</pre>
<p>
Set the query explain results flag.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_explain</code></em> :</span></p></td>
<td>non-0 if explain</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-limit"></a><h3>rasqal_query_set_limit ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_query_set_limit (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> limit</code></em>);</pre>
<p>
Set the query-specified limit on results.
</p>
<p>
This is the limit given in the query on the number of results
allowed. It is only guaranteed to work after the query is
prepared and before it is executed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>limit</code></em> :</span></p></td>
<td>the limit on results, >=0 to set a limit, <0 to have no limit</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-offset"></a><h3>rasqal_query_set_offset ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_query_set_offset (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> offset</code></em>);</pre>
<p>
Set the query-specified offset on results.
</p>
<p>
This is the offset given in the query on the number of results allowed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td>offset for results, >=0 to set an offset, <0 to have no offset</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-user-data"></a><h3>rasqal_query_set_user_data ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_query_set_user_data (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
<p>
Set the query user data.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>some user data to associate with the query</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-variable2"></a><h3>rasqal_query_set_variable2 ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_set_variable2 (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-variable.html#rasqal-variable-type" title="enum rasqal_variable_type"><span class="type">rasqal_variable_type</span></a> type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *value</code></em>);</pre>
<p>
Bind an existing typed variable to a value to the query.
</p>
<p>
See also <a class="link" href="rasqal-section-query.html#rasqal-query-add-variable" title="rasqal_query_add_variable ()"><code class="function">rasqal_query_add_variable()</code></a> which adds a new binding variable
and must be called before this method is invoked.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>the variable type to match or <a class="link" href="rasqal-section-variable.html#RASQAL-VARIABLE-TYPE-UNKNOWN:CAPS"><span class="type">RASQAL_VARIABLE_TYPE_UNKNOWN</span></a> for any.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> variable</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> value to set or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-variable"></a><h3>rasqal_query_set_variable ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_set_variable (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *value</code></em>);</pre>
<p>
Bind an existing named (selected) variable to a value to the query.
</p>
<p>
<em class="parameter"><code>Deprecated</code></em> for <a class="link" href="rasqal-section-query.html#rasqal-query-set-variable2" title="rasqal_query_set_variable2 ()"><code class="function">rasqal_query_set_variable2()</code></a> that includes a type
arg. This function only sets named variables of type
<a class="link" href="rasqal-section-variable.html#RASQAL-VARIABLE-TYPE-NORMAL:CAPS"><span class="type">RASQAL_VARIABLE_TYPE_NORMAL</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> variable</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> value to set or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-store-results"></a><h3>rasqal_query_set_store_results ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_set_store_results (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> store_results</code></em>);</pre>
<p>
Request that query results are stored during execution
</p>
<p>
When called after a <a class="link" href="rasqal-section-query.html#rasqal-query-prepare" title="rasqal_query_prepare ()"><code class="function">rasqal_query_prepare()</code></a>, this tells
<a class="link" href="rasqal-section-query.html#rasqal-query-execute" title="rasqal_query_execute ()"><code class="function">rasqal_query_execute()</code></a> to execute the entire query immediately
rather than generate them lazily, and store all the results in
memory. The results will then be available for reading multiple
times using <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-rewind" title="rasqal_query_results_rewind ()"><code class="function">rasqal_query_results_rewind()</code></a> to move back to the
start of the result object. If called after preparation, returns
failure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>store_results</code></em> :</span></p></td>
<td>store results flag</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-wildcard"></a><h3>rasqal_query_set_wildcard ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_query_set_wildcard (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> wildcard</code></em>);</pre>
<p>
Set the query projection wildcard flag
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>wildcard</code></em> :</span></p></td>
<td>wildcard</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-verb-as-string"></a><h3>rasqal_query_verb_as_string ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * rasqal_query_verb_as_string (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query-verb" title="enum rasqal_query_verb"><span class="type">rasqal_query_verb</span></a> verb</code></em>);</pre>
<p>
Get a string for the query verb.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>verb</code></em> :</span></p></td>
<td>the <a class="link" href="rasqal-section-query.html#rasqal-query-verb" title="enum rasqal_query_verb"><span class="type">rasqal_query_verb</span></a> verb of the query</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to a shared string label for the query verb</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-write"></a><h3>rasqal_query_write ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_write (<em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *format_uri</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *base_uri</code></em>);</pre>
<p>
Write a query to an iostream in a specified format.
</p>
<p>
The supported URIs for the format_uri are:
</p>
<p>
Default: SPARQL Query Language 2006-04-06
http://www.w3.org/TR/2006/CR-rdf-sparql-query-20060406/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>iostr</code></em> :</span></p></td>
<td>
<span class="type">raptor_iostream</span> to write the query to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> pointer.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format_uri</code></em> :</span></p></td>
<td>
<span class="type">raptor_uri</span> describing the format to write (or NULL for default)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td>
<span class="type">raptor_uri</span> base URI of the output format</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-iostream-write-escaped-counted-string"></a><h3>rasqal_query_iostream_write_escaped_counted_string ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_iostream_write_escaped_counted_string
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *string</code></em>,
<em class="parameter"><code><span class="type">size_t</span> len</code></em>);</pre>
<p>
Write a string to an iostream in escaped form suitable for the query string.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iostr</code></em> :</span></p></td>
<td>
<span class="type">raptor_iostream</span> to write the escaped string to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td>string to escape</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
<td>Length of string to escape</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-escape-counted-string"></a><h3>rasqal_query_escape_counted_string ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> * rasqal_query_escape_counted_string (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *string</code></em>,
<em class="parameter"><code><span class="type">size_t</span> len</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *output_len_p</code></em>);</pre>
<p>
Convert a string into an escaped form suitable for the query string.
</p>
<p>
The returned string must be freed by the caller with
<a class="link" href="rasqal-section-general.html#rasqal-free-memory" title="rasqal_free_memory ()"><code class="function">rasqal_free_memory()</code></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td>string to escape</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
<td>Length of string to escape</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>output_len_p</code></em> :</span></p></td>
<td>Pointer to store length of output string (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the escaped string or NULL on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-feature"></a><h3>rasqal_query_set_feature ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_set_feature (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>,
<em class="parameter"><code><span class="type">int</span> value</code></em>);</pre>
<p>
Set various query features.
</p>
<p>
The allowed features are available via <a class="link" href="rasqal-section-general.html#rasqal-features-enumerate" title="rasqal_features_enumerate ()"><code class="function">rasqal_features_enumerate()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td>feature to set from enumerated <a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> values</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>integer feature value</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non 0 on failure or if the feature is unknown</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-set-feature-string"></a><h3>rasqal_query_set_feature_string ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_set_feature_string (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *value</code></em>);</pre>
<p>
Set query features with string values.
</p>
<p>
The allowed features are available via <a class="link" href="rasqal-section-general.html#rasqal-features-enumerate" title="rasqal_features_enumerate ()"><code class="function">rasqal_features_enumerate()</code></a>.
If the feature type is integer, the value is interpreted as an integer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td>feature to set from enumerated <a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> values</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>feature value</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non 0 on failure or if the feature is unknown</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-feature"></a><h3>rasqal_query_get_feature ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_get_feature (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>);</pre>
<p>
Get various query features.
</p>
<p>
The allowed features are available via <a class="link" href="rasqal-section-general.html#rasqal-features-enumerate" title="rasqal_features_enumerate ()"><code class="function">rasqal_features_enumerate()</code></a>.
</p>
<p>
Note: no feature value is negative
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td>feature to get value</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>feature value or < 0 for an illegal feature</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-feature-string"></a><h3>rasqal_query_get_feature_string ()</h3>
<pre class="programlisting">const unsigned <span class="returnvalue">char</span> * rasqal_query_get_feature_string (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>);</pre>
<p>
Get query features with string values.
</p>
<p>
The allowed features are available via <a class="link" href="rasqal-section-general.html#rasqal-features-enumerate" title="rasqal_features_enumerate ()"><code class="function">rasqal_features_enumerate()</code></a>.
If a string is returned, it must be freed by the caller.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td>feature to get value</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>feature value or NULL for an illegal feature or no value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-result-type"></a><h3>rasqal_query_get_result_type ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-query-results.html#rasqal-query-results-type" title="enum rasqal_query_results_type"><span class="returnvalue">rasqal_query_results_type</span></a> rasqal_query_get_result_type (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the result type expected from executing the query.
</p>
<p>
This function is only valid after <a class="link" href="rasqal-section-query.html#rasqal-query-prepare" title="rasqal_query_prepare ()"><code class="function">rasqal_query_prepare()</code></a> has been
run on the query and will return <a class="link" href="rasqal-section-query-results.html#RASQAL-QUERY-RESULTS-UNKNOWN:CAPS"><span class="type">RASQAL_QUERY_RESULTS_UNKNOWN</span></a> if
called before preparation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result type or <a class="link" href="rasqal-section-query-results.html#RASQAL-QUERY-RESULTS-UNKNOWN:CAPS"><span class="type">RASQAL_QUERY_RESULTS_UNKNOWN</span></a> if not known or on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-update-operation"></a><h3>rasqal_query_get_update_operation ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-updates.html#rasqal-update-operation" title="rasqal_update_operation"><span class="returnvalue">rasqal_update_operation</span></a> * rasqal_query_get_update_operation
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">int</span> idx</code></em>);</pre>
<p>
Get a query update operation in the sequence of update operations
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
<td>index into the sequence (0 or larger)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="rasqal-section-updates.html#rasqal-update-operation" title="rasqal_update_operation"><span class="type">rasqal_update_operation</span></a> pointer or NULL if out of the sequence range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-get-update-operations-sequence"></a><h3>rasqal_query_get_update_operations_sequence ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_sequence</span> * rasqal_query_get_update_operations_sequence
(<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>);</pre>
<p>
Get the sequence of update operations
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> query object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">raptor_sequence</span> of <a class="link" href="rasqal-section-updates.html#rasqal-update-operation" title="rasqal_update_operation"><span class="type">rasqal_update_operation</span></a> pointers.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|