json-ld.net icon indicating copy to clipboard operation
json-ld.net copied to clipboard

@embed not supported?

Open MadsHolten opened this issue 1 year ago • 2 comments

@embed doesn't seem to be supported? I have created an example of the expected behavior in JSON-LD playground.

Expected output:

{
  "@context": {
    "ex": "https://ex#"
  },
  "@id": "https://a",
  "ex:createdBy": {
    "@id": "https://b",
    "ex:name": "Mads"
  },
  "ex:modifiedBy": {
    "@id": "https://b",
    "ex:name": "Mads"
  }
}

Actual output (name only embedded once):

{
  "@context": {
    "ex": "https://ex#"
  },
  "@id": "https://a",
  "ex:createdBy": {
    "@id": "https://b",
    "ex:name": "Mads"
  },
  "ex:modifiedBy": {
    "@id": "https://b"
  }
}

MadsHolten avatar Aug 26 '22 11:08 MadsHolten