Skip to content

Add JSONLD @context to the top level .ipynb node #44

Closed
@westurner

Description

@westurner

From #43 (comment) :

JSONLD is application/ld+json:

There is a @context mapping for nbformat JSONLD out there:

.

  • SCH: .ipynb JSONLD @context by @bollwyvl
    • Would it be okay to merge this upstream?
    • TST: Does this cover all of the ipynb nbformat v4 attributes?
    • TST: Tests (@context + .ipynb => jsonld => rdf) (PyLD, rdflib-jsonld)
  • Host an @context at a stable, versioned URI
    • https://<url>/ns/v4/nbformat.context.jsonld
      • There may be a lot of (cacheable) lookups
        • CDN (GitHub Pages (Fastly), CloudFlare)
    • @ jupyter, what would be the best way to handle this?
  • DOC,SCH: nbformat specification: heading, link(s)?
  • ENH,SCH: Add @context: to the top level .ipynb in Jupyter Notebook

Questions:

  • Would this be a breaking change?
    • Signatures would change; but otherwise,no, IIUC, adding @context to .ipynb would not be a breaking or even a major change, so waiting until nbformat v5 would not be necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions