/usr/share/gtk-doc/html/rasqal/rasqal-section-query-results.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 | <!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 Results</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-query.html" title="Query">
<link rel="next" href="rasqal-section-query-results-formatter.html" title="Query Results Formatter">
<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-query.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-formatter.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-results.synopsis" class="shortcut">Top</a>
|
<a href="#rasqal-section-query-results.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="rasqal-section-query-results"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="rasqal-section-query-results.top_of_page"></a>Query Results</span></h2>
<p>Query Results — Query results as variable bindings, boolean or RDF graphs.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="rasqal-section-query-results.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">typedef <a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results">rasqal_query_results</a>;
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-query-results.html#rasqal-free-query-results" title="rasqal_free_query_results ()">rasqal_free_query_results</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-add-row" title="rasqal_query_results_add_row ()">rasqal_query_results_add_row</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-row.html#rasqal-row" title="rasqal_row"><span class="type">rasqal_row</span></a> *row</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-finished" title="rasqal_query_results_finished ()">rasqal_query_results_finished</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
const unsigned <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-get-binding-name" title="rasqal_query_results_get_binding_name ()">rasqal_query_results_get_binding_name</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code><span class="type">int</span> offset</code></em>);
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="returnvalue">rasqal_literal</span></a> * <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-get-binding-value" title="rasqal_query_results_get_binding_value ()">rasqal_query_results_get_binding_value</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code><span class="type">int</span> offset</code></em>);
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="returnvalue">rasqal_literal</span></a> * <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-get-binding-value-by-name" title="rasqal_query_results_get_binding_value_by_name ()">rasqal_query_results_get_binding_value_by_name</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</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-results.html#rasqal-query-results-get-bindings" title="rasqal_query_results_get_bindings ()">rasqal_query_results_get_bindings</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> ***names</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> ***values</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-get-bindings-count" title="rasqal_query_results_get_bindings_count ()">rasqal_query_results_get_bindings_count</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-get-boolean" title="rasqal_query_results_get_boolean ()">rasqal_query_results_get_boolean</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-get-count" title="rasqal_query_results_get_count ()">rasqal_query_results_get_count</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<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-results.html#rasqal-query-results-get-query" title="rasqal_query_results_get_query ()">rasqal_query_results_get_query</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">raptor_statement</span> * <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-get-triple" title="rasqal_query_results_get_triple ()">rasqal_query_results_get_triple</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</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-results.html#rasqal-query-results-get-row-by-offset" title="rasqal_query_results_get_row_by_offset ()">rasqal_query_results_get_row_by_offset</a>
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code><span class="type">int</span> result_offset</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-results.html#rasqal-query-results-get-type" title="rasqal_query_results_get_type ()">rasqal_query_results_get_type</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-is-bindings" title="rasqal_query_results_is_bindings ()">rasqal_query_results_is_bindings</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-is-boolean" title="rasqal_query_results_is_boolean ()">rasqal_query_results_is_boolean</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-is-graph" title="rasqal_query_results_is_graph ()">rasqal_query_results_is_graph</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-is-syntax" title="rasqal_query_results_is_syntax ()">rasqal_query_results_is_syntax</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-next" title="rasqal_query_results_next ()">rasqal_query_results_next</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-next-triple" title="rasqal_query_results_next_triple ()">rasqal_query_results_next_triple</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-read" title="rasqal_query_results_read ()">rasqal_query_results_read</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-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *results</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> *mime_type</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-results.html#rasqal-query-results-write" title="rasqal_query_results_write ()">rasqal_query_results_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-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *results</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> *mime_type</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>);
enum <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-type" title="enum rasqal_query_results_type">rasqal_query_results_type</a>;
const <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-type-label" title="rasqal_query_results_type_label ()">rasqal_query_results_type_label</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results-type" title="enum rasqal_query_results_type"><span class="type">rasqal_query_results_type</span></a> type</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-rewind" title="rasqal_query_results_rewind ()">rasqal_query_results_rewind</a> (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="rasqal-section-query-results.description"></a><h2>Description</h2>
<p>
A query results object is only ever constructed by the internal
query engine evaluating a <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> with <a class="link" href="rasqal-section-query.html#rasqal-query-execute" title="rasqal_query_execute ()"><code class="function">rasqal_query_execute()</code></a>.
It provides interface to the multiple types of result supported.
</p>
<p>
There are a large set of methods for returning all or parts of a
variable binding query result including the names, values or
individuals. A boolean result is straightforward to get with
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results-get-boolean" title="rasqal_query_results_get_boolean ()"><code class="function">rasqal_query_results_get_boolean()</code></a> and an RDF graph returns a
sequence of raptor triples than can be easily passed to the Raptor
library for serializing to a syntax.
</p>
</div>
<div class="refsect1">
<a name="rasqal-section-query-results.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="rasqal-query-results"></a><h3>rasqal_query_results</h3>
<pre class="programlisting">rasqal_graph_query_results* query_results;
</pre>
<p>
Rasqal query results class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-free-query-results"></a><h3>rasqal_free_query_results ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_free_query_results (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Destructor - destroy a rasqal_query_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_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-add-row"></a><h3>rasqal_query_results_add_row ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_add_row (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-row.html#rasqal-row" title="rasqal_row"><span class="type">rasqal_row</span></a> *row</code></em>);</pre>
<p>
Add a query result row to the sequence of 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_results</code></em> :</span></p></td>
<td>query results object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>row</code></em> :</span></p></td>
<td>query result row</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-results-finished"></a><h3>rasqal_query_results_finished ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_finished (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Find out if binding results are exhausted.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if results are finished or query failed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-binding-name"></a><h3>rasqal_query_results_get_binding_name ()</h3>
<pre class="programlisting">const unsigned <span class="returnvalue">char</span> * rasqal_query_results_get_binding_name
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code><span class="type">int</span> offset</code></em>);</pre>
<p>
Get binding name for the current result.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td>offset of binding name into array of known names</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to a shared copy of the binding name or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-binding-value"></a><h3>rasqal_query_results_get_binding_value ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="returnvalue">rasqal_literal</span></a> * rasqal_query_results_get_binding_value
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code><span class="type">int</span> offset</code></em>);</pre>
<p>
Get one binding value for the current result.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td>offset of binding name into array of known names</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to a shared <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> binding value or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-binding-value-by-name"></a><h3>rasqal_query_results_get_binding_value_by_name ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="returnvalue">rasqal_literal</span></a> * rasqal_query_results_get_binding_value_by_name
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
<p>
Get one binding value for a given name in the current result.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</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>a pointer to a shared <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> binding value or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-bindings"></a><h3>rasqal_query_results_get_bindings ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_get_bindings (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> ***names</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> ***values</code></em>);</pre>
<p>
Get all binding names, values for current result.
</p>
<p>
If names is not NULL, it is set to the address of a shared array
of names of the bindings (an output parameter). These names
are shared and must not be freed by the caller
</p>
<p>
If values is not NULL, it is set to the address of a shared array
of <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a>* binding values. These values are shaerd
and must not 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_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>names</code></em> :</span></p></td>
<td>pointer to an array of binding names (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>pointer to an array of binding value <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if the assignment failed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-bindings-count"></a><h3>rasqal_query_results_get_bindings_count ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_get_bindings_count
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Get the number of bound variables in the result.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td><0 if failed or results exhausted</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-boolean"></a><h3>rasqal_query_results_get_boolean ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_get_boolean (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Get boolean query result.
</p>
<p>
The return value is only meaningful if this is a boolean
query result - see <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-is-boolean" title="rasqal_query_results_is_boolean ()"><code class="function">rasqal_query_results_is_boolean()</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_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>boolean query result - >0 is true, 0 is false, <0 on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-count"></a><h3>rasqal_query_results_get_count ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_get_count (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Get number of bindings so far.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>number of bindings found so far or < 0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-query"></a><h3>rasqal_query_results_get_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_query_results_get_query (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Get thq query associated with this query result
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>shared pointer to query object</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-triple"></a><h3>rasqal_query_results_get_triple ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_statement</span> * rasqal_query_results_get_triple (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Get the current triple in the result.
</p>
<p>
The return value is a shared <span class="type">raptor_statement</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<span class="type">raptor_statement</span> or NULL if failed or results exhausted</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-row-by-offset"></a><h3>rasqal_query_results_get_row_by_offset ()</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_results_get_row_by_offset
(<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>,
<em class="parameter"><code><span class="type">int</span> result_offset</code></em>);</pre>
<p>
Get stored result row by an offset
</p>
<p>
The result_offset index is 0-indexed into the subset of results
constrained by any query limit and offset.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>query result</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result_offset</code></em> :</span></p></td>
<td>index into result rows</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>row or NULL if <em class="parameter"><code>result_offset</code></em> is out of range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-get-type"></a><h3>rasqal_query_results_get_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_results_get_type (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Get query results type
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if true</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-is-bindings"></a><h3>rasqal_query_results_is_bindings ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_is_bindings (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Test if rasqal_query_results is variable bindings 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_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if true</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-is-boolean"></a><h3>rasqal_query_results_is_boolean ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_is_boolean (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Test if rasqal_query_results is boolean 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_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if true</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-is-graph"></a><h3>rasqal_query_results_is_graph ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_is_graph (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Test if rasqal_query_results is RDF graph 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_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if true</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-is-syntax"></a><h3>rasqal_query_results_is_syntax ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_is_syntax (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Test if the rasqal_query_results is a syntax.
</p>
<p>
Many of the query results may be formatted as a syntax using the
<span class="type">rasqal_query_formatter</span> class however this function returns true
if a syntax result was specifically requested.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if true</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-next"></a><h3>rasqal_query_results_next ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_next (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Move to the next result.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if failed or results exhausted</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-next-triple"></a><h3>rasqal_query_results_next_triple ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_next_triple (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Move to the next triple result.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if failed or results exhausted</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-read"></a><h3>rasqal_query_results_read ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_read (<em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *results</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> *mime_type</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>
Read the query results from an iostream in a format.
</p>
<p>
This uses the <a class="link" href="rasqal-section-query-results-formatter.html#rasqal-query-results-formatter" title="rasqal_query_results_formatter"><span class="type">rasqal_query_results_formatter</span></a> class
and the <a class="link" href="rasqal-section-query-results-formatter.html#rasqal-query-results-formatter-read" title="rasqal_query_results_formatter_read ()"><code class="function">rasqal_query_results_formatter_read()</code></a> method
to perform the formatting.
</p>
<p>
See <a class="link" href="rasqal-section-general.html#rasqal-world-get-query-results-format-description" title="rasqal_world_get_query_results_format_description ()"><code class="function">rasqal_world_get_query_results_format_description()</code></a> for
obtaining the supported format URIs at run time.
</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 read the query from</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query results format</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>format name (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
<td>format mime type (or NULL)</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 read (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 input 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-results-write"></a><h3>rasqal_query_results_write ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_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-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *results</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> *mime_type</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 the query results to an iostream in a format.
</p>
<p>
This uses the <a class="link" href="rasqal-section-query-results-formatter.html#rasqal-query-results-formatter" title="rasqal_query_results_formatter"><span class="type">rasqal_query_results_formatter</span></a> class and the
<a class="link" href="rasqal-section-query-results-formatter.html#rasqal-query-results-formatter-write" title="rasqal_query_results_formatter_write ()"><code class="function">rasqal_query_results_formatter_write()</code></a> method to perform the
formatting.
</p>
<p>
Note that after calling this method, the query results will be
empty and <a class="link" href="rasqal-section-query-results.html#rasqal-query-results-finished" title="rasqal_query_results_finished ()"><code class="function">rasqal_query_results_finished()</code></a> will return true (non-0)
</p>
<p>
See <a class="link" href="rasqal-section-general.html#rasqal-world-get-query-results-format-description" title="rasqal_world_get_query_results_format_description ()"><code class="function">rasqal_world_get_query_results_format_description()</code></a> for obtaining the
supported format names, mime_types and URIs at run time.
</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>results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query results format</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>format name (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
<td>format mime type (or NULL)</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-results-type"></a><h3>enum rasqal_query_results_type</h3>
<pre class="programlisting">typedef enum {
RASQAL_QUERY_RESULTS_BINDINGS,
RASQAL_QUERY_RESULTS_BOOLEAN,
RASQAL_QUERY_RESULTS_GRAPH,
RASQAL_QUERY_RESULTS_SYNTAX,
RASQAL_QUERY_RESULTS_UNKNOWN,
RASQAL_QUERY_RESULTS_LAST = RASQAL_QUERY_RESULTS_UNKNOWN
} rasqal_query_results_type;
</pre>
<p>
Query result type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="RASQAL-QUERY-RESULTS-BINDINGS:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_RESULTS_BINDINGS</code></span></p></td>
<td>variable binding
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-RESULTS-BOOLEAN:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_RESULTS_BOOLEAN</code></span></p></td>
<td>a single boolean
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-RESULTS-GRAPH:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_RESULTS_GRAPH</code></span></p></td>
<td>an RDF graph
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-RESULTS-SYNTAX:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_RESULTS_SYNTAX</code></span></p></td>
<td>a syntax
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-RESULTS-UNKNOWN:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_RESULTS_UNKNOWN</code></span></p></td>
<td>unknown type
</td>
</tr>
<tr>
<td><p><a name="RASQAL-QUERY-RESULTS-LAST:CAPS"></a><span class="term"><code class="literal">RASQAL_QUERY_RESULTS_LAST</code></span></p></td>
<td>internal
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-type-label"></a><h3>rasqal_query_results_type_label ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * rasqal_query_results_type_label (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results-type" title="enum rasqal_query_results_type"><span class="type">rasqal_query_results_type</span></a> type</code></em>);</pre>
<p>
Get a label for a query results type
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results-type" title="enum rasqal_query_results_type"><span class="type">rasqal_query_results_type</span></a> type</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>label or NULL on failure (invalid type)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-query-results-rewind"></a><h3>rasqal_query_results_rewind ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_query_results_rewind (<em class="parameter"><code><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> *query_results</code></em>);</pre>
<p>
Rewind stored query results to start
</p>
<p>
This requires <a class="link" href="rasqal-section-query.html#rasqal-query-set-store-results" title="rasqal_query_set_store_results ()"><code class="function">rasqal_query_set_store_results()</code></a> to be called before
query execution.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_results</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> query_results</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if rewinding is not available when results are not stored</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|