rdflib 4 with fallback to 2