Skip to content

Add YAML-LD test suite & decide about YAML-LD implementation in pyld#299

Open
anatoly-scherbakov wants to merge 11 commits into
masterfrom
yaml-ld-tests
Open

Add YAML-LD test suite & decide about YAML-LD implementation in pyld#299
anatoly-scherbakov wants to merge 11 commits into
masterfrom
yaml-ld-tests

Conversation

@anatoly-scherbakov

@anatoly-scherbakov anatoly-scherbakov commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Why

YAML-LD is an emerging specification being developed by the JSON-LD Working Group. Normatively, it is quite stable already even though it is an Editor's Draft at the time of writing this.

I had already started a Python implementation for it at https://python-yaml-ld.iolanta.tech (iolanta-tech/python-yaml-ld), pip install yaml-ld. It is basically a wrapper on top of pyld.

It has to implement its own API functions such as expand() which call Respective pyld functions adding YAML support via custom Document Loaders.

I wonder if we should instead implement this as a feature of PyLD itself, guarded by an optional dependency:

pip install pyld[yaml-ld]

and make it so that expand() and other functions in pyld support YAML-LD. What do you guys think?

See also the undecided ADR in this PR: docs/project/decisions/choose-where-to-host-yaml-ld-support.md.

As a follow up, we could think of implementing similar formats, such as:

  • CBOR-LD, which is being developed by the WG as well;
  • Markdown-LD, which is a colloquial name for Markdown documents with YAML-LD in their frontmatters;
  • maybe TOML-LD and many more formats from JSON-LD ecosystem.

@anatoly-scherbakov anatoly-scherbakov changed the title Add YAML-LD test suite and packaging ADR Add YAML-LD test suite & decide about YAML-LD implementation in pyld Jul 19, 2026
@github-actions

Copy link
Copy Markdown

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.

1 participant