/usr/share/gtk-doc/html/rasqal/rasqal-section-literal.html is in librasqal3-doc 0.9.32-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Literal</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-graph-pattern.html" title="Graph patterns">
<link rel="next" href="rasqal-section-prefix.html" title="Prefixes">
<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-graph-pattern.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-prefix.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-literal.synopsis" class="shortcut">Top</a>
|
<a href="#rasqal-section-literal.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="rasqal-section-literal"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="rasqal-section-literal.top_of_page"></a>Literal</span></h2>
<p>Literal — RDF literals and RDF query-specific literals.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="rasqal-section-literal.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">typedef <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal">rasqal_literal</a>;
enum <a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type">rasqal_literal_type</a>;
<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-literal.html#rasqal-new-typed-literal" title="rasqal_new_typed_literal ()">rasqal_new_typed_literal</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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *string</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-literal.html#rasqal-new-boolean-literal" title="rasqal_new_boolean_literal ()">rasqal_new_boolean_literal</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">int</span> value</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-literal.html#rasqal-new-datetime-literal-from-datetime" title="rasqal_new_datetime_literal_from_datetime ()">rasqal_new_datetime_literal_from_datetime</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><a class="link" href="rasqal-section-xsd.html#rasqal-xsd-datetime" title="rasqal_xsd_datetime"><span class="type">rasqal_xsd_datetime</span></a> *dt</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-literal.html#rasqal-new-decimal-literal" title="rasqal_new_decimal_literal ()">rasqal_new_decimal_literal</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> *string</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-literal.html#rasqal-new-decimal-literal-from-decimal" title="rasqal_new_decimal_literal_from_decimal ()">rasqal_new_decimal_literal_from_decimal</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> *string</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-xsd.html#rasqal-xsd-decimal" title="rasqal_xsd_decimal"><span class="type">rasqal_xsd_decimal</span></a> *decimal</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-literal.html#rasqal-new-double-literal" title="rasqal_new_double_literal ()">rasqal_new_double_literal</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">double</span> d</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-literal.html#rasqal-new-float-literal" title="rasqal_new_float_literal ()">rasqal_new_float_literal</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">float</span> f</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-literal.html#rasqal-new-floating-literal" title="rasqal_new_floating_literal ()">rasqal_new_floating_literal</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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code><span class="type">double</span> d</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-literal.html#rasqal-new-integer-literal" title="rasqal_new_integer_literal ()">rasqal_new_integer_literal</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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code><span class="type">int</span> integer</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-literal.html#rasqal-new-numeric-literal-from-long" title="rasqal_new_numeric_literal_from_long ()">rasqal_new_numeric_literal_from_long</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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code>long <span class="type">value</span> Param3</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-literal.html#rasqal-new-pattern-literal" title="rasqal_new_pattern_literal ()">rasqal_new_pattern_literal</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> *pattern</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *flags</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-literal.html#rasqal-new-simple-literal" title="rasqal_new_simple_literal ()">rasqal_new_simple_literal</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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *string</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-literal.html#rasqal-new-string-literal" title="rasqal_new_string_literal ()">rasqal_new_string_literal</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> *string</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *language</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *datatype</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *datatype_qname</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-literal.html#rasqal-new-uri-literal" title="rasqal_new_uri_literal ()">rasqal_new_uri_literal</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>);
<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-literal.html#rasqal-new-variable-literal" title="rasqal_new_variable_literal ()">rasqal_new_variable_literal</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><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> *variable</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-literal.html#rasqal-new-literal-from-literal" title="rasqal_new_literal_from_literal ()">rasqal_new_literal_from_literal</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-literal.html#rasqal-free-literal" title="rasqal_free_literal ()">rasqal_free_literal</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</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-literal.html#rasqal-literal-as-node" title="rasqal_literal_as_node ()">rasqal_literal_as_node</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);
const unsigned <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-literal.html#rasqal-literal-as-counted-string" title="rasqal_literal_as_counted_string ()">rasqal_literal_as_counted_string</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *len_p</code></em>,
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
<em class="parameter"><code><span class="type">int</span> *error_p</code></em>);
const unsigned <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-literal.html#rasqal-literal-as-string" title="rasqal_literal_as_string ()">rasqal_literal_as_string</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);
const unsigned <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-literal.html#rasqal-literal-as-string-flags" title="rasqal_literal_as_string_flags ()">rasqal_literal_as_string_flags</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>,
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
<em class="parameter"><code><span class="type">int</span> *error_p</code></em>);
<a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * <a class="link" href="rasqal-section-literal.html#rasqal-literal-as-variable" title="rasqal_literal_as_variable ()">rasqal_literal_as_variable</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-literal.html#rasqal-literal-compare" title="rasqal_literal_compare ()">rasqal_literal_compare</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l1</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> *l2</code></em>,
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
<em class="parameter"><code><span class="type">int</span> *error_p</code></em>);
<span class="returnvalue">raptor_uri</span> * <a class="link" href="rasqal-section-literal.html#rasqal-literal-datatype" title="rasqal_literal_datatype ()">rasqal_literal_datatype</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-literal.html#rasqal-literal-equals" title="rasqal_literal_equals ()">rasqal_literal_equals</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l1</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> *l2</code></em>);
<a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="returnvalue">rasqal_literal_type</span></a> <a class="link" href="rasqal-section-literal.html#rasqal-literal-get-rdf-term-type" title="rasqal_literal_get_rdf_term_type ()">rasqal_literal_get_rdf_term_type</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-literal.html#rasqal-literal-is-rdf-literal" title="rasqal_literal_is_rdf_literal ()">rasqal_literal_is_rdf_literal</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-literal.html#rasqal-literal-print" title="rasqal_literal_print ()">rasqal_literal_print</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>,
<em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-literal.html#rasqal-literal-print-type" title="rasqal_literal_print_type ()">rasqal_literal_print_type</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>,
<em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="rasqal-section-literal.html#rasqal-literal-type-label" title="rasqal_literal_type_label ()">rasqal_literal_type_label</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-literal.html#rasqal-literal-same-term" title="rasqal_literal_same_term ()">rasqal_literal_same_term</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l1</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> *l2</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-literal.html#rasqal-literal-value" title="rasqal_literal_value ()">rasqal_literal_value</a> (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="rasqal-section-literal.description"></a><h2>Description</h2>
<p>
A class for handling RDF terms (URI, blank nodes, strings, datatyped
literals) as well as those natively used in a query such as
boolean, double, floating, integer, regex pattern and variables.
</p>
</div>
<div class="refsect1">
<a name="rasqal-section-literal.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="rasqal-literal"></a><h3>rasqal_literal</h3>
<pre class="programlisting">typedef struct rasqal_literal_s rasqal_literal;
</pre>
<p>
Rasqal literal class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-type"></a><h3>enum rasqal_literal_type</h3>
<pre class="programlisting">typedef enum {
/* internal */
RASQAL_LITERAL_UNKNOWN,
RASQAL_LITERAL_BLANK,
RASQAL_LITERAL_URI,
RASQAL_LITERAL_STRING,
RASQAL_LITERAL_XSD_STRING,
RASQAL_LITERAL_BOOLEAN,
RASQAL_LITERAL_INTEGER,
RASQAL_LITERAL_FLOAT,
RASQAL_LITERAL_DOUBLE,
RASQAL_LITERAL_DECIMAL,
RASQAL_LITERAL_DATETIME,
/* internal */
RASQAL_LITERAL_FIRST_XSD = RASQAL_LITERAL_XSD_STRING,
/* internal */
RASQAL_LITERAL_LAST_XSD = RASQAL_LITERAL_DATETIME,
RASQAL_LITERAL_UDT,
RASQAL_LITERAL_PATTERN,
RASQAL_LITERAL_QNAME,
RASQAL_LITERAL_VARIABLE,
/* internal */
RASQAL_LITERAL_INTEGER_SUBTYPE,
RASQAL_LITERAL_DATE,
/* internal */
RASQAL_LITERAL_LAST = RASQAL_LITERAL_DATE
} rasqal_literal_type;
</pre>
<p>
Types of literal.
</p>
<p>
The order in the enumeration is significant as it encodes
the SPARQL term ordering conditions:
</p>
<p>
Blank Nodes << IRIs << RDF literals << typed literals
</p>
<p>
which coresponds to in enum values
</p>
<p>
BLANK << URI << STRING <<
(BOOLEAN | INTEGER | DOUBLE | FLOAT | DECIMAL | DATETIME | XSD_STRING)
</p>
<p>
(RASQAL_LITERAL_FIRST_XSD ... RASQAL_LITERAL_LAST_XSD)
</p>
<p>
Not used (internal): PATTERN, QNAME, VARIABLE
</p>
<p>
See <a class="link" href="rasqal-section-literal.html#rasqal-literal-compare" title="rasqal_literal_compare ()"><code class="function">rasqal_literal_compare()</code></a> when used with flags
<a class="link" href="rasqal-section-expression.html#RASQAL-COMPARE-XQUERY:CAPS"><code class="literal">RASQAL_COMPARE_XQUERY</code></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="RASQAL-LITERAL-UNKNOWN:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_UNKNOWN</code></span></p></td>
<td>Internal.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-BLANK:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_BLANK</code></span></p></td>
<td>RDF blank node literal (SPARQL r:bNode)
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-URI:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_URI</code></span></p></td>
<td>RDF URI Literal (SPARQL r:URI)
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-STRING:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_STRING</code></span></p></td>
<td>RDF Plain Literal - no datatype (SPARQL r:Literal)
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-XSD-STRING:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_XSD_STRING</code></span></p></td>
<td>String xsd:string
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-BOOLEAN:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_BOOLEAN</code></span></p></td>
<td>Boolean literal xsd:boolean.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-INTEGER:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_INTEGER</code></span></p></td>
<td>Integer literal xsd:integer.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-FLOAT:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_FLOAT</code></span></p></td>
<td>Floating point literal xsd:float.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-DOUBLE:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_DOUBLE</code></span></p></td>
<td>Double floating point literal xsd:double.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-DECIMAL:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_DECIMAL</code></span></p></td>
<td>Decimal integer xsd:decimal.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-DATETIME:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_DATETIME</code></span></p></td>
<td>Date/Time literal xsd:dateTime.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-FIRST-XSD:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_FIRST_XSD</code></span></p></td>
<td>Internal.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-LAST-XSD:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_LAST_XSD</code></span></p></td>
<td>Internal.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-UDT:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_UDT</code></span></p></td>
<td>User defined typed literal with unknown datatype URI
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-PATTERN:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_PATTERN</code></span></p></td>
<td>Pattern literal for a regex.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-QNAME:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_QNAME</code></span></p></td>
<td>XML Qname literal.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-VARIABLE:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_VARIABLE</code></span></p></td>
<td>Variable literal.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-INTEGER-SUBTYPE:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_INTEGER_SUBTYPE</code></span></p></td>
<td>Internal.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-DATE:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_DATE</code></span></p></td>
<td>Date literal xsd:date.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-LITERAL-LAST:CAPS"></a><span class="term"><code class="literal">RASQAL_LITERAL_LAST</code></span></p></td>
<td>Internal.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-typed-literal"></a><h3>rasqal_new_typed_literal ()</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_new_typed_literal (<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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *string</code></em>);</pre>
<p>
Constructor - Create a new Rasqal integer literal from a string
</p>
<p>
The integer decimal number is turned into a rasqal integer literal
and given a datatype of xsd:integer
</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>type</code></em> :</span></p></td>
<td>Type of literal such as RASQAL_LITERAL_INTEGER or RASQAL_LITERAL_BOOLEAN</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td>lexical form - ownership not taken</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-boolean-literal"></a><h3>rasqal_new_boolean_literal ()</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_new_boolean_literal (<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">int</span> value</code></em>);</pre>
<p>
Constructor - Create a new Rasqal boolean literal.
</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>value</code></em> :</span></p></td>
<td>non-0 for true, 0 for false</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-datetime-literal-from-datetime"></a><h3>rasqal_new_datetime_literal_from_datetime ()</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_new_datetime_literal_from_datetime
(<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><a class="link" href="rasqal-section-xsd.html#rasqal-xsd-datetime" title="rasqal_xsd_datetime"><span class="type">rasqal_xsd_datetime</span></a> *dt</code></em>);</pre>
<p>
Constructor - Create a new Rasqal datetime literal from an existing datetime.
</p>
<p>
Takes ownership of <em class="parameter"><code>dt</code></em>
</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>dt</code></em> :</span></p></td>
<td>rasqal XSD Datetime</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-decimal-literal"></a><h3>rasqal_new_decimal_literal ()</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_new_decimal_literal (<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> *string</code></em>);</pre>
<p>
Constructor - Create a new Rasqal decimal literal.
</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>string</code></em> :</span></p></td>
<td>decimal literal</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-decimal-literal-from-decimal"></a><h3>rasqal_new_decimal_literal_from_decimal ()</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_new_decimal_literal_from_decimal
(<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> *string</code></em>,
<em class="parameter"><code><a class="link" href="rasqal-section-xsd.html#rasqal-xsd-decimal" title="rasqal_xsd_decimal"><span class="type">rasqal_xsd_decimal</span></a> *decimal</code></em>);</pre>
<p>
Constructor - Create a new Rasqal decimal literal.
</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>string</code></em> :</span></p></td>
<td>decimal literal string</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>decimal</code></em> :</span></p></td>
<td>rasqal XSD Decimal</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-double-literal"></a><h3>rasqal_new_double_literal ()</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_new_double_literal (<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">double</span> d</code></em>);</pre>
<p>
Constructor - Create a new Rasqal double literal.
</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>d</code></em> :</span></p></td>
<td>double literal</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-float-literal"></a><h3>rasqal_new_float_literal ()</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_new_float_literal (<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">float</span> f</code></em>);</pre>
<p>
Constructor - Create a new Rasqal float literal.
</p>
<p>
<em class="parameter"><code>Deprecated</code></em>: Use <a class="link" href="rasqal-section-literal.html#rasqal-new-floating-literal" title="rasqal_new_floating_literal ()"><code class="function">rasqal_new_floating_literal()</code></a> with type
<a class="link" href="rasqal-section-literal.html#RASQAL-LITERAL-FLOAT:CAPS"><span class="type">RASQAL_LITERAL_FLOAT</span></a> and double value.
</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>f</code></em> :</span></p></td>
<td>float literal</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-floating-literal"></a><h3>rasqal_new_floating_literal ()</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_new_floating_literal (<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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code><span class="type">double</span> d</code></em>);</pre>
<p>
Constructor - Create a new Rasqal float literal from a double.
</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>type</code></em> :</span></p></td>
<td>type - <a class="link" href="rasqal-section-literal.html#RASQAL-LITERAL-FLOAT:CAPS"><span class="type">RASQAL_LITERAL_FLOAT</span></a> or <a class="link" href="rasqal-section-literal.html#RASQAL-LITERAL-DOUBLE:CAPS"><span class="type">RASQAL_LITERAL_DOUBLE</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
<td>floating literal (double)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-integer-literal"></a><h3>rasqal_new_integer_literal ()</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_new_integer_literal (<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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code><span class="type">int</span> integer</code></em>);</pre>
<p>
Constructor - Create a new Rasqal integer literal.
</p>
<p>
The integer decimal number is turned into a rasqal integer literal
and given a datatype of xsd:integer
</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>type</code></em> :</span></p></td>
<td>Type of literal such as RASQAL_LITERAL_INTEGER or RASQAL_LITERAL_BOOLEAN</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>integer</code></em> :</span></p></td>
<td>int value</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-numeric-literal-from-long"></a><h3>rasqal_new_numeric_literal_from_long ()</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_new_numeric_literal_from_long
(<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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code>long <span class="type">value</span> Param3</code></em>);</pre>
<p>
Constructor - Create a new Rasqal numeric literal from a long.
</p>
<p>
The value is turned into a rasqal integer or decimal literal and
given a datatype of xsd:integer
</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>type</code></em> :</span></p></td>
<td>Type of literal such as RASQAL_LITERAL_INTEGER or RASQAL_LITERAL_BOOLEAN</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-pattern-literal"></a><h3>rasqal_new_pattern_literal ()</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_new_pattern_literal (<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> *pattern</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *flags</code></em>);</pre>
<p>
Constructor - Create a new Rasqal pattern literal.
</p>
<p>
The pattern and flags are input parameters and are stored in the
literal, not copied. They are freed also on failure.
The set of flags recognised depends on the regex library and the query
language.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>rasqal world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
<td>regex pattern</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>regex flags</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-simple-literal"></a><h3>rasqal_new_simple_literal ()</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_new_simple_literal (<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><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *string</code></em>);</pre>
<p>
Constructor - Create a new Rasqal simple literal.
</p>
<p>
The string is an input parameter and is stored in the
literal, not copied. It is freed also on failure.
</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>type</code></em> :</span></p></td>
<td>RASQAL_LITERAL_BLANK or RASQAL_LITERAL_BLANK_QNAME</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td>the UTF-8 string value to store</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-string-literal"></a><h3>rasqal_new_string_literal ()</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_new_string_literal (<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> *string</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *language</code></em>,
<em class="parameter"><code><span class="type">raptor_uri</span> *datatype</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *datatype_qname</code></em>);</pre>
<p>
Constructor - Create a new Rasqal string literal.
</p>
<p>
All parameters are input parameters and if present are stored in
the literal, not copied. They are freed also on failure.
</p>
<p>
The datatype and datatype_qname parameters are alternatives; the
qname is a datatype that cannot be resolved till later since the
prefixes have not yet been declared or checked.
</p>
<p>
If the string literal is datatyped and of certain types recognised
it may be converted to a different literal type.
</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>string</code></em> :</span></p></td>
<td>UTF-8 string lexical form</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
<td>RDF language (xml:lang) (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>datatype</code></em> :</span></p></td>
<td>datatype URI (or NULL for plain literal)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>datatype_qname</code></em> :</span></p></td>
<td>datatype qname string (or NULL for plain literal)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-uri-literal"></a><h3>rasqal_new_uri_literal ()</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_new_uri_literal (<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>
Constructor - Create a new Rasqal URI literal from a raptor URI.
</p>
<p>
The uri is an input parameter and is stored in the literal, not copied.
The uri is freed also on failure.
</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>
<span class="type">raptor_uri</span> uri</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-variable-literal"></a><h3>rasqal_new_variable_literal ()</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_new_variable_literal (<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><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> *variable</code></em>);</pre>
<p>
Constructor - Create a new Rasqal variable literal.
</p>
<p>
variable is an input parameter and stored in the literal, not copied.
</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>variable</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> to use</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>New <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-literal-from-literal"></a><h3>rasqal_new_literal_from_literal ()</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_new_literal_from_literal (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Copy Constructor - create a new rasqal_literal object from an existing rasqal_literal object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object to copy or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object or NULL if <em class="parameter"><code>l</code></em> was NULL.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-free-literal"></a><h3>rasqal_free_literal ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_free_literal (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Destructor - destroy an rasqal_literal object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-as-node"></a><h3>rasqal_literal_as_node ()</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_literal_as_node (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Turn a literal into a new RDF string, URI or blank literal.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> or NULL on failure or if the literal was an unbound variable.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-as-counted-string"></a><h3>rasqal_literal_as_counted_string ()</h3>
<pre class="programlisting">const unsigned <span class="returnvalue">char</span> * rasqal_literal_as_counted_string (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *len_p</code></em>,
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
<em class="parameter"><code><span class="type">int</span> *error_p</code></em>);</pre>
<p>
Return a counted string format of a literal according to flags.
</p>
<p>
flag bits affects conversion:
RASQAL_COMPARE_XQUERY: use XQuery conversion rules
</p>
<p>
If <em class="parameter"><code>error</code></em> is not NULL, *error is set to non-0 on error
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len_p</code></em> :</span></p></td>
<td>pointer to store length of string (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>comparison flags</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_p</code></em> :</span></p></td>
<td>pointer to error</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to a shared string format of the literal.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-as-string"></a><h3>rasqal_literal_as_string ()</h3>
<pre class="programlisting">const unsigned <span class="returnvalue">char</span> * rasqal_literal_as_string (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Return the string format of a literal.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to a shared string format of the literal.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-as-string-flags"></a><h3>rasqal_literal_as_string_flags ()</h3>
<pre class="programlisting">const unsigned <span class="returnvalue">char</span> * rasqal_literal_as_string_flags (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>,
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
<em class="parameter"><code><span class="type">int</span> *error_p</code></em>);</pre>
<p>
Return the string format of a literal according to flags.
</p>
<p>
flag bits affects conversion:
RASQAL_COMPARE_XQUERY: use XQuery conversion rules
</p>
<p>
If <em class="parameter"><code>error</code></em> is not NULL, *error is set to non-0 on error
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>comparison flags</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_p</code></em> :</span></p></td>
<td>pointer to error</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to a shared string format of the literal.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-as-variable"></a><h3>rasqal_literal_as_variable ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="returnvalue">rasqal_variable</span></a> * rasqal_literal_as_variable (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Get the variable inside a literal.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> or NULL if the literal is not a variable</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-compare"></a><h3>rasqal_literal_compare ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_literal_compare (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l1</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> *l2</code></em>,
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
<em class="parameter"><code><span class="type">int</span> *error_p</code></em>);</pre>
<p>
Compare two literals with type promotion.
</p>
<p>
The two literals are compared across their range. If the types
are not the same, they are promoted. If one is a double or float, the
other is promoted to double, otherwise for integers, otherwise
to strings (all literals have a string value).
</p>
<p>
The comparison returned is as for strcmp, first before second
returns <0. equal returns 0, and first after second returns >0.
For URIs, the string value is used for the comparsion.
</p>
<p>
flag bits affects comparisons:
RASQAL_COMPARE_NOCASE: use case independent string comparisons
RASQAL_COMPARE_XQUERY: use XQuery comparison and type promotion rules
RASQAL_COMPARE_RDF: use RDF term comparison
RASQAL_COMPARE_URI: allow comparison of URIs (typically for SPARQL ORDER)
</p>
<p>
If <em class="parameter"><code>error</code></em> is not NULL, *error is set to non-0 on error
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l1</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> first literal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>l2</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> second literal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>comparison flags</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_p</code></em> :</span></p></td>
<td>pointer to error</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td><0, 0, or >0 as described above.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-datatype"></a><h3>rasqal_literal_datatype ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_uri</span> * rasqal_literal_datatype (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Get the datatype URI of a literal
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>shared pointer to <span class="type">raptor_uri</span> of datatype or NULL on failure or no value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-equals"></a><h3>rasqal_literal_equals ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_literal_equals (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l1</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> *l2</code></em>);</pre>
<p>
Compare two literals with no type promotion.
</p>
<p>
If the l2 data literal value is a boolean, it will match
the string "true" or "false" in the first literal l1.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l1</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> literal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>l2</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> data literal</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if equal</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-get-rdf-term-type"></a><h3>rasqal_literal_get_rdf_term_type ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="returnvalue">rasqal_literal_type</span></a> rasqal_literal_get_rdf_term_type (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Get the RDF term type of a literal
</p>
<p>
An RDF term can be one of three choices:
1. URI: RASQAL_LITERAL_URI
2. literal: RASQAL_LITERAL_STRING
3. blank node: RASQAL_LITERAL_BLANK
</p>
<p>
Other non RDF-term cases include: NULL pointer, invalid literal,
unknown type, a variable or other special cases (such as XML QName
or Regex pattern) which all turn into RASQAL_LITERAL_UNKNOWN
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>literal</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>type or RASQAL_LITERAL_UNKNOWN if cannot be an RDF term</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-is-rdf-literal"></a><h3>rasqal_literal_is_rdf_literal ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_literal_is_rdf_literal (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Check if a literal is any RDF term literal - plain or typed literal
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> literal</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if the value is an RDF term literal</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-print"></a><h3>rasqal_literal_print ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_literal_print (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>,
<em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);</pre>
<p>
Print a Rasqal literal in a debug format.
</p>
<p>
The print debug format may change in any release.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>the <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td>
<td>the FILE handle to print to</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-print-type"></a><h3>rasqal_literal_print_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_literal_print_type (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>,
<em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);</pre>
<p>
Print a string form for a rasqal literal type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>the <a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td>
<td>the FILE* handle to print to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-type-label"></a><h3>rasqal_literal_type_label ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * rasqal_literal_type_label (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> type</code></em>);</pre>
<p>
Get a label for the rasqal literal 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>the <a class="link" href="rasqal-section-literal.html#rasqal-literal-type" title="enum rasqal_literal_type"><span class="type">rasqal_literal_type</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the label (shared string) or NULL if type is out of
range or unknown</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-same-term"></a><h3>rasqal_literal_same_term ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_literal_same_term (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l1</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> *l2</code></em>);</pre>
<p>
Check if literals are same term (URI, literal, blank)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l1</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> literal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>l2</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> data literal</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if same</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-literal-value"></a><h3>rasqal_literal_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_literal_value (<em class="parameter"><code><a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> *l</code></em>);</pre>
<p>
Get the literal value looking up any variables needed
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>l</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-literal.html#rasqal-literal" title="rasqal_literal"><span class="type">rasqal_literal</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>literal value or NULL if has no value</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|