How can I prune out my blank nodes and go from this:

"@graph": [
{"@id": "_:b18","height": "32768","width": "32768"},
{"@id": "_:b3","height": "16384","width": "16384"},
{"@id": "_:b4","height": "4096","width": "4096"},
{"@id": "http://www.ebremer.com/a","sizes": {"@list":
["_:b18","_:b3","_:b4"]}}
]

"@graph": [
{"@id": "http://www.ebremer.com/a";,
     "sizes": {"@list": [{"height": "32768","width": "32768"},{"height":
"16384","width": "16384"},{"height": "4096","width": "4096"}]}
}
]

I tried using
opts.setCompactArrays(true);
opts.setPruneBlankNodeIdentifiers(true);
with format as:
RDFFormat.JSONLD_COMPACT_PRETTY

but, it did not work.  - Erich

Reply via email to