def parse(self, source=None, publicID=None, format="xml",
              location=None, file=None, data=None, **args):

        source = create_input_source(
            source=source, publicID=publicID, location=location,
            file=file, data=data, format=format)

        g_id = publicID and publicID or source.getPublicId()
        if not isinstance(g_id, Node):
            g_id = URIRef(g_id)

        context = Graph(store=self.store, identifier=g_id)
        context.remove((None, None, None)) # hmm ?
        context.parse(source, publicID=publicID, format=format, **args)
        return context
Parse source adding the resulting triples to its own context
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/ConjunctiveGraph.parse