When using rdflib 6.2 and pyshex 0.8.1, I get a DeprecationWarning from pyshexc because rdflib-jsonld is deprecated.
>>> import rdflib
>>> import pyshex
/home/stain/miniconda3/envs/validate/lib/python3.11/site-packages/rdflib_jsonld/__init__.py:9:
DeprecationWarning: The rdflib-jsonld package has been integrated into rdflib as of rdflib==6.0.0. Please remove rdflib-jsonld from your project's dependencies.
warnings.warn(
>>> rdflib.__version__
'6.2.0'
This is caused by pyshexc/rdflib/contextcache.py
from rdflib_jsonld import util
This means my command line tool that uses pyshex always outputs the warning, but I have no control over its import of rdflib_jsonld. This also affects PyShex' command line tool shexeval
There is no way to turn off the warnings with warnings.filterwarning, as rdflib_jsonld rudely overrides the warnings manager using warnings.catch_warnings.
When using rdflib 6.2 and pyshex 0.8.1, I get a
DeprecationWarningfrompyshexcbecauserdflib-jsonldis deprecated.This is caused by
pyshexc/rdflib/contextcache.pyThis means my command line tool that uses
pyshexalways outputs the warning, but I have no control over its import ofrdflib_jsonld. This also affects PyShex' command line toolshexevalThere is no way to turn off the warnings with
warnings.filterwarning, asrdflib_jsonldrudely overrides the warnings manager usingwarnings.catch_warnings.