json-ld.net
json-ld.net copied to clipboard
@embed not supported?
@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"
}
}
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.
It seems that you are correct. If you have suggestions for how to fix this, pull requests are welcome.