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

@embed not supported?

Open MadsHolten opened this issue 3 years 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

This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 21 '22 00:12 stale[bot]

It seems that you are correct. If you have suggestions for how to fix this, pull requests are welcome.

asbjornu avatar Dec 21 '22 11:12 asbjornu