summaryrefslogtreecommitdiff
path: root/docs/plugin_serializers.rst
blob: 0aedd566f3b330b970be0f0d6de0410179eae632 (plain)
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
.. _plugin_serializers: Plugin serializers

==================
Plugin serializers
==================

These serializers are available in default RDFLib, you can use them by 
passing the name to a graph's :meth:`~rdflib.graph.Graph.serialize` method::

	print graph.serialize(format='n3')

It is also possible to pass a mime-type for the ``format`` parameter::
    
  graph.serialize(my_url, format='application/rdf+xml')

========== ===============================================================
Name       Class                                                          
========== ===============================================================
n3         :class:`~rdflib.plugins.serializers.n3.N3Serializer`
nquads     :class:`~rdflib.plugins.serializers.nquads.NQuadsSerializer`
nt         :class:`~rdflib.plugins.serializers.nt.NTSerializer`
pretty-xml :class:`~rdflib.plugins.serializers.rdfxml.PrettyXMLSerializer`
trig       :class:`~rdflib.plugins.serializers.trig.TrigSerializer`
trix       :class:`~rdflib.plugins.serializers.trix.TriXSerializer`
turtle     :class:`~rdflib.plugins.serializers.turtle.TurtleSerializer`
xml        :class:`~rdflib.plugins.serializers.rdfxml.XMLSerializer`
========== ===============================================================