I am attempting to read the _public and _publicNames (encrypted) containers as RDF.
Consider the following example:
const cont = await app.auth.getContainer('_publicNames');
const rdf = cont.emulateAs('RDF');
await rdf.nowOrWhenFetched();
// console.info(await rdf.serialise('application/ld+json'));
The above works for _public, but for _publicNames it gives:
1023: No ID has been found in the RDF graph.
at module.exports (node_modules\@maidsafe\safe-node-app\src\native\_error.js:32:10)
at RDF.nowOrWhenFetched (node_modules\@maidsafe\safe-node-app\src\api\emulations\rdf.js:100:13)
at <anonymous>
The error is thrown by nowOrWhenFetched.
I guess this is because the _publicNames container is encrypted.