Is g.serialize() supposed to produce a compacted jsonld document? If I have this graph [node_a]->knows->[blank_node], when I retrieve node_a with rdflib and then serialize with rdflib-jsonld, I obtain this document
{
"@context": [...],
"@graph": [
{
"name": "Alice"
"knows": { "id": "_:xxxxx" }
},
{
"id": "_:xxxxx"
}
]
}
whereas I would expect this
{
"@context": [...],
"name": "Alice"
"knows": "_:xxxxx"
}
Am I doing something wrong?
Is
g.serialize()supposed to produce a compacted jsonld document? If I have this graph[node_a]->knows->[blank_node], when I retrievenode_awith rdflib and then serialize with rdflib-jsonld, I obtain this documentwhereas I would expect this
Am I doing something wrong?