Add YAML-LD test suite & decide about YAML-LD implementation in pyld#299
Open
anatoly-scherbakov wants to merge 11 commits into
Open
Add YAML-LD test suite & decide about YAML-LD implementation in pyld#299anatoly-scherbakov wants to merge 11 commits into
pyld#299anatoly-scherbakov wants to merge 11 commits into
Conversation
pyld
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 ofpyld.It has to implement its own API functions such as
expand()which call Respectivepyldfunctions 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:
and make it so that
expand()and other functions inpyldsupport 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: