Common-SenseMakers / sensemakers

Sensemakers infrastructure for developing AI-based tools for semantic annotations of social posts. Cross-poster app to publish your semantic posts on different networks.
GNU General Public License v3.0
1 stars 2 forks source link

[APP] Build Nanopubs PlatformService #31

Open pepoospina opened 5 months ago

pepoospina commented 5 months ago

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.

pepoospina commented 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.

vemonet commented 5 months ago

@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

ShaRefOh commented 5 months ago

@pepoospina, should I go ahead and change our introduction?