Fix for issue #93 jsonld context #135
Open
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.
Summary
dist/dprod.jsonldis now a proper JSON-LD context document (single top-level@context), not an ontology dump. Resolves issue #93.dist/dprod-ontology.jsonld(contains@graph).dprod-all.jsonld,*.ttl,*.rdf, shapes) remain unchanged.What changed
spec-generator/main.py):dist/dprod.jsonld.dist/dprod-ontology.jsonld.tests/test_context.py):dist/dprod.jsonldis a pure context (only@contextat the top level).dist/dprod-ontology.jsonldcontains@graph.DataProducttype anddataProductOwner).requirements.txt):rdflib>=7.1.4,<9pyld>=2,<3Rationale
dist/dprod.jsonldwas an ontology dump, which is not usable as a JSON-LD context and caused failures when consumed as such.How to consume
"@context": "https://ekgf.github.io/dprod/dprod.jsonld"@contextin the same document.Verification
.venv.