Check if rdflib version > 2