Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Add @embed when framing #64

@brechtvdv

Description

@brechtvdv

The JSON-LD framing algorithm only embeds triples of a subject the first time it is encountered.
Add @embed: true when framing so subjects are always shown in full.:

  const framed = await jsonld.frame(obj, frame);

Change to:

    const framed = await jsonld.frame(doc, frame, {embed:'@always'});

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