Conversation
|
Thx @daltontc for a pull request! I ask your assistance in understanding this. Basically you want to have to "not convert list" to Your desired outcome from the java test in a more readable form: [
{
"@id" : "_:b0",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#first" : [ { "@id" : "Arnold" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#rest" : [ { "@id" : "_:b1" } ]
},
{
"@id" : "_:b1",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#first" : [ { "@id" : "Bob" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#rest" : [ { "@id" : "_:b2" } ]
},
{
"@id" : "_:b2",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#first" : [ { "@id" : "Catherine" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#rest" : [ { "@id" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" } ]
}
]This seems to come close to the one already in our tests at https://github.com/jsonld-java/jsonld-java/blob/master/core/src/test/resources/json-ld.org/fromRdf-0010-out.jsonld which implements https://w3c.github.io/json-ld-api/tests/fromRdf-manifest.html section "Test t0010 List pattern without rdf:nil".(for embedded view see also https://json-ld.org/test-suite/reports/ "Test 0010: List pattern without rdf:nil"). As this There are some other tests related to your case, namely If you could point me to a jsonld spec which covers your implementation (I may well have overseen it) this would be very helpful. |
Created an option to write blank node lists as full objects in order to preserve blank node identifiers in the chain.