/usr/share/gtk-doc/html/librdf/redland-node.html is in librdf0-dev 1.0.17-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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RDF term (librdf_node)</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Redland RDF Library Manual">
<link rel="up" href="reference-manual.html" title="Part II. Reference Manual">
<link rel="prev" href="redland-model.html" title="RDF Graph (librdf_model)">
<link rel="next" href="redland-parser.html" title="Parsers">
<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="redland-model.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">Redland RDF Library Manual</th>
<td><a accesskey="n" href="redland-parser.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#redland-node.synopsis" class="shortcut">Top</a>
|
<a href="#redland-node.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="redland-node"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="redland-node.top_of_page"></a>RDF term (librdf_node)</span></h2>
<p>RDF term (librdf_node) — RDF triple component</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="redland-node.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"><span class="returnvalue">void</span> <a class="link" href="redland-node.html#librdf-free-node" title="librdf_free_node ()">librdf_free_node</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node" title="librdf_new_node ()">librdf_new_node</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-blank-identifier" title="librdf_new_node_from_blank_identifier ()">librdf_new_node_from_blank_identifier</a>
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *identifier</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-counted-blank-identifier" title="librdf_new_node_from_counted_blank_identifier ()">librdf_new_node_from_counted_blank_identifier</a>
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *identifier</code></em>,
<em class="parameter"><code><span class="type">size_t</span> identifier_len</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-counted-uri-string" title="librdf_new_node_from_counted_uri_string ()">librdf_new_node_from_counted_uri_string</a>
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *uri_string</code></em>,
<em class="parameter"><code><span class="type">size_t</span> len</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-literal" title="librdf_new_node_from_literal ()">librdf_new_node_from_literal</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *string</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *xml_language</code></em>,
<em class="parameter"><code><span class="type">int</span> is_wf_xml</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-node" title="librdf_new_node_from_node ()">librdf_new_node_from_node</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-normalised-uri-string" title="librdf_new_node_from_normalised_uri_string ()">librdf_new_node_from_normalised_uri_string</a>
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *uri_string</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *source_uri</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *base_uri</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-typed-counted-literal" title="librdf_new_node_from_typed_counted_literal ()">librdf_new_node_from_typed_counted_literal</a>
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *value</code></em>,
<em class="parameter"><code><span class="type">size_t</span> value_len</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *xml_language</code></em>,
<em class="parameter"><code><span class="type">size_t</span> xml_language_len</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *datatype_uri</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-typed-literal" title="librdf_new_node_from_typed_literal ()">librdf_new_node_from_typed_literal</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *value</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *xml_language</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *datatype_uri</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-uri" title="librdf_new_node_from_uri ()">librdf_new_node_from_uri</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *uri</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-uri-local-name" title="librdf_new_node_from_uri_local_name ()">librdf_new_node_from_uri_local_name</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *uri</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *local_name</code></em>);
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-new-node-from-uri-string" title="librdf_new_node_from_uri_string ()">librdf_new_node_from_uri_string</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *uri_string</code></em>);
typedef <a class="link" href="redland-node.html#librdf-node" title="librdf_node">librdf_node</a>;
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-node.html#librdf-node-decode" title="librdf_node_decode ()">librdf_node_decode</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *size_p</code></em>,
<em class="parameter"><code>unsigned <span class="type">char</span> *buffer</code></em>,
<em class="parameter"><code><span class="type">size_t</span> length</code></em>);
<span class="returnvalue">size_t</span> <a class="link" href="redland-node.html#librdf-node-encode" title="librdf_node_encode ()">librdf_node_encode</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code>unsigned <span class="type">char</span> *buffer</code></em>,
<em class="parameter"><code><span class="type">size_t</span> length</code></em>);
<span class="returnvalue">int</span> <a class="link" href="redland-node.html#librdf-node-equals" title="librdf_node_equals ()">librdf_node_equals</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *first_node</code></em>,
<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *second_node</code></em>);
unsigned <span class="returnvalue">char</span> * <a class="link" href="redland-node.html#librdf-node-get-blank-identifier" title="librdf_node_get_blank_identifier ()">librdf_node_get_blank_identifier</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
unsigned <span class="returnvalue">char</span> * <a class="link" href="redland-node.html#librdf-node-get-counted-blank-identifier" title="librdf_node_get_counted_blank_identifier ()">librdf_node_get_counted_blank_identifier</a>
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *len_p</code></em>);
<span class="returnvalue">int</span> <a class="link" href="redland-node.html#librdf-node-get-li-ordinal" title="librdf_node_get_li_ordinal ()">librdf_node_get_li_ordinal</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
unsigned <span class="returnvalue">char</span> * <a class="link" href="redland-node.html#librdf-node-get-literal-value" title="librdf_node_get_literal_value ()">librdf_node_get_literal_value</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
unsigned <span class="returnvalue">char</span> * <a class="link" href="redland-node.html#librdf-node-get-literal-value-as-counted-string" title="librdf_node_get_literal_value_as_counted_string ()">librdf_node_get_literal_value_as_counted_string</a>
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *len_p</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="redland-node.html#librdf-node-get-literal-value-as-latin1" title="librdf_node_get_literal_value_as_latin1 ()">librdf_node_get_literal_value_as_latin1</a>
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="returnvalue">librdf_uri</span></a> * <a class="link" href="redland-node.html#librdf-node-get-literal-value-datatype-uri" title="librdf_node_get_literal_value_datatype_uri ()">librdf_node_get_literal_value_datatype_uri</a>
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<span class="returnvalue">int</span> <a class="link" href="redland-node.html#librdf-node-get-literal-value-is-wf-xml" title="librdf_node_get_literal_value_is_wf_xml ()">librdf_node_get_literal_value_is_wf_xml</a>
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="redland-node.html#librdf-node-get-literal-value-language" title="librdf_node_get_literal_value_language ()">librdf_node_get_literal_value_language</a>
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<a class="link" href="redland-node.html#librdf-node-type" title="enum librdf_node_type"><span class="returnvalue">librdf_node_type</span></a> <a class="link" href="redland-node.html#librdf-node-get-type" title="librdf_node_get_type ()">librdf_node_get_type</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="returnvalue">librdf_uri</span></a> * <a class="link" href="redland-node.html#librdf-node-get-uri" title="librdf_node_get_uri ()">librdf_node_get_uri</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<span class="returnvalue">int</span> <a class="link" href="redland-node.html#librdf-node-is-blank" title="librdf_node_is_blank ()">librdf_node_is_blank</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<span class="returnvalue">int</span> <a class="link" href="redland-node.html#librdf-node-is-literal" title="librdf_node_is_literal ()">librdf_node_is_literal</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<span class="returnvalue">int</span> <a class="link" href="redland-node.html#librdf-node-is-resource" title="librdf_node_is_resource ()">librdf_node_is_resource</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
<a class="link" href="redland-iterator.html#librdf-iterator" title="librdf_iterator"><span class="returnvalue">librdf_iterator</span></a> * <a class="link" href="redland-node.html#librdf-node-new-static-node-iterator" title="librdf_node_new_static_node_iterator ()">librdf_node_new_static_node_iterator</a>
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> **nodes</code></em>,
<em class="parameter"><code><span class="type">int</span> size</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-node.html#librdf-node-print" title="librdf_node_print ()">librdf_node_print</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);
<a class="link" href="redland-iterator.html#librdf-iterator" title="librdf_iterator"><span class="returnvalue">librdf_iterator</span></a> * <a class="link" href="redland-node.html#librdf-node-static-iterator-create" title="librdf_node_static_iterator_create ()">librdf_node_static_iterator_create</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> **nodes</code></em>,
<em class="parameter"><code><span class="type">int</span> size</code></em>);
unsigned <span class="returnvalue">char</span> * <a class="link" href="redland-node.html#librdf-node-to-counted-string" title="librdf_node_to_counted_string ()">librdf_node_to_counted_string</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *len_p</code></em>);
unsigned <span class="returnvalue">char</span> * <a class="link" href="redland-node.html#librdf-node-to-string" title="librdf_node_to_string ()">librdf_node_to_string</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);
enum <a class="link" href="redland-node.html#librdf-node-type" title="enum librdf_node_type">librdf_node_type</a>;
<span class="returnvalue">int</span> <a class="link" href="redland-node.html#librdf-node-write" title="librdf_node_write ()">librdf_node_write</a> (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="redland-node.description"></a><h2>Description</h2>
<p>
The (subject, predicate, object) parts of an RDF triple.
</p>
</div>
<div class="refsect1">
<a name="redland-node.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="librdf-free-node"></a><h3>librdf_free_node ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_free_node (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Destructor - destroy an <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node"></a><h3>librdf_new_node ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);</pre>
<p>
Constructor - create a new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object with a private identifier.
</p>
<p>
Calls librdf_new_node_from_blank_identifier(world, NULL) to
construct a new redland blank node identifier and make a
new librdf_node object for 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>redland world object</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="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-blank-identifier"></a><h3>librdf_new_node_from_blank_identifier ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_blank_identifier
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *identifier</code></em>);</pre>
<p>
Constructor - create a new blank node <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object from a blank node identifier.
</p>
<p>
If no <em class="parameter"><code>identifier</code></em> string is given (NULL) this creates a new
internal identifier and uses 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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>identifier</code></em> :</span></p></td>
<td>UTF-8 encoded blank node identifier or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-counted-blank-identifier"></a><h3>librdf_new_node_from_counted_blank_identifier ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_counted_blank_identifier
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *identifier</code></em>,
<em class="parameter"><code><span class="type">size_t</span> identifier_len</code></em>);</pre>
<p>
Constructor - create a new blank node <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object from a blank node counted length identifier.
</p>
<p>
If no <em class="parameter"><code>identifier</code></em> string is given (NULL) this creates a new
internal identifier and uses 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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>identifier</code></em> :</span></p></td>
<td>UTF-8 encoded blank node identifier or NULL</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>identifier_len</code></em> :</span></p></td>
<td>length of <em class="parameter"><code>identifier</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-counted-uri-string"></a><h3>librdf_new_node_from_counted_uri_string ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_counted_uri_string
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *uri_string</code></em>,
<em class="parameter"><code><span class="type">size_t</span> len</code></em>);</pre>
<p>
Constructor - create a new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object from a counted URI string.
</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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri_string</code></em> :</span></p></td>
<td>string representing a URI</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
<td>length of string</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="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-literal"></a><h3>librdf_new_node_from_literal ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_literal (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *string</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *xml_language</code></em>,
<em class="parameter"><code><span class="type">int</span> is_wf_xml</code></em>);</pre>
<p>
Constructor - create a new literal <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object.
</p>
<p>
0.9.12: xml_space argument deleted
</p>
<p>
An <em class="parameter"><code>xml_language</code></em> cannot be used when <em class="parameter"><code>is_wf_xml</code></em> is non-0. If both
are given, NULL is returned. If <em class="parameter"><code>xml_language</code></em> is the empty string,
it is the equivalent to NULL.
</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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td>literal UTF-8 encoded string value</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xml_language</code></em> :</span></p></td>
<td>literal XML language (or NULL, empty string)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_wf_xml</code></em> :</span></p></td>
<td>non 0 if literal is XML</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-node"></a><h3>librdf_new_node_from_node ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_node (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Copy constructor - create a new librdf_node object from an existing librdf_node object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object to copy</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="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-normalised-uri-string"></a><h3>librdf_new_node_from_normalised_uri_string ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_normalised_uri_string
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *uri_string</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *source_uri</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *base_uri</code></em>);</pre>
<p>
Constructor - create a new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object from a UTF-8 encoded URI string normalised to a new base URI.
</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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri_string</code></em> :</span></p></td>
<td>UTF-8 encoded string representing a URI</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>source_uri</code></em> :</span></p></td>
<td>source URI</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td>base URI</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="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-typed-counted-literal"></a><h3>librdf_new_node_from_typed_counted_literal ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_typed_counted_literal
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *value</code></em>,
<em class="parameter"><code><span class="type">size_t</span> value_len</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *xml_language</code></em>,
<em class="parameter"><code><span class="type">size_t</span> xml_language_len</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *datatype_uri</code></em>);</pre>
<p>
Constructor - create a new typed literal <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object.
</p>
<p>
Takes copies of the passed in <em class="parameter"><code>value</code></em>, <em class="parameter"><code>datatype_uri</code></em> and <em class="parameter"><code>xml_language</code></em>.
</p>
<p>
Only one of <em class="parameter"><code>xml_language</code></em> or <em class="parameter"><code>datatype_uri</code></em> may be given. If both
are given, NULL is returned. If <em class="parameter"><code>xml_language</code></em> is the empty string,
it is the equivalent to NULL.
</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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>literal UTF-8 encoded string value</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value_len</code></em> :</span></p></td>
<td>literal string value length</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xml_language</code></em> :</span></p></td>
<td>literal XML language (or NULL, empty string)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xml_language_len</code></em> :</span></p></td>
<td>literal XML language length (not used if <em class="parameter"><code>xml_language</code></em> is NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>datatype_uri</code></em> :</span></p></td>
<td>URI of typed literal datatype or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-typed-literal"></a><h3>librdf_new_node_from_typed_literal ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_typed_literal (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *value</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *xml_language</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *datatype_uri</code></em>);</pre>
<p>
Constructor - create a new typed literal <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object.
</p>
<p>
Only one of <em class="parameter"><code>xml_language</code></em> or <em class="parameter"><code>datatype_uri</code></em> may be given. If both
are given, NULL is returned. If <em class="parameter"><code>xml_language</code></em> is the empty string,
it is the equivalent to NULL.
</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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>literal UTF-8 encoded string value</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xml_language</code></em> :</span></p></td>
<td>literal XML language (or NULL, empty string)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>datatype_uri</code></em> :</span></p></td>
<td>URI of typed literal datatype or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-uri"></a><h3>librdf_new_node_from_uri ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_uri (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *uri</code></em>);</pre>
<p>
Constructor - create a new resource <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object with a given URI.
</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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object</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="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-uri-local-name"></a><h3>librdf_new_node_from_uri_local_name ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_uri_local_name (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *uri</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *local_name</code></em>);</pre>
<p>
Constructor - create a new resource <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object with a given URI and local name.
</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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>local_name</code></em> :</span></p></td>
<td>local name to append to URI</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="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-node-from-uri-string"></a><h3>librdf_new_node_from_uri_string ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_new_node_from_uri_string (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *uri_string</code></em>);</pre>
<p>
Constructor - create a new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object from a URI string.
</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>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri_string</code></em> :</span></p></td>
<td>string representing a URI</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="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node"></a><h3>librdf_node</h3>
<pre class="programlisting">typedef raptor_term librdf_node;
</pre>
<p>
Redland node class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-decode"></a><h3>librdf_node_decode ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_node_decode (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *size_p</code></em>,
<em class="parameter"><code>unsigned <span class="type">char</span> *buffer</code></em>,
<em class="parameter"><code><span class="type">size_t</span> length</code></em>);</pre>
<p>
Deserialise a node from a buffer.
</p>
<p>
Decodes the serialised node (as created by <a class="link" href="redland-node.html#librdf-node-encode" title="librdf_node_encode ()"><code class="function">librdf_node_encode()</code></a> )
from the given buffer.
</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>librdf_world</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size_p</code></em> :</span></p></td>
<td>pointer to bytes used or NULL</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>the buffer to use</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new node or NULL on failure (bad encoding, allocation failure)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-encode"></a><h3>librdf_node_encode ()</h3>
<pre class="programlisting"><span class="returnvalue">size_t</span> librdf_node_encode (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code>unsigned <span class="type">char</span> *buffer</code></em>,
<em class="parameter"><code><span class="type">size_t</span> length</code></em>);</pre>
<p>
Serialise a node into a buffer.
</p>
<p>
Encodes the given node in the buffer, which must be of sufficient
size. If buffer is NULL, no work is done but the size of buffer
required is returned.
</p>
<p>
If the node cannot be encoded due to restrictions of the encoding
format, a redland error is generated
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node to serialise</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>the buffer to use</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of bytes written or 0 on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-equals"></a><h3>librdf_node_equals ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> librdf_node_equals (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *first_node</code></em>,
<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *second_node</code></em>);</pre>
<p>
Compare two librdf_node objects for equality.
</p>
<p>
Note - for literal nodes, XML language, XML space and well-formness are
presently ignored in the comparison.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_node</code></em> :</span></p></td>
<td>first <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> node</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>second_node</code></em> :</span></p></td>
<td>second <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> node</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non 0 if nodes are equal. 0 if not-equal or failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-blank-identifier"></a><h3>librdf_node_get_blank_identifier ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> * librdf_node_get_blank_identifier (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the blank node identifier as a UTF-8 encoded string.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the UTF-8 encoded blank node identifier value or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-counted-blank-identifier"></a><h3>librdf_node_get_counted_blank_identifier ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> * librdf_node_get_counted_blank_identifier
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *len_p</code></em>);</pre>
<p>
Get the blank node identifier as a counted UTF-8 encoded string.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len_p</code></em> :</span></p></td>
<td>pointer to variable to store length (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the UTF-8 encoded blank node identifier value or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-li-ordinal"></a><h3>librdf_node_get_li_ordinal ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> librdf_node_get_li_ordinal (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the node li object ordinal value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the li ordinal value or < 1 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-literal-value"></a><h3>librdf_node_get_literal_value ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> * librdf_node_get_literal_value (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the literal value of the node as a UTF-8 encoded string.
</p>
<p>
Returns a pointer to the UTF-8 encoded literal value held by the
node, it must be copied if it is wanted to be used by the caller.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the UTF-8 encoded literal string or NULL if node is not a literal</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-literal-value-as-counted-string"></a><h3>librdf_node_get_literal_value_as_counted_string ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> * librdf_node_get_literal_value_as_counted_string
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *len_p</code></em>);</pre>
<p>
Get the literal value of the node as a counted UTF-8 encoded string.
</p>
<p>
Returns a pointer to the UTF-8 encoded literal string value held
by the node, it must be copied if it is wanted to be used by the
caller.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len_p</code></em> :</span></p></td>
<td>pointer to location to store the string length (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the UTF-8 encoded literal string or NULL if node is not a literal</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-literal-value-as-latin1"></a><h3>librdf_node_get_literal_value_as_latin1 ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * librdf_node_get_literal_value_as_latin1
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the string literal value of the node as ISO Latin-1.
</p>
<p>
Returns a newly allocated string containing the conversion of the
node literal value held by the node into ISO Latin-1. Discards
characters outside the U+0000 to U+00FF range (inclusive).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the Latin-1 literal string or NULL if node is not a literal</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-literal-value-datatype-uri"></a><h3>librdf_node_get_literal_value_datatype_uri ()</h3>
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="returnvalue">librdf_uri</span></a> * librdf_node_get_literal_value_datatype_uri
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the typed literal datatype URI of the literal node.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>shared URI of the datatyped literal or NULL if the node is not a literal, or has no datatype URI</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-literal-value-is-wf-xml"></a><h3>librdf_node_get_literal_value_is_wf_xml ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> librdf_node_get_literal_value_is_wf_xml
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the XML well-formness property of the node.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 if the XML literal is NOT well formed XML content, or the node is not a literal</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-literal-value-language"></a><h3>librdf_node_get_literal_value_language ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * librdf_node_get_literal_value_language
(<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the XML language of the node.
</p>
<p>
Returns a pointer to the literal language value held by the node,
it must be copied if it is wanted to be used by the caller.
Language strings are ASCII, not UTF-8 encoded Unicode.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the XML language string or NULL if node is not a literal
or there is no XML language defined.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-type"></a><h3>librdf_node_get_type ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node-type" title="enum librdf_node_type"><span class="returnvalue">librdf_node_type</span></a> librdf_node_get_type (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the type of the node.
</p>
<p>
See also <a class="link" href="redland-node.html#librdf-node-is-resource" title="librdf_node_is_resource ()"><code class="function">librdf_node_is_resource()</code></a>, <a class="link" href="redland-node.html#librdf-node-is-literal" title="librdf_node_is_literal ()"><code class="function">librdf_node_is_literal()</code></a> and
<a class="link" href="redland-node.html#librdf-node-is-blank" title="librdf_node_is_blank ()"><code class="function">librdf_node_is_blank()</code></a> for testing individual types.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the node type</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-get-uri"></a><h3>librdf_node_get_uri ()</h3>
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="returnvalue">librdf_uri</span></a> * librdf_node_get_uri (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Get the URI for a node object.
</p>
<p>
Returns a pointer to the URI object held by the node, it must be
copied if it is wanted to be used by the caller.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>URI object or NULL if node has no URI.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-is-blank"></a><h3>librdf_node_is_blank ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> librdf_node_is_blank (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Check node is a blank nodeID.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-zero if the node is a blank nodeID</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-is-literal"></a><h3>librdf_node_is_literal ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> librdf_node_is_literal (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Check node is 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>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-zero if the node is a literal</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-is-resource"></a><h3>librdf_node_is_resource ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> librdf_node_is_resource (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Check node is a resource.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-zero if the node is a resource (URI)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-new-static-node-iterator"></a><h3>librdf_node_new_static_node_iterator ()</h3>
<pre class="programlisting"><a class="link" href="redland-iterator.html#librdf-iterator" title="librdf_iterator"><span class="returnvalue">librdf_iterator</span></a> * librdf_node_new_static_node_iterator
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> **nodes</code></em>,
<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
<p>
Create an iterator over an array of nodes.
</p>
<p>
This creates an iterator for an existing static array of librdf_node
objects. It is mostly intended for testing iterator 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>world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>nodes</code></em> :</span></p></td>
<td>static array of <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> objects</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>size of array</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="redland-iterator.html#librdf-iterator" title="librdf_iterator"><span class="type">librdf_iterator</span></a> serialization of the nodes or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-print"></a><h3>librdf_node_print ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_node_print (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);</pre>
<p>
Pretty print the node to a file descriptor.
</p>
<p>
This method is for debugging and the format of the output should
not be relied on.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td>
<td>file handle</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-static-iterator-create"></a><h3>librdf_node_static_iterator_create ()</h3>
<pre class="programlisting"><a class="link" href="redland-iterator.html#librdf-iterator" title="librdf_iterator"><span class="returnvalue">librdf_iterator</span></a> * librdf_node_static_iterator_create (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> **nodes</code></em>,
<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
<p>
Create an iterator over an array of nodes (ALWAYS FAILS)
</p>
<p>
This legacy method used to create an iterator for an existing
static array of librdf_node objects. It was intended for testing
iterator code.
</p>
<p>
<em class="parameter"><code>deprecated</code></em>: always returns NULL. Use
<a class="link" href="redland-node.html#librdf-node-new-static-node-iterator" title="librdf_node_new_static_node_iterator ()"><code class="function">librdf_node_new_static_node_iterator()</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>nodes</code></em> :</span></p></td>
<td>static array of <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> objects</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>size of array</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>NULL</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-to-counted-string"></a><h3>librdf_node_to_counted_string ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> * librdf_node_to_counted_string (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">size_t</span> *len_p</code></em>);</pre>
<p>
Format the node as a counted string in a debugging format.
</p>
<p>
Note a new string is allocated which must be freed by the caller.
</p>
<p>
<em class="parameter"><code>Deprecated</code></em>: Use <a class="link" href="redland-node.html#librdf-node-write" title="librdf_node_write ()"><code class="function">librdf_node_write()</code></a> to write to <span class="type">raptor_iostream</span>
which can be made to write to a string. Use a <a class="link" href="redland-serializer.html#librdf-serializer" title="librdf_serializer"><span class="type">librdf_serializer</span></a>
to write proper syntax formats.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len_p</code></em> :</span></p></td>
<td>pointer to location to store length</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a string value representing the node or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-to-string"></a><h3>librdf_node_to_string ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> * librdf_node_to_string (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>);</pre>
<p>
Format the node as a string in a debugging format.
</p>
<p>
Note a new string is allocated which must be freed by the caller.
</p>
<p>
<em class="parameter"><code>Deprecated</code></em>: Use <a class="link" href="redland-node.html#librdf-node-write" title="librdf_node_write ()"><code class="function">librdf_node_write()</code></a> to write to <span class="type">raptor_iostream</span>
which can be made to write to a string. Use a <a class="link" href="redland-serializer.html#librdf-serializer" title="librdf_serializer"><span class="type">librdf_serializer</span></a>
to write proper syntax formats.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a string value representing the node or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-type"></a><h3>enum librdf_node_type</h3>
<pre class="programlisting">typedef enum {
LIBRDF_NODE_TYPE_UNKNOWN = RAPTOR_TERM_TYPE_UNKNOWN,
LIBRDF_NODE_TYPE_RESOURCE = RAPTOR_TERM_TYPE_URI,
LIBRDF_NODE_TYPE_LITERAL = RAPTOR_TERM_TYPE_LITERAL,
LIBRDF_NODE_TYPE_BLANK = RAPTOR_TERM_TYPE_BLANK,
LIBRDF_NODE_TYPE_LAST = LIBRDF_NODE_TYPE_BLANK
} librdf_node_type;
</pre>
<p>
Type of a redland node.
</p>
<p>
Better to check this with functions <a class="link" href="redland-node.html#librdf-node-is-resource" title="librdf_node_is_resource ()"><code class="function">librdf_node_is_resource()</code></a>,
<a class="link" href="redland-node.html#librdf-node-is-literal" title="librdf_node_is_literal ()"><code class="function">librdf_node_is_literal()</code></a> or <a class="link" href="redland-node.html#librdf-node-is-blank" title="librdf_node_is_blank ()"><code class="function">librdf_node_is_blank()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="LIBRDF-NODE-TYPE-UNKNOWN:CAPS"></a><span class="term"><code class="literal">LIBRDF_NODE_TYPE_UNKNOWN</code></span></p></td>
<td>Internal
</td>
</tr>
<tr>
<td><p><a name="LIBRDF-NODE-TYPE-RESOURCE:CAPS"></a><span class="term"><code class="literal">LIBRDF_NODE_TYPE_RESOURCE</code></span></p></td>
<td>rdf:Resource (& rdf:Property) - has a URI
</td>
</tr>
<tr>
<td><p><a name="LIBRDF-NODE-TYPE-LITERAL:CAPS"></a><span class="term"><code class="literal">LIBRDF_NODE_TYPE_LITERAL</code></span></p></td>
<td>rdf:Literal - has an XML string, language,
XML space
</td>
</tr>
<tr>
<td><p><a name="LIBRDF-NODE-TYPE-BLANK:CAPS"></a><span class="term"><code class="literal">LIBRDF_NODE_TYPE_BLANK</code></span></p></td>
<td>blank node has an identifier string.
</td>
</tr>
<tr>
<td><p><a name="LIBRDF-NODE-TYPE-LAST:CAPS"></a><span class="term"><code class="literal">LIBRDF_NODE_TYPE_LAST</code></span></p></td>
<td>Internal
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-node-write"></a><h3>librdf_node_write ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> librdf_node_write (<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>);</pre>
<p>
Write the node to an iostream in N-Triples format.
</p>
<p>
This method can be used to write a node in a relatively
readable format. To write more compact formats use a
serializer to pick a syntax and serialize triples to it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the node</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iostr</code></em> :</span></p></td>
<td>iostream to write 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>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|