def __iadd__(self, other):
        """Adding means concatenating all the patterns and filters arrays"""

        self.patterns += other.patterns
        self.constraints += other.constraints

        for c in other.unbounds:
            if not c in self.unbounds:
                self.unbounds.append(c)

        for c in other.bnodes:
            if not c in self.bnodes:
                self.bnodes[c] = other.bnodes[c]

        return self
dataset/ETHPy150Open RDFLib/rdfextras/rdfextras/sparql/graph.py/GraphPattern.__iadd__/original