/usr/lib/python2.7/dist-packages/rdflib/compat.py is in python-rdflib 2.4.2-1ubuntu1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/python2.7/dist-packages/rdflib/../../../../share/pyshared/rdflib/compat.py