Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass through SSSOM JSON-LD context when writing JSON #479

Merged
merged 9 commits into from
Dec 11, 2023

Conversation

matentzn
Copy link
Collaborator

@matentzn matentzn commented Dec 11, 2023

Fixes #477

@cthoyt cthoyt changed the title Bring back the context description for JSON ld serialised files Pass through SSSOM JSON-LD context when writing JSON Dec 11, 2023
@cthoyt there was an issue here in that you overwrote the `@context` while we had to augment the existing one.
cc @cthoyt

The tests are "explicit", but not "comprehensive" (there is a lot of stuff that could be tested, but my guess is, if one thing works, everything works with 99% probablility)
src/sssom/writers.py Outdated Show resolved Hide resolved
src/sssom/writers.py Outdated Show resolved Hide resolved
avoid serializing and deserializing over and over
@matentzn matentzn marked this pull request as ready for review December 11, 2023 14:52
@matentzn matentzn requested a review from hrshdhgd December 11, 2023 14:54
@hrshdhgd hrshdhgd merged commit f425604 into master Dec 11, 2023
6 checks passed
@hrshdhgd hrshdhgd deleted the fix-jsonld-context branch December 11, 2023 15:40
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.

@context missing the type definitions in version 0.4.0
3 participants