Skip to content

pySHACL RDFLib 7.3+ Compatibility: Deprecation of default_context and Dataset.identifier #316

@torsknod2

Description

@torsknod2

Summary

pySHACL currently triggers deprecation warnings with modern RDFLib versions because internal code still uses Dataset APIs that RDFLib deprecated in 7.3.0.

Root Cause

RDFLib/rdflib#3264 deprecated the following things:

  • Dataset.contexts
  • Dataset.default_context
  • Dataset.identifier

This was first included in https://github.com/RDFLib/rdflib/releases/tag/7.3.0 according to https://rdflib.readthedocs.io/en/latest/changelog.

Change Request

  • Change rdflib dependency in pyproject.toml to at least 7.3.0
  • Dataset.contexts -> Dataset.graphs
  • Dataset.default_context -> Dataset.default_graph

Open points:

  • Dataset.identifier (deprecated)

I did not check what all gets actually used, but only had myself some warnings in a "private" project.

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