【发布时间】:2019-07-03 21:17:34
【问题描述】:
我有以下格式的 JSONLD 数据(大约 5 GiB):
[{
"@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"
}
]
}
]
而我想要的是:
[{
"@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"
}
]
}
]
}
]
这些不同的序列化形式是如何命名的?在第二个示例中,如何将第一个(平面)JSONLD 转换为分层 JSONLD?有人可以推荐一个 Java 库或类似的东西吗?
这是为你的帮助,伙计们!
【问题讨论】: