Skip to content

Confusion regarding @default and @embed in JSON-LD 1.1? #58

Closed
@cboettig

Description

@cboettig

In this json-ld playground example I believe the 5 @ids for the char property used to be returned given the displayed frame under JSON-LD 1.0 spec, but are dropped under the current spec for reasons I don't entirely understand. I think this has to do with the changed behavior of omitGraph? I am not sure how to update my frame.

I believe the reason has to do with duck typing and the presence of the states property under char in my frame. In this data, I'm not able to declare a specific type for the char object, which can sometimes contain the states property. I need the frame to assert that if it has the states property, it should use "@embed": "@never" so I cannot simply omit that assertion; even though that would in this example allow the char ids to display. I'd greatly appreciate clarification on the possible change in behavior between the spec and the best/right way to address the issue in this example.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions