The latest version of rdflib is 5.0.0, which was released in April: https://github.com/RDFLib/rdflib/releases/tag/5.0.0 Please consider updating to the latest release. Please also note that while the package is included in anitya, monitoring is disabled in Fedora SCM so no automated bugs about new releases will be filed by the system.
According to: https://github.com/RDFLib/rdflib/blob/5.0.0/CHANGELOG.md the 5.0.0 release is "mostly" backwards-compatible with 4.2.2. Skimming over the changes I can spot a few things that could be API changes so I guess this should go to F34+ only.
https://src.fedoraproject.org/rpms/python-rdflib/pull-request/2
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34.