def serialize(self, **kwargs) -> str:
        """ rdflib.Graph().serialize wrapper

        Original serialize cannot handle PosixPath from pathlib. You should ignore everything, but
        destination and format. format is a must, but if you don't include a destination, it will
        just return the formated graph as an str output.

        Args:
            destination: Output file path,
            format: format for for the triple to be put together as: 'xml', 'n3', 'turtle', 'nt',
                'pretty-xml', 'trix', 'trig' and 'nquads' are built in. json-ld in rdflib_jsonld
            base: none
            encoding: None
            **args: None
        """
        kwargs = {key: str(value) for key, value in kwargs.items()}
        return self.g.serialize(**kwargs)
def serialize ( self , ** kwargs ) -> str : kwargs = { key : str ( value ) for key , value in kwargs . items ( ) } return self . g . serialize ( ** kwargs )
rdflib.Graph().serialize wrapper

        Original serialize cannot handle PosixPath from pathlib. You should ignore everything, but
        destination and format. format is a must, but if you don't include a destination, it will
        just return the formated graph as an str output.

        Args:
            destination: Output file path,
            format: format for for the triple to be put together as: 'xml', 'n3', 'turtle', 'nt',
                'pretty-xml', 'trix', 'trig' and 'nquads' are built in. json-ld in rdflib_jsonld
            base: none
            encoding: None
            **args: None