def seq(self, subject):
        if (subject, RDF.type, RDF.Seq) in self:
            return Seq(self, subject)
        else:
            return None
Check if subject is an rdf:Seq
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.seq