Skip to content

Update docs to 4.0.0 changes - #323

Open
mielvds wants to merge 2 commits into
fix-toRdf-te111-te112from
docs-rdflib
Open

Update docs to 4.0.0 changes#323
mielvds wants to merge 2 commits into
fix-toRdf-te111-te112from
docs-rdflib

Conversation

@mielvds

@mielvds mielvds commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

This PR's add some updates to the docs specific to the switch to 4.0.0

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown

lower than 4. Prefer `rdflib.Dataset` for new in-memory RDF code.

```python
doc = jsonld.from_rdf(dataset)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe turn this into a runnable example, as a Python file under examples?

explicitly when an integration requires the older canonicalization output.

```python
canonical = jsonld.normalize(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Comment thread docs/reference/to_rdf.md
Set `legacyMode` to `True` to return the RDF.js-like dataset `dict` used by
PyLD versions lower than 4.

```python

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

`jsonld.to_rdf()` returns an `rdflib.Dataset` by default when `format` is not
set. In PyLD 3.x and earlier, it returned a RDF.js-like nested `dict`.

```python

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mre examples! Here and below, if you think that'd be a good thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants