1
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
2
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
3
<chapter id="raptor-serializers">
4
<title>Serializers in Raptor (triples to syntax)</title>
6
<section id="raptor-serializers-intro">
7
<title>Introduction</title>
9
<para>This section describes the serializers that can be compiled into
10
Raptor and their features. The exact serializers supported may vary
11
by different builds of raptor and can be queried at run-time by use of the
12
<link linkend="raptor-serializers-enumerate"><function>raptor_serializers_enumerate</function></link>
15
<para>The optional features that may be set on parsers can also
16
be queried at run-time iwth the
17
<link linkend="raptor-serializer-features-enumerate"><function>raptor_serializer_features_enumerate</function></link>
23
<section id="serializer-atom">
24
<title>Atom 1.0 serializer (name <literal>atom</literal>)</title>
26
<para>A serializer to the Atom 1.0 syndication format defined in IETF
27
<ulink url="http://www.ietf.org/rfc/rfc4287.txt">RFC 4287</ulink>.
28
At present this only serializes the RDF triples that describe an RSS
29
1.0 channel into Atom.
35
<section id="serializer-ntriples">
36
<title>N-Triples serializer - default (name <literal>ntriples</literal>)</title>
38
<para>A serializer to the
39
<ulink url="http://www.w3.org/TR/rdf-testcases/#ntriples">N-Triples</ulink>
41
<ulink url="http://www.w3.org/2001/sw/RDFCore/">W3C RDF Core working group</ulink>
42
for the <ulink url="http://www.w3.org/TR/rdf-testcases/">RDF Test Cases</ulink>.
48
<section id="serializer-rdfxml">
49
<title>RDF/XML serializer (name <literal>rdfxml</literal>)</title>
51
<para>A serializer to the standard
52
<ulink url="http://www.w3.org/TR/rdf-syntax-grammar/">RDF/XML syntax</ulink>
54
<ulink url="http://www.w3.org/2001/sw/RDFCore/">W3C RDF Core working group</ulink>.
55
This writes a plain triple-based RDF/XML serialization with no
56
optimisation or pretty-printing.
62
<section id="serializer-rdfxml-abbrev">
63
<title>RDF/XML (Abbreviated) serializer (name <literal>rdfxml-abbrev</literal>)</title>
65
<para>An RDF/XML serializer using several of the RDF/XML
66
abbreviations to provide a more compact readable format, at the cost
67
of some pre-processing. This is suitable for small documents.
73
<section id="serializer-rdfxml-xmp">
74
<title>RDF/XML (XMP Profile) serializer (name <literal>rdfxml-xmp</literal>)</title>
75
<para>A serializer to the Adobe XMP profile of RDF/XML suitable for
76
embedding inside an external document. Embedding means that the
77
XML header is omitted, wheras for other XML serializings, it is
84
<section id="serializer-rss-1-0">
85
<title>RSS 1.0 serializer (name <literal>rss-1.0</literal>)</title>
86
<para>A serializer to the
87
<ulink url="http://purl.org/rss/1.0/spec">RDF Site Summary (RSS) 1.0</ulink>
88
format for describing a syndication feed of items. It only serializes
89
the RDF triples that describe the RSS channel found.
100
sgml-parent-document: ("raptor-docs.xml" "book" "part")