Skip to content

Commit

Permalink
Merge pull request #87 from NatLibFi/issue86-rdflib-6-compat
Browse files Browse the repository at this point in the history
Fix compatibility with rdflib 6.0.0
  • Loading branch information
osma committed Aug 31, 2021
2 parents 6f9fb4c + 8ce9f83 commit 9e8b891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
url='https://github.com/NatLibFi/Skosify',
license='MIT',
install_requires=['rdflib'],
setup_requires=['rdflib>=3.0.0,<6.0.0', 'pytest-runner>=2.9'],
setup_requires=['rdflib>=4.2.2', 'pytest-runner>=2.9'],
tests_require=['pytest<6.0.0', 'pytest-pep8', 'pytest-cov', 'pytest-catchlog'],
packages=['skosify', 'skosify.rdftools'],
entry_points={'console_scripts': ['skosify=skosify.cli:main']}
Expand Down
4 changes: 2 additions & 2 deletions skosify/skosify.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def in_general_ns(uri):
"""Return True iff the URI is in a well-known general RDF namespace.
URI namespaces considered well-known are RDF, RDFS, OWL, SKOS and DC."""
RDFuri = RDF.uri
RDFSuri = RDFS.uri
RDFuri = str(RDF)
RDFSuri = str(RDFS)

for ns in (RDFuri, RDFSuri, OWL, SKOS, DC):
if uri.startswith(str(ns)):
Expand Down

0 comments on commit 9e8b891

Please sign in to comment.