diff env/lib/python3.7/site-packages/rdflib/serializer.py @ 5:9b1c78e6ba9c draft default tip

"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author shellac
date Mon, 01 Jun 2020 08:59:25 -0400
parents 79f47841a781
children
line wrap: on
line diff
--- a/env/lib/python3.7/site-packages/rdflib/serializer.py	Thu May 14 16:47:39 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-"""
-Serializer plugin interface.
-
-This module is useful for those wanting to write a serializer that can
-plugin to rdflib. If you are wanting to invoke a serializer you likely
-want to do so through the Graph class serialize method.
-
-TODO: info for how to write a serializer that can plugin to rdflib.
-See also rdflib.plugin
-
-"""
-
-from rdflib.term import URIRef
-
-__all__ = ['Serializer']
-
-
-class Serializer(object):
-
-    def __init__(self, store):
-        self.store = store
-        self.encoding = "UTF-8"
-        self.base = None
-
-    def serialize(self, stream, base=None, encoding=None, **args):
-        """Abstract method"""
-
-    def relativize(self, uri):
-        base = self.base
-        if base is not None and uri.startswith(base):
-            uri = URIRef(uri.replace(base, "", 1))
-        return uri