Open pepoospina opened 5 months ago
On the first iteration, we could use the string-template approach to create the unsigned nanopublication and get it signed and published.
But at some point we should use the N3 library to create the unsigned nanopublication as an N3 store and to be able to generate the string (text document) out of the store.
@pepoospina if you want to easily build a nanopub in javascript without the need for an extra RDF dependency you could use the JSON-LD format, this way you just need to define a JSON object
You can find a complete example of a nanopub as JSON-LD in the playground: https://vemonet.github.io/nanopub-rs/playground.html
@pepoospina, should I go ahead and change our introduction?
Implement a Nanopub platform service that supports publishing a nanopublication using https://www.npmjs.com/package/@nanopub/sign
Use the frontend code as reference
app/webapp/src/nanopubs/construct.post.nanopub.ts
.Note that this was not possible before but it should be possible now. Check this issue on /@nanopub/sign.