def set(self, triple):
        (subject, predicate, object_) = triple
        assert subject is not None, \
            "s can't be None in .set([s,p,o]), as it would remove (*, p, *)"
        assert predicate is not None, \
            "p can't be None in .set([s,p,o]), as it would remove (s, *, *)"
        self.remove((subject, predicate, None))
        self.add((subject, predicate, object_))
Convenience method to update the value of object
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.set