# test for https://github.com/RDFLib/rdflib/issues/492 #!/usr/bin/env python3 import rdflib def test_issue492(): query = """ prefix owl: prefix rdf: select ?x where { ?x rdf:rest/rdf:first _:6. ?x rdf:rest/rdf:first _:5. } """ print(rdflib.__version__) g = rdflib.Graph() # raised a TypeError: unorderable types: SequencePath() < SequencePath() result = g.query(query)