NatLibFi / Skosify

Validate, convert and improve SKOS vocabularies
http://skosify.readthedocs.io/
MIT License
55 stars 8 forks source link

Fix RDFlib 5 compatibility issue #71

Closed danmichaelo closed 4 years ago

danmichaelo commented 4 years ago

Small fix for

TypeError: startswith first arg must be str or a tuple of str, not ClosedNamespace

which started appearing after upgrading to RDFLib 5. Or more specifically, after SKOS was changed to a ClosedNamespace here: https://github.com/RDFLib/rdflib/commit/384c60367e945c2ac4e6f56eab394b43bed4c6c9

osma commented 4 years ago

Thanks! Despite the Travis test failures, this seems to fix the problem on Python 2.7, 3.6 and 3.7.

Tests for Python versions 3.4 and 3.5 are broken at the moment. I believe this is because pytest no longer supports them properly. I will drop support for those version after merging this PR. (Python 2.7 is of course ancient, but as long as the tests run I will keep it, at least for now)