You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicate resource in JSON-LD frame output with embed=LAST #332
{
"@context" : {
"@vocab" : "http://www.example.net/"
},
"@graph" : [ {
"@id" : "#doc",
"@type" : "Document",
"content" : {
"@list" : [ {
"@id" : "#question",
"@type" : "Question", //This attr should not be here, it is printed later
"label" : "Why am I here twice?" //This attr should not be here, it is printed later
}, {
"@id" : "#block",
"predicate" : {
"@id" : "#question",
"@type" : "Question",
"label" : "Why am I here twice?"
}
} ]
}
} ]
}
I will make PR with failing test case soon and link it here
By the way, there is a test case output
/jsonld-java/src/test/resources/custom/frame-0009-out.jsonld
which also contains duplicate resource. Is it bug or feature?
I understood the embed=last as there is only one occurrence of the resource with all attributes and it is the last occurrence. All other occurrences are just reference over @id to that last occurrence. Am I wrong?
I just found that JSON-LD 1.1 implementation done by this project https://github.com/filip26/titanium-json-ld
works well for this test case. So I am moving to that new project.
So I do not need to have this issue solved in this project.
Activity
pvojtechovsky commentedon Aug 2, 2022
By the way, there is a test case output
/jsonld-java/src/test/resources/custom/frame-0009-out.jsonld
which also contains duplicate resource. Is it bug or feature?
I understood the embed=last as there is only one occurrence of the resource with all attributes and it is the last occurrence. All other occurrences are just reference over @id to that last occurrence. Am I wrong?
pvojtechovsky commentedon Aug 2, 2022
I just found that JSON-LD 1.1 implementation done by this project
https://github.com/filip26/titanium-json-ld
works well for this test case. So I am moving to that new project.
So I do not need to have this issue solved in this project.