                return self.db.lookup_id(n3 + " ")

    def count(self, triple):
        s, p, o = triple
        vs = (s is None) or isinstance(s, rdflib.Variable)
        vp = (p is None) or isinstance(p, rdflib.Variable)