Package RDFClosure :: Package serializers
[hide private]
[frames] | no frames]

Package serializers

source code

Serializer module with a slightly improved versions of the Turtle and Pretty XML serializers.

Both are, actually, almost verbatim copy of the RDFLib Turtle and pretty XML serializer module, respectively. For more detailed on how serializers work and are registered by RDFLib, please refer to the RDFLib descriptions and source code.

The differences, v.a.v. the original, for the Pretty XML serializer:

The differences, v.a.v. the original, for the Turtle serializer:

Obviously, these serializers can be used directly, too. Here is a way to do it (for the turtle one):

 from rdflib.plugin import register
 from rdflib.syntax import serializer, serializers
 register("my-turtle",serializers.Serializer,"RDFClosure.serializers.TurtleSerializer","TurtleSerializer")
 ...
 graph.serialize(format="my-turtle")

Requires: RDFLib, 2.2.2. and higher

License: This software is available for use under the W3C Software License

Organization: World Wide Web Consortium

Author: Ivan Herman

Contact: Ivan Herman, ivan@w3.org

Submodules [hide private]

Variables [hide private]
  __author__ = 'Ivan Herman'
  __license__ = u'W3C® SOFTWARE NOTICE AND LICENSE, http://www.w...
  __package__ = None
Variables Details [hide private]

__license__

Value:
u'W3C® SOFTWARE NOTICE AND LICENSE, http://www.w3.org/Consortium/Legal\
/2002/copyright-software-20021231'