This file is indexed.

/usr/share/gtk-doc/html/rasqal/rasqal-section-general.html is in librasqal3-doc 0.9.32-1.

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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>General library facilities</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="reference-manual.html" title="Part I. Reference Manual">
<link rel="next" href="rasqal-section-data.html" title="Data Graphs">
<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="reference-manual.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-data.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-general.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#rasqal-section-general.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="rasqal-section-general"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="rasqal-section-general.top_of_page"></a>General library facilities</span></h2>
<p>General library facilities — Startup and shutdown, memory handling, version checks and misc functions.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="rasqal-section-general.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">typedef             <a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world">rasqal_world</a>;
<span class="returnvalue">void</span>                <a class="link" href="rasqal-section-general.html#rasqal-free-world" title="rasqal_free_world ()">rasqal_free_world</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>);
<a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="returnvalue">rasqal_world</span></a> *      <a class="link" href="rasqal-section-general.html#rasqal-new-world" title="rasqal_new_world ()">rasqal_new_world</a>                    (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="rasqal-section-general.html#rasqal-world-open" title="rasqal_world_open ()">rasqal_world_open</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>);
<span class="returnvalue">void</span>                <a class="link" href="rasqal-section-general.html#rasqal-world-set-log-handler" title="rasqal_world_set_log_handler ()">rasqal_world_set_log_handler</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><span class="type">void</span> *user_data</code></em>,
                                                         <em class="parameter"><code><span class="type">raptor_log_handler</span> handler</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="rasqal-section-general.html#rasqal-world-set-warning-level" title="rasqal_world_set_warning_level ()">rasqal_world_set_warning_level</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>unsigned <span class="type">int</span> warning_level</code></em>);
<span class="returnvalue">raptor_world</span> *      <a class="link" href="rasqal-section-general.html#rasqal-world-get-raptor" title="rasqal_world_get_raptor ()">rasqal_world_get_raptor</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>);
<span class="returnvalue">void</span>                <a class="link" href="rasqal-section-general.html#rasqal-world-set-raptor" title="rasqal_world_set_raptor ()">rasqal_world_set_raptor</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><span class="type">raptor_world</span> *raptor_world_ptr</code></em>);
const <span class="returnvalue">raptor_syntax_description</span> * <a class="link" href="rasqal-section-general.html#rasqal-world-get-query-language-description" title="rasqal_world_get_query_language_description ()">rasqal_world_get_query_language_description</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>unsigned <span class="type">int</span> counter</code></em>);
const <span class="returnvalue">raptor_syntax_description</span> * <a class="link" href="rasqal-section-general.html#rasqal-world-get-query-results-format-description" title="rasqal_world_get_query_results_format_description ()">rasqal_world_get_query_results_format_description</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>unsigned <span class="type">int</span> counter</code></em>);
<span class="returnvalue">char</span> *              (<a class="link" href="rasqal-section-general.html#rasqal-generate-bnodeid-handler" title="rasqal_generate_bnodeid_handler ()">*rasqal_generate_bnodeid_handler</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><span class="type">void</span> *user_data</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">char</span> *user_bnodeid</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="rasqal-section-general.html#rasqal-world-set-generate-bnodeid-handler" title="rasqal_world_set_generate_bnodeid_handler ()">rasqal_world_set_generate_bnodeid_handler</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><span class="type">void</span> *user_data</code></em>,
                                                         <em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-generate-bnodeid-handler" title="rasqal_generate_bnodeid_handler ()"><span class="type">rasqal_generate_bnodeid_handler</span></a> handler</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="rasqal-section-general.html#rasqal-world-set-default-generate-bnodeid-parameters" title="rasqal_world_set_default_generate_bnodeid_parameters ()">rasqal_world_set_default_generate_bnodeid_parameters</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><span class="type">char</span> *prefix</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> base</code></em>);
const <span class="returnvalue">char</span> *        <a class="link" href="rasqal-section-general.html#rasqal-world-guess-query-results-format-name" title="rasqal_world_guess_query_results_format_name ()">rasqal_world_guess_query_results_format_name</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><span class="type">raptor_uri</span> *uri</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> len</code></em>,
                                                         <em class="parameter"><code>const unsigned <span class="type">char</span> *identifier</code></em>);
extern const unsigned int <a class="link" href="rasqal-section-general.html#rasqal-version-decimal" title="rasqal_version_decimal">rasqal_version_decimal</a>;
extern const unsigned int <a class="link" href="rasqal-section-general.html#rasqal-version-major" title="rasqal_version_major">rasqal_version_major</a>;
extern const unsigned int <a class="link" href="rasqal-section-general.html#rasqal-version-minor" title="rasqal_version_minor">rasqal_version_minor</a>;
extern const unsigned int <a class="link" href="rasqal-section-general.html#rasqal-version-release" title="rasqal_version_release">rasqal_version_release</a>;
extern const char * const <a class="link" href="rasqal-section-general.html#rasqal-version-string" title="rasqal_version_string">rasqal_version_string</a>;
extern const char * const <a class="link" href="rasqal-section-general.html#rasqal-copyright-string" title="rasqal_copyright_string">rasqal_copyright_string</a>;
extern const char * const <a class="link" href="rasqal-section-general.html#rasqal-short-copyright-string" title="rasqal_short_copyright_string">rasqal_short_copyright_string</a>;
extern const char * const <a class="link" href="rasqal-section-general.html#rasqal-home-url-string" title="rasqal_home_url_string">rasqal_home_url_string</a>;
extern const char * const <a class="link" href="rasqal-section-general.html#rasqal-license-string" title="rasqal_license_string">rasqal_license_string</a>;
enum                <a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature">rasqal_feature</a>;
<span class="returnvalue">int</span>                 <a class="link" href="rasqal-section-general.html#rasqal-language-name-check" title="rasqal_language_name_check ()">rasqal_language_name_check</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>);
<span class="returnvalue">int</span>                 <a class="link" href="rasqal-section-general.html#rasqal-languages-enumerate" title="rasqal_languages_enumerate ()">rasqal_languages_enumerate</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>unsigned <span class="type">int</span> counter</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> **label</code></em>,
                                                         <em class="parameter"><code>const unsigned <span class="type">char</span> **uri_string</code></em>);
<span class="returnvalue">void</span> *              <a class="link" href="rasqal-section-general.html#rasqal-alloc-memory" title="rasqal_alloc_memory ()">rasqal_alloc_memory</a>                 (<em class="parameter"><code><span class="type">size_t</span> size</code></em>);
<span class="returnvalue">void</span> *              <a class="link" href="rasqal-section-general.html#rasqal-calloc-memory" title="rasqal_calloc_memory ()">rasqal_calloc_memory</a>                (<em class="parameter"><code><span class="type">size_t</span> nmemb</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> size</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="rasqal-section-general.html#rasqal-free-memory" title="rasqal_free_memory ()">rasqal_free_memory</a>                  (<em class="parameter"><code><span class="type">void</span> *ptr</code></em>);
<a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="returnvalue">rasqal_feature</span></a>      <a class="link" href="rasqal-section-general.html#rasqal-feature-from-uri" title="rasqal_feature_from_uri ()">rasqal_feature_from_uri</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><span class="type">raptor_uri</span> *uri</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="rasqal-section-general.html#rasqal-feature-value-type" title="rasqal_feature_value_type ()">rasqal_feature_value_type</a>           (<em class="parameter"><code>const <a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> feature</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="rasqal-section-general.html#rasqal-features-enumerate" title="rasqal_features_enumerate ()">rasqal_features_enumerate</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 <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> **name</code></em>,
                                                         <em class="parameter"><code><span class="type">raptor_uri</span> **uri</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> **label</code></em>);
unsigned <span class="returnvalue">int</span>        <a class="link" href="rasqal-section-general.html#rasqal-get-feature-count" title="rasqal_get_feature_count ()">rasqal_get_feature_count</a>            (<em class="parameter"><code><span class="type">void</span></code></em>);
#define             <a class="link" href="rasqal-section-general.html#RASQAL-DEPRECATED:CAPS" title="RASQAL_DEPRECATED">RASQAL_DEPRECATED</a>
#define             <a class="link" href="rasqal-section-general.html#RASQAL-VERSION:CAPS" title="RASQAL_VERSION">RASQAL_VERSION</a>
#define             <a class="link" href="rasqal-section-general.html#RASQAL-VERSION-MAJOR:CAPS" title="RASQAL_VERSION_MAJOR">RASQAL_VERSION_MAJOR</a>
#define             <a class="link" href="rasqal-section-general.html#RASQAL-VERSION-MINOR:CAPS" title="RASQAL_VERSION_MINOR">RASQAL_VERSION_MINOR</a>
#define             <a class="link" href="rasqal-section-general.html#RASQAL-VERSION-RELEASE:CAPS" title="RASQAL_VERSION_RELEASE">RASQAL_VERSION_RELEASE</a>
#define             <a class="link" href="rasqal-section-general.html#RASQAL-VERSION-STRING:CAPS" title="RASQAL_VERSION_STRING">RASQAL_VERSION_STRING</a>
#define             <a class="link" href="rasqal-section-general.html#RASQAL-RAPTOR-VERSION:CAPS" title="RASQAL_RAPTOR_VERSION">RASQAL_RAPTOR_VERSION</a>
</pre>
</div>
<div class="refsect1">
<a name="rasqal-section-general.description"></a><h2>Description</h2>
<p>
The functions in this section cover general library features such
as startup and shutdown, checking the current library version and
dealing with memory allocation and freeing.  It also provides
functions to enumerate and check the supported query languages,
their names, labels and URI.
</p>
</div>
<div class="refsect1">
<a name="rasqal-section-general.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="rasqal-world"></a><h3>rasqal_world</h3>
<pre class="programlisting">rasqal_world* world;
</pre>
<p>
Rasqal world class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-free-world"></a><h3>rasqal_free_world ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rasqal_free_world                   (<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>);</pre>
<p>
Terminate the rasqal library.
</p>
<p>
Destroys a rasqal_world object and all static information.
</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></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-world"></a><h3>rasqal_new_world ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="returnvalue">rasqal_world</span></a> *      rasqal_new_world                    (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Allocate a new rasqal_world object.
</p>
<p>
The rasqal_world is initialized with <a class="link" href="rasqal-section-general.html#rasqal-world-open" title="rasqal_world_open ()"><code class="function">rasqal_world_open()</code></a>.
Allocation and initialization are decoupled to allow
changing settings on the world object before init.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>rasqal_world object or NULL on failure</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-world-open"></a><h3>rasqal_world_open ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 rasqal_world_open                   (<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>);</pre>
<p>
Initialise the rasqal library.
</p>
<p>
Initializes a <a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> object created by <a class="link" href="rasqal-section-general.html#rasqal-new-world" title="rasqal_new_world ()"><code class="function">rasqal_new_world()</code></a>.
Allocation and initialization are decoupled to allow
changing settings on the world object before init.
These settings include e.g. the raptor library instance set with
<a class="link" href="rasqal-section-general.html#rasqal-world-set-raptor" title="rasqal_world_set_raptor ()"><code class="function">rasqal_world_set_raptor()</code></a>.
</p>
<p>
The initialized world object is used with subsequent rasqal API calls.
</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"><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-world-set-log-handler"></a><h3>rasqal_world_set_log_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rasqal_world_set_log_handler        (<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><span class="type">void</span> *user_data</code></em>,
                                                         <em class="parameter"><code><span class="type">raptor_log_handler</span> handler</code></em>);</pre>
<p>
Set the log handler for this rasqal_world.
</p>
<p>
Also sets the raptor log handler to the same <em class="parameter"><code>user_data</code></em> and
<em class="parameter"><code>handler</code></em> via <code class="function">raptor_world_set_log_handler()</code>. (Rasqal 0.9.26+)
</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>user_data</code></em> :</span></p></td>
<td>user data for log handler function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td>log handler function</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-world-set-warning-level"></a><h3>rasqal_world_set_warning_level ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 rasqal_world_set_warning_level      (<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>unsigned <span class="type">int</span> warning_level</code></em>);</pre>
<p>
Set the rasqal warning reporting level
</p>
<p>
The warning levels used are as follows:
</p>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><p>Level 10 is used for serious warnings that may be errors.
</p></li>
<li class="listitem"><p>Level 30 is used for moderate style warnings.
</p></li>
<li class="listitem"><p>Level 90 is used for strict conformance warnings.
</p></li>
</ol></div>
<p>
</p>
<p>
When this method is called to set a warning level, only warnings
of less than <em class="parameter"><code>warning_level</code></em> are reported.  The default warning
level is 50.
</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>world</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>warning_level</code></em> :</span></p></td>
<td>warning level 0..100</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-world-get-raptor"></a><h3>rasqal_world_get_raptor ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_world</span> *      rasqal_world_get_raptor             (<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>);</pre>
<p>
Get the <span class="type">raptor_world</span> instance used by this <a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</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>world</code></em> :</span></p></td>
<td>rasqal_world object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>raptor_world object or NULL on failure (e.g. not initialized)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-world-set-raptor"></a><h3>rasqal_world_set_raptor ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rasqal_world_set_raptor             (<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><span class="type">raptor_world</span> *raptor_world_ptr</code></em>);</pre>
<p>
Set the <span class="type">raptor_world</span> instance to be used with this <a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a>.
</p>
<p>
If no raptor_world instance is set with this function,
<a class="link" href="rasqal-section-general.html#rasqal-world-open" title="rasqal_world_open ()"><code class="function">rasqal_world_open()</code></a> creates a new instance.
</p>
<p>
Ownership of the raptor_world is not taken. If the raptor library
instance is set with this function, <a class="link" href="rasqal-section-general.html#rasqal-free-world" title="rasqal_free_world ()"><code class="function">rasqal_free_world()</code></a> will not
free it.
</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>raptor_world_ptr</code></em> :</span></p></td>
<td>raptor_world object</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-world-get-query-language-description"></a><h3>rasqal_world_get_query_language_description ()</h3>
<pre class="programlisting">const <span class="returnvalue">raptor_syntax_description</span> * rasqal_world_get_query_language_description
                                                        (<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>unsigned <span class="type">int</span> counter</code></em>);</pre>
<p>
Get query language descriptive information
</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>world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>counter</code></em> :</span></p></td>
<td>index into the list of query languages</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>description or NULL if counter is out of range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-world-get-query-results-format-description"></a><h3>rasqal_world_get_query_results_format_description ()</h3>
<pre class="programlisting">const <span class="returnvalue">raptor_syntax_description</span> * rasqal_world_get_query_results_format_description
                                                        (<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>unsigned <span class="type">int</span> counter</code></em>);</pre>
<p>
Get query result format descriptive syntax information
</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>world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>counter</code></em> :</span></p></td>
<td>index into the list of query result formats</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>description or NULL if counter is out of range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-generate-bnodeid-handler"></a><h3>rasqal_generate_bnodeid_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              (*rasqal_generate_bnodeid_handler)  (<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><span class="type">void</span> *user_data</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">char</span> *user_bnodeid</code></em>);</pre>
<p>
User handler used with <a class="link" href="rasqal-section-general.html#rasqal-world-set-generate-bnodeid-handler" title="rasqal_world_set_generate_bnodeid_handler ()"><code class="function">rasqal_world_set_generate_bnodeid_handler()</code></a> to set method for generating a blank node ID.
</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>world arg</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data given to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_bnodeid</code></em> :</span></p></td>
<td>user blank node ID string passed in</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>blank node ID string or NULL on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-world-set-generate-bnodeid-handler"></a><h3>rasqal_world_set_generate_bnodeid_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 rasqal_world_set_generate_bnodeid_handler
                                                        (<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><span class="type">void</span> *user_data</code></em>,
                                                         <em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-generate-bnodeid-handler" title="rasqal_generate_bnodeid_handler ()"><span class="type">rasqal_generate_bnodeid_handler</span></a> handler</code></em>);</pre>
<p>
Set the generate blank node ID handler function
</p>
<p>
Sets the function to generate blank node IDs.
The handler is called with a pointer to the rasqal_world, the
<em class="parameter"><code>user_data</code></em> pointer and a user_bnodeid which is the value of
a user-provided blank node identifier (may be NULL).
It can either be returned directly as the generated value when present or
modified.  The passed in value must be <code class="function">free()</code>d if it is not used.
</p>
<p>
If handler is NULL, the default method is used
</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>
<a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data pointer for callback</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td>generate blank ID callback function</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-world-set-default-generate-bnodeid-parameters"></a><h3>rasqal_world_set_default_generate_bnodeid_parameters ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 rasqal_world_set_default_generate_bnodeid_parameters
                                                        (<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><span class="type">char</span> *prefix</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> base</code></em>);</pre>
<p>
Set default bnodeid generation parameters
</p>
<p>
Sets the parameters for the default algorithm used to generate
blank node IDs.  The default algorithm uses both <em class="parameter"><code>prefix</code></em> and <em class="parameter"><code>base</code></em>
to generate a new identifier.  The exact identifier generated is
not guaranteed to be a strict concatenation of <em class="parameter"><code>prefix</code></em> and <em class="parameter"><code>base</code></em>
but will use both parts.
</p>
<p>
For finer control of the generated identifiers, use
<a class="link" href="rasqal-section-general.html#rasqal-world-set-generate-bnodeid-handler" title="rasqal_world_set_generate_bnodeid_handler ()"><code class="function">rasqal_world_set_generate_bnodeid_handler()</code></a>
</p>
<p>
If prefix is NULL, the default prefix is used (currently "bnodeid")
If base is less than 1, it is initialised to 1.
</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>
<a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prefix</code></em> :</span></p></td>
<td>prefix string</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base</code></em> :</span></p></td>
<td>integer base identifier</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-world-guess-query-results-format-name"></a><h3>rasqal_world_guess_query_results_format_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        rasqal_world_guess_query_results_format_name
                                                        (<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><span class="type">raptor_uri</span> *uri</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> len</code></em>,
                                                         <em class="parameter"><code>const unsigned <span class="type">char</span> *identifier</code></em>);</pre>
<p>
Guess a query results format name for content.
</p>
<p>
Find a query results format by scoring recognition of the syntax
by a block of characters, the content identifier or a mime type.
The content identifier is typically a filename or URI or some
other identifier.
</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>world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>URI identifying the syntax (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
<td>mime type identifying the content (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>buffer of content to guess (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
<td>length of buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>identifier</code></em> :</span></p></td>
<td>identifier of content (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a query results format name or NULL if no guess
could be made</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-version-decimal"></a><h3>rasqal_version_decimal</h3>
<pre class="programlisting">extern const unsigned int rasqal_version_decimal;
</pre>
<p>
Rasqal version as a decimal number.
</p>
<p>
Format: major * 10000 + minor * 100 + release
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-version-major"></a><h3>rasqal_version_major</h3>
<pre class="programlisting">extern const unsigned int rasqal_version_major;
</pre>
<p>
Rasqal major version number.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-version-minor"></a><h3>rasqal_version_minor</h3>
<pre class="programlisting">extern const unsigned int rasqal_version_minor;
</pre>
<p>
Rasqal minor version number.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-version-release"></a><h3>rasqal_version_release</h3>
<pre class="programlisting">extern const unsigned int rasqal_version_release;
</pre>
<p>
Rasqal release version number.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-version-string"></a><h3>rasqal_version_string</h3>
<pre class="programlisting">extern const char * const rasqal_version_string;
</pre>
<p>
Rasqal version as a string.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-copyright-string"></a><h3>rasqal_copyright_string</h3>
<pre class="programlisting">extern const char * const rasqal_copyright_string;
</pre>
<p>
Copyright string (multiple lines).
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-short-copyright-string"></a><h3>rasqal_short_copyright_string</h3>
<pre class="programlisting">extern const char * const rasqal_short_copyright_string;
</pre>
<p>
Short copyright string (one line).
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-home-url-string"></a><h3>rasqal_home_url_string</h3>
<pre class="programlisting">extern const char * const rasqal_home_url_string;
</pre>
<p>
Rasqal home page URL.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-license-string"></a><h3>rasqal_license_string</h3>
<pre class="programlisting">extern const char * const rasqal_license_string;
</pre>
<p>
Rasqal license string.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-feature"></a><h3>enum rasqal_feature</h3>
<pre class="programlisting">typedef enum {
  RASQAL_FEATURE_NO_NET,
  RASQAL_FEATURE_RAND_SEED,
  RASQAL_FEATURE_LAST = RASQAL_FEATURE_RAND_SEED
} rasqal_feature;
</pre>
<p>
Query features.
</p>
<p>
None currently defined.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="RASQAL-FEATURE-NO-NET:CAPS"></a><span class="term"><code class="literal">RASQAL_FEATURE_NO_NET</code></span></p></td>
<td>Deny network requests.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-FEATURE-RAND-SEED:CAPS"></a><span class="term"><code class="literal">RASQAL_FEATURE_RAND_SEED</code></span></p></td>
<td>Set <code class="function">rand()</code> / <code class="function">rand_r()</code> seed
</td>
</tr>
<tr>
<td><p><a name="RASQAL-FEATURE-LAST:CAPS"></a><span class="term"><code class="literal">RASQAL_FEATURE_LAST</code></span></p></td>
<td>Internal.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-language-name-check"></a><h3>rasqal_language_name_check ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 rasqal_language_name_check          (<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>);</pre>
<p>
Check name of a 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>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</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non 0 if name is a known query language</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-languages-enumerate"></a><h3>rasqal_languages_enumerate ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 rasqal_languages_enumerate          (<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>unsigned <span class="type">int</span> counter</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> **label</code></em>,
                                                         <em class="parameter"><code>const unsigned <span class="type">char</span> **uri_string</code></em>);</pre>
<p>
<em class="parameter"><code>deprecated</code></em>: Use <a class="link" href="rasqal-section-general.html#rasqal-world-get-query-language-description" title="rasqal_world_get_query_language_description ()"><code class="function">rasqal_world_get_query_language_description()</code></a> instead.
</p>
<p>
Get information on query languages.
</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>counter</code></em> :</span></p></td>
<td>index into the list of syntaxes</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>pointer to store the name of the syntax (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td>pointer to store syntax readable label (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri_string</code></em> :</span></p></td>
<td>pointer to store syntax URI string (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 of if counter is out of range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-alloc-memory"></a><h3>rasqal_alloc_memory ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> *              rasqal_alloc_memory                 (<em class="parameter"><code><span class="type">size_t</span> size</code></em>);</pre>
<p>
Allocate memory inside rasqal.
</p>
<p>
Some systems require memory allocated in a library to
be deallocated in that library.  This function allows
memory to be allocated inside the rasqal shared library
that can be freed inside rasqal either internally or via
<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>size</code></em> :</span></p></td>
<td>size of memory to allocate</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the address of the allocated memory or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-calloc-memory"></a><h3>rasqal_calloc_memory ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> *              rasqal_calloc_memory                (<em class="parameter"><code><span class="type">size_t</span> nmemb</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> size</code></em>);</pre>
<p>
Allocate zeroed array of items inside rasqal.
</p>
<p>
Some systems require memory allocated in a library to
be deallocated in that library.  This function allows
memory to be allocated inside the rasqal shared library
that can be freed inside rasqal either internally or via
<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>nmemb</code></em> :</span></p></td>
<td>number of members</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>size of item</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the address of the allocated memory or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-free-memory"></a><h3>rasqal_free_memory ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rasqal_free_memory                  (<em class="parameter"><code><span class="type">void</span> *ptr</code></em>);</pre>
<p>
Free memory allocated inside rasqal.
</p>
<p>
Some systems require memory allocated in a library to
be deallocated in that library.  This function allows
memory allocated by rasqal to be freed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td>
<td>memory pointer</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-feature-from-uri"></a><h3>rasqal_feature_from_uri ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="returnvalue">rasqal_feature</span></a>      rasqal_feature_from_uri             (<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><span class="type">raptor_uri</span> *uri</code></em>);</pre>
<p>
Turn a feature URI into an feature enum.
</p>
<p>
The allowed feature URIs 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>world</code></em> :</span></p></td>
<td>rasqal_world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>feature URI</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>&lt; 0 if the feature is unknown</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-feature-value-type"></a><h3>rasqal_feature_value_type ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 rasqal_feature_value_type           (<em class="parameter"><code>const <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 the type of a features.
</p>
<p>
The type of the <em class="parameter"><code>feature</code></em> is 0=integer , 1=string.  Other values are
undefined.  Most features are integer values and use
rasqal_query_set_feature <a class="link" href="rasqal-section-query.html#rasqal-query-get-feature" title="rasqal_query_get_feature ()"><code class="function">rasqal_query_get_feature()</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>feature</code></em> :</span></p></td>
<td>rasqal query feature</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the type of the feature or &lt;0 if <em class="parameter"><code>feature</code></em> is unknown</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-features-enumerate"></a><h3>rasqal_features_enumerate ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 rasqal_features_enumerate           (<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 <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> **name</code></em>,
                                                         <em class="parameter"><code><span class="type">raptor_uri</span> **uri</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> **label</code></em>);</pre>
<p>
Get list of rasqal features.
</p>
<p>
If uri is not NULL, a pointer to a new raptor_uri is returned
that must be freed by the caller with <code class="function">raptor_free_uri()</code>.
</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>feature</code></em> :</span></p></td>
<td>feature enumeration (0+)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>pointer to store feature short name (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>pointer to store feature URI (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td>pointer to feature label (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, &lt;0 on failure, &gt;0 if feature is unknown</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-get-feature-count"></a><h3>rasqal_get_feature_count ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">int</span>        rasqal_get_feature_count            (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Get the count of features defined.
</p>
<p>
This is prefered to the compile time-only symbol <a class="link" href="rasqal-section-general.html#RASQAL-FEATURE-LAST:CAPS"><span class="type">RASQAL_FEATURE_LAST</span></a>
and returns a count of the number of features which is
<a class="link" href="rasqal-section-general.html#RASQAL-FEATURE-LAST:CAPS"><span class="type">RASQAL_FEATURE_LAST</span></a>+1.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>count of features in the <a class="link" href="rasqal-section-general.html#rasqal-feature" title="enum rasqal_feature"><span class="type">rasqal_feature</span></a> enumeration</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RASQAL-DEPRECATED:CAPS"></a><h3>RASQAL_DEPRECATED</h3>
<pre class="programlisting">#define RASQAL_DEPRECATED __attribute__((deprecated))
</pre>
<p>
When defined before a function, indicates that the function
has been deprecated and may be replaced in a future release.
With some versions of gcc this may give a compilation warning.
</p>
</div>
<hr>
<div class="refsect2">
<a name="RASQAL-VERSION:CAPS"></a><h3>RASQAL_VERSION</h3>
<pre class="programlisting">#define RASQAL_VERSION 932
</pre>
<p>
Rasqal library version number
</p>
<p>
Format: major * 10000 + minor * 100 + release
</p>
</div>
<hr>
<div class="refsect2">
<a name="RASQAL-VERSION-MAJOR:CAPS"></a><h3>RASQAL_VERSION_MAJOR</h3>
<pre class="programlisting">#define RASQAL_VERSION_MAJOR 0
</pre>
<p>
Rasqal library major version
</p>
</div>
<hr>
<div class="refsect2">
<a name="RASQAL-VERSION-MINOR:CAPS"></a><h3>RASQAL_VERSION_MINOR</h3>
<pre class="programlisting">#define RASQAL_VERSION_MINOR 9
</pre>
<p>
Rasqal library minor version
</p>
</div>
<hr>
<div class="refsect2">
<a name="RASQAL-VERSION-RELEASE:CAPS"></a><h3>RASQAL_VERSION_RELEASE</h3>
<pre class="programlisting">#define RASQAL_VERSION_RELEASE 32
</pre>
<p>
Rasqal library release
</p>
</div>
<hr>
<div class="refsect2">
<a name="RASQAL-VERSION-STRING:CAPS"></a><h3>RASQAL_VERSION_STRING</h3>
<pre class="programlisting">#define RASQAL_VERSION_STRING "0.9.32"
</pre>
<p>
Rasqal library version string
</p>
</div>
<hr>
<div class="refsect2">
<a name="RASQAL-RAPTOR-VERSION:CAPS"></a><h3>RASQAL_RAPTOR_VERSION</h3>
<pre class="programlisting">#define RASQAL_RAPTOR_VERSION 20012
</pre>
<p>
Version of Raptor that Rasqal was configured against.
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>