/usr/share/gtk-doc/html/raptor/raptor-section-serializer.html is in libraptor1-doc 1.4.21-10.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Serializer</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Raptor RDF Syntax Parsing and Serializing Library Manual">
<link rel="up" href="reference-manual.html" title="Part II. Raptor Reference Manual">
<link rel="prev" href="raptor-section-sequence.html" title="Sequence">
<link rel="next" href="raptor-section-stringbuffer.html" title="String buffer">
<meta name="generator" content="GTK-Doc V1.13 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="introduction.html" title="Raptor Overview">
<link rel="part" href="tutorial.html" title="Part I. Raptor Tutorial">
<link rel="chapter" href="tutorial-initialising-finishing.html" title="Initialising and Finishing using the Library">
<link rel="chapter" href="tutorial-querying-functionality.html" title="Listing built-in functionality">
<link rel="chapter" href="tutorial-parsing.html" title="Parsing syntaxes to RDF Triples">
<link rel="chapter" href="tutorial-serializing.html" title="Serializing RDF triples to a syntax">
<link rel="part" href="reference-manual.html" title="Part II. Raptor Reference Manual">
<link rel="chapter" href="raptor-parsers.html" title="Parsers in Raptor (syntax to triples)">
<link rel="chapter" href="raptor-serializers.html" title="Serializers in Raptor (triples to syntax)">
<link rel="index" href="ix01.html" title="Index">
</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="raptor-section-sequence.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">Raptor RDF Syntax Parsing and Serializing Library Manual</th>
<td><a accesskey="n" href="raptor-section-stringbuffer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#raptor-section-serializer.synopsis" class="shortcut">Top</a>
|
<a href="#raptor-section-serializer.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="Serializer">
<a name="raptor-section-serializer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="raptor-section-serializer.top_of_page"></a>Serializer</span></h2>
<p>Serializer — RDF serializers - from RDF triples to a syntax</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="raptor-section-serializer.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">typedef <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer">raptor_serializer</a>;
<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a>* <a class="link" href="raptor-section-serializer.html#raptor-new-serializer" title="raptor_new_serializer ()">raptor_new_serializer</a> (const <span class="returnvalue">char</span> *name);
<span class="returnvalue">void</span> <a class="link" href="raptor-section-serializer.html#raptor-free-serializer" title="raptor_free_serializer ()">raptor_free_serializer</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-start" title="raptor_serialize_start ()">raptor_serialize_start</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
<a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="returnvalue">raptor_iostream</span></a> *iostream);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-start-to-iostream" title="raptor_serialize_start_to_iostream ()">raptor_serialize_start_to_iostream</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
<a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="returnvalue">raptor_iostream</span></a> *iostream);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-start-to-filename" title="raptor_serialize_start_to_filename ()">raptor_serialize_start_to_filename</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
const <span class="returnvalue">char</span> *filename);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-start-to-string" title="raptor_serialize_start_to_string ()">raptor_serialize_start_to_string</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
<span class="returnvalue">void</span> **string_p,
<span class="returnvalue">size_t</span> *length_p);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-start-to-file-handle" title="raptor_serialize_start_to_file_handle ()">raptor_serialize_start_to_file_handle</a>
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
<span class="returnvalue">FILE</span> *fh);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-set-namespace" title="raptor_serialize_set_namespace ()">raptor_serialize_set_namespace</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
unsigned <span class="returnvalue">char</span> *prefix);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-set-namespace-from-namespace" title="raptor_serialize_set_namespace_from_namespace ()">raptor_serialize_set_namespace_from_namespace</a>
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-xml-namespace.html#raptor-namespace" title="raptor_namespace"><span class="returnvalue">raptor_namespace</span></a> *nspace);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-statement" title="raptor_serialize_statement ()">raptor_serialize_statement</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
const <a class="link" href="raptor-section-triples.html#raptor-statement" title="raptor_statement"><span class="returnvalue">raptor_statement</span></a> *statement);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serialize-end" title="raptor_serialize_end ()">raptor_serialize_end</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer);
<a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="returnvalue">raptor_iostream</span></a>* <a class="link" href="raptor-section-serializer.html#raptor-serializer-get-iostream" title="raptor_serializer_get_iostream ()">raptor_serializer_get_iostream</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer);
<span class="returnvalue">void</span> <a class="link" href="raptor-section-serializer.html#raptor-serializer-set-error-handler" title="raptor_serializer_set_error_handler ()">raptor_serializer_set_error_handler</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<span class="returnvalue">void</span> *user_data,
<a class="link" href="raptor-section-general.html#raptor-message-handler" title="raptor_message_handler ()"><span class="returnvalue">raptor_message_handler</span></a> handler);
<span class="returnvalue">void</span> <a class="link" href="raptor-section-serializer.html#raptor-serializer-set-warning-handler" title="raptor_serializer_set_warning_handler ()">raptor_serializer_set_warning_handler</a>
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<span class="returnvalue">void</span> *user_data,
<a class="link" href="raptor-section-general.html#raptor-message-handler" title="raptor_message_handler ()"><span class="returnvalue">raptor_message_handler</span></a> handler);
<a class="link" href="raptor-section-locator.html#raptor-locator" title="raptor_locator"><span class="returnvalue">raptor_locator</span></a>* <a class="link" href="raptor-section-serializer.html#raptor-serializer-get-locator" title="raptor_serializer_get_locator ()">raptor_serializer_get_locator</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serializer-features-enumerate" title="raptor_serializer_features_enumerate ()">raptor_serializer_features_enumerate</a>
(const <a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature,
const <span class="returnvalue">char</span> **name,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> **uri,
const <span class="returnvalue">char</span> **label);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serializer-set-feature" title="raptor_serializer_set_feature ()">raptor_serializer_set_feature</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature,
<span class="returnvalue">int</span> value);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serializer-set-feature-string" title="raptor_serializer_set_feature_string ()">raptor_serializer_set_feature_string</a>
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature,
unsigned <span class="returnvalue">char</span> *value);
<span class="returnvalue">int</span> <a class="link" href="raptor-section-serializer.html#raptor-serializer-get-feature" title="raptor_serializer_get_feature ()">raptor_serializer_get_feature</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature);
const unsigned <span class="returnvalue">char</span> * <a class="link" href="raptor-section-serializer.html#raptor-serializer-get-feature-string" title="raptor_serializer_get_feature_string ()">raptor_serializer_get_feature_string</a>
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature);
<a class="link" href="raptor-section-world.html#raptor-world" title="raptor_world"><span class="returnvalue">raptor_world</span></a>* <a class="link" href="raptor-section-serializer.html#raptor-serializer-get-world" title="raptor_serializer_get_world ()">raptor_serializer_get_world</a> (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="raptor-section-serializer.description"></a><h2>Description</h2>
<p>
The serializing class that allows creating a serializer for
writing a particular syntax to an output string, file, file
handle or user function (via <a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="type">raptor_iostream</span></a>).
</p>
<p>
There are also methods to deal with handling errors, warnings and
returned triples as well as setting options (features)
that can adjust how serializing is performed.
</p>
</div>
<div class="refsect1" title="Details">
<a name="raptor-section-serializer.details"></a><h2>Details</h2>
<div class="refsect2" title="raptor_serializer">
<a name="raptor-serializer"></a><h3>raptor_serializer</h3>
<pre class="programlisting">raptor_serializer* raptor_serializer;
</pre>
<p>
Raptor Serializer class</p>
</div>
<hr>
<div class="refsect2" title="raptor_new_serializer ()">
<a name="raptor-new-serializer"></a><h3>raptor_new_serializer ()</h3>
<pre class="programlisting"><a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a>* raptor_new_serializer (const <span class="returnvalue">char</span> *name);</pre>
<p>
Constructor - create a new raptor_serializer object.
</p>
<p>
<a class="link" href="raptor-section-world.html#raptor-init" title="raptor_init ()"><code class="function">raptor_init()</code></a> MUST have been called before calling this function.
Use <code class="function">raptor_new_serializer_v2()</code> if using raptor_world APIs.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> the serializer name
</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="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a> object or NULL on failure
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_free_serializer ()">
<a name="raptor-free-serializer"></a><h3>raptor_free_serializer ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> raptor_free_serializer (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer);</pre>
<p>
Destructor - destroy a raptor_serializer object.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a> object
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serialize_start ()">
<a name="raptor-serialize-start"></a><h3>raptor_serialize_start ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_start (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
<a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="returnvalue">raptor_iostream</span></a> *iostream);</pre>
<p>
Start serialization with given base URI
</p>
<p>
The passed in <em class="parameter"><code>iostream</code></em> becomes owned by the serializer and will
be destroyed when the serializing is complete. Compare to
<a class="link" href="raptor-section-serializer.html#raptor-serialize-start-to-iostream" title="raptor_serialize_start_to_iostream ()"><code class="function">raptor_serialize_start_to_iostream()</code></a>. This function
will be deprecated for <a class="link" href="raptor-section-serializer.html#raptor-serialize-start-to-iostream" title="raptor_serialize_start_to_iostream ()"><code class="function">raptor_serialize_start_to_iostream()</code></a> in future.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> base URI or NULL if no base URI is required
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iostream</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="type">raptor_iostream</span></a> to write serialization 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" title="raptor_serialize_start_to_iostream ()">
<a name="raptor-serialize-start-to-iostream"></a><h3>raptor_serialize_start_to_iostream ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_start_to_iostream (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
<a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="returnvalue">raptor_iostream</span></a> *iostream);</pre>
<p>
Start serialization to an iostream with given base URI
</p>
<p>
The passed in <em class="parameter"><code>iostream</code></em> does not becomes owned by the serializer
and can be used by the caller after serializing is done. It
must be destroyed by the caller. Compare to
<a class="link" href="raptor-section-serializer.html#raptor-serialize-start" title="raptor_serialize_start ()"><code class="function">raptor_serialize_start()</code></a> which will be deprecated in future.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> base URI or NULL if no base URI is required
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iostream</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="type">raptor_iostream</span></a> to write serialization 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" title="raptor_serialize_start_to_filename ()">
<a name="raptor-serialize-start-to-filename"></a><h3>raptor_serialize_start_to_filename ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_start_to_filename (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
const <span class="returnvalue">char</span> *filename);</pre>
<p>
Start serializing to a filename.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td> filename to serialize 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" title="raptor_serialize_start_to_string ()">
<a name="raptor-serialize-start-to-string"></a><h3>raptor_serialize_start_to_string ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_start_to_string (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
<span class="returnvalue">void</span> **string_p,
<span class="returnvalue">size_t</span> *length_p);</pre>
<p>
Start serializing to a string.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> base URI or NULL if no base URI is required
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string_p</code></em> :</span></p></td>
<td> pointer to location to hold string
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length_p</code></em> :</span></p></td>
<td> pointer to location to hold length of string (or NULL)
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> non-0 on failure.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serialize_start_to_file_handle ()">
<a name="raptor-serialize-start-to-file-handle"></a><h3>raptor_serialize_start_to_file_handle ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_start_to_file_handle
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
<span class="returnvalue">FILE</span> *fh);</pre>
<p>
Start serializing to a FILE*.
</p>
<p>
NOTE: This does not fclose the handle when it is finished.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> base URI or NULL if no base URI is required
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td>
<td> FILE* to serialize 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" title="raptor_serialize_set_namespace ()">
<a name="raptor-serialize-set-namespace"></a><h3>raptor_serialize_set_namespace ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_set_namespace (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> *uri,
unsigned <span class="returnvalue">char</span> *prefix);</pre>
<p>
set a namespace uri/prefix mapping for serializing.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="type">raptor_uri</span></a> of namespace or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prefix</code></em> :</span></p></td>
<td> prefix to use or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> non-0 on failure.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serialize_set_namespace_from_namespace ()">
<a name="raptor-serialize-set-namespace-from-namespace"></a><h3>raptor_serialize_set_namespace_from_namespace ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_set_namespace_from_namespace
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
<a class="link" href="raptor-section-xml-namespace.html#raptor-namespace" title="raptor_namespace"><span class="returnvalue">raptor_namespace</span></a> *nspace);</pre>
<p>
Set a namespace uri/prefix mapping for serializing from an existing namespace.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>nspace</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-xml-namespace.html#raptor-namespace" title="raptor_namespace"><span class="type">raptor_namespace</span></a> to set
</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" title="raptor_serialize_statement ()">
<a name="raptor-serialize-statement"></a><h3>raptor_serialize_statement ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_statement (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer,
const <a class="link" href="raptor-section-triples.html#raptor-statement" title="raptor_statement"><span class="returnvalue">raptor_statement</span></a> *statement);</pre>
<p>
Serialize a statement.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>statement</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-triples.html#raptor-statement" title="raptor_statement"><span class="type">raptor_statement</span></a> to serialize to a syntax
</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" title="raptor_serialize_end ()">
<a name="raptor-serialize-end"></a><h3>raptor_serialize_end ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serialize_end (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer);</pre>
<p>
End a serialization.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> the <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> non-0 on failure.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_get_iostream ()">
<a name="raptor-serializer-get-iostream"></a><h3>raptor_serializer_get_iostream ()</h3>
<pre class="programlisting"><a class="link" href="raptor-section-iostream.html#raptor-iostream" title="raptor_iostream"><span class="returnvalue">raptor_iostream</span></a>* raptor_serializer_get_iostream (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer);</pre>
<p>
Get the current serializer iostream.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializer</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the serializer's current iostream or NULL if
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_set_error_handler ()">
<a name="raptor-serializer-set-error-handler"></a><h3>raptor_serializer_set_error_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> raptor_serializer_set_error_handler (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<span class="returnvalue">void</span> *user_data,
<a class="link" href="raptor-section-general.html#raptor-message-handler" title="raptor_message_handler ()"><span class="returnvalue">raptor_message_handler</span></a> handler);</pre>
<p>
Set the serializer error handling function.
</p>
<p>
The function will receive callbacks when the serializer fails.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializer</code></em> :</span></p></td>
<td> the serializer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td> user data to pass to function
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td> pointer to the function
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_set_warning_handler ()">
<a name="raptor-serializer-set-warning-handler"></a><h3>raptor_serializer_set_warning_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> raptor_serializer_set_warning_handler
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<span class="returnvalue">void</span> *user_data,
<a class="link" href="raptor-section-general.html#raptor-message-handler" title="raptor_message_handler ()"><span class="returnvalue">raptor_message_handler</span></a> handler);</pre>
<p>
Set the serializer warning handling function.
</p>
<p>
The function will receive callbacks when the serializer fails.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializer</code></em> :</span></p></td>
<td> the serializer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td> user data to pass to function
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td> pointer to the function
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_get_locator ()">
<a name="raptor-serializer-get-locator"></a><h3>raptor_serializer_get_locator ()</h3>
<pre class="programlisting"><a class="link" href="raptor-section-locator.html#raptor-locator" title="raptor_locator"><span class="returnvalue">raptor_locator</span></a>* raptor_serializer_get_locator (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer);</pre>
<p>
Get the serializer raptor locator object.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> raptor serializer
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> raptor locator
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_features_enumerate ()">
<a name="raptor-serializer-features-enumerate"></a><h3>raptor_serializer_features_enumerate ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serializer_features_enumerate
(const <a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature,
const <span class="returnvalue">char</span> **name,
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="returnvalue">raptor_uri</span></a> **uri,
const <span class="returnvalue">char</span> **label);</pre>
<p>
Get list of serializer features.
</p>
<p>
If uri is not NULL, a pointer toa new raptor_uri is returned
that must be freed by the caller with <a class="link" href="raptor-section-uri.html#raptor-free-uri" title="raptor_free_uri ()"><code class="function">raptor_free_uri()</code></a>.
</p>
<p>
<a class="link" href="raptor-section-world.html#raptor-init" title="raptor_init ()"><code class="function">raptor_init()</code></a> MUST have been called before calling this function.
Use <code class="function">raptor_serializer_features_enumerate_v2()</code> if using raptor_world APIs.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td> feature enumeration (0+)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> pointer to store feature short name (or NULL)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> pointer to store feature URI (or NULL)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td> pointer to feature label (or NULL)
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> 0 on success, <0 on failure, >0 if feature is unknown
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_set_feature ()">
<a name="raptor-serializer-set-feature"></a><h3>raptor_serializer_set_feature ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serializer_set_feature (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature,
<span class="returnvalue">int</span> value);</pre>
<p>
Set serializer features with integer values.
</p>
<p>
The allowed features are available via <a class="link" href="raptor-section-feature.html#raptor-features-enumerate" title="raptor_features_enumerate ()"><code class="function">raptor_features_enumerate()</code></a>.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializer</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a> serializer object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td> feature to set from enumerated <a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="type">raptor_feature</span></a> values
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> integer feature value (0 or larger)
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> non 0 on failure or if the feature is unknown
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_set_feature_string ()">
<a name="raptor-serializer-set-feature-string"></a><h3>raptor_serializer_set_feature_string ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serializer_set_feature_string
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature,
unsigned <span class="returnvalue">char</span> *value);</pre>
<p>
Set serializer features with string values.
</p>
<p>
The allowed features are available via <a class="link" href="raptor-section-serializer.html#raptor-serializer-features-enumerate" title="raptor_serializer_features_enumerate ()"><code class="function">raptor_serializer_features_enumerate()</code></a>.
If the feature type is integer, the value is interpreted as an integer.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializer</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a> serializer object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td> feature to set from enumerated <a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="type">raptor_feature</span></a> values
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> feature value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> non 0 on failure or if the feature is unknown
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_get_feature ()">
<a name="raptor-serializer-get-feature"></a><h3>raptor_serializer_get_feature ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> raptor_serializer_get_feature (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature);</pre>
<p>
Get various serializer features.
</p>
<p>
The allowed features are available via <a class="link" href="raptor-section-feature.html#raptor-features-enumerate" title="raptor_features_enumerate ()"><code class="function">raptor_features_enumerate()</code></a>.
</p>
<p>
Note: no feature value is negative</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializer</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a> serializer object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td> feature to get value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> feature value or < 0 for an illegal feature
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_get_feature_string ()">
<a name="raptor-serializer-get-feature-string"></a><h3>raptor_serializer_get_feature_string ()</h3>
<pre class="programlisting">const unsigned <span class="returnvalue">char</span> * raptor_serializer_get_feature_string
(<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *serializer,
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="returnvalue">raptor_feature</span></a> feature);</pre>
<p>
Get serializer features with string values.
</p>
<p>
The allowed features are available via <a class="link" href="raptor-section-feature.html#raptor-features-enumerate" title="raptor_features_enumerate ()"><code class="function">raptor_features_enumerate()</code></a>.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializer</code></em> :</span></p></td>
<td> <a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="type">raptor_serializer</span></a> serializer object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td> feature to get value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> feature value or NULL for an illegal feature or no value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="raptor_serializer_get_world ()">
<a name="raptor-serializer-get-world"></a><h3>raptor_serializer_get_world ()</h3>
<pre class="programlisting"><a class="link" href="raptor-section-world.html#raptor-world" title="raptor_world"><span class="returnvalue">raptor_world</span></a>* raptor_serializer_get_world (<a class="link" href="raptor-section-serializer.html#raptor-serializer" title="raptor_serializer"><span class="returnvalue">raptor_serializer</span></a> *rdf_serializer);</pre>
<p>
Get the <a class="link" href="raptor-section-world.html#raptor-world" title="raptor_world"><span class="type">raptor_world</span></a> object associated with a serializer.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rdf_serializer</code></em> :</span></p></td>
<td> raptor serializer
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> raptor_world* pointer
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.13</div>
</body>
</html>
|