Skip to content

json-ld DeprecationWarning when using with rdflib 6.2 #86

Description

@stain

When using rdflib 6.2 I get a DeprecationWarning from shexeval because rdflib-jsonld is deprecated.

(validate) stain@xena11:~/src/runcrate$ shexeval 
/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(
usage: shexeval [-h] [-f FORMAT] [-s START] [-ut] [-sp STARTPREDICATE] [-fn FOCUS] [-A] [-d] [-ss] [-ssg] [-cf] [-sq SPARQL] [-se] [--stopafter STOPAFTER] [-ps] [-pr] [-gn GRAPHNAME]
                [-pb] [--useragent USERAGENT]
                rdf shex
shexeval: error: the following arguments are required: rdf, shex

This is caused by pyshexc/rdflib/contextcache.py so I have raised shexSpec/grammar-python-antlr#13 -- I don't see a way to ignore the warnings using warnings.filterwarning because rdflib rudely forces a new warnings context..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions