I have the JSONLD data (about 5 GiB) in the following form:
[{
"@id": "_:node1derd3aqnx968310",
"http://www.example.org/uri-for/preferredName": [{
"@value": "Doe, John"
}
]
}, {
"@id": "http://www.example.org/myres012345",
"@type": ["http://www.example.org/uri-for/person"],
"https://schema.org/additionalName": [{
"@id": "_:node1derd3aqnx968310"
}
]
}
]
And what I want is:
[{
"@id": "http://www.example.org/myres012345",
"@type": ["http://www.example.org/uri-for/person"],
"https://schema.org/additionalName": [{
"http://www.example.org/uri-for/preferredName": [{
"@value": "Doe, John"
}
]
}
]
}
]
How's are these different serialization forms called? How can I convert the first (flat) JSONLD to the hierarchical JSONLD in the second example? Can someone recommend a Java library or something similar?
That's for your help, folks!