0.1.6 • Published 9 years ago
gun-levelgraph v0.1.6
gun-levelgraph
Interop layer between Gun and LevelGraph via levelgraph-jsonld
Status
Conversion to JsonLd format is super flexible and works!
The following default functions need to be fixed however:
- Tweak default
addContext,graphIdandreferenceNodefunctions:- add valid JsonLd
@contexton each node - add valid JsonLd
@idon each node - make sure valid references
- add valid JsonLd
Install
npm i -S gun-levelgraphUsage
See docs:
Gun utility functions
More Gun chain utility functions are available via:
- chain-gun - misc
- future-gun - Promise
- water-gun - Observable/CSP
Run Tests
npm i -g ava
Try ava test
TODO
- Test LevelGraph save functions
- Load JsonLd object into Gun graph for a full cycle
Save Gun node to LevelGraph
- Fix
addContextandgraphIdfunctions to:- add valid JsonLd
@contexton each node - add valid JsonLd
@idon each node
- add valid JsonLd
Licence
MIT Kristian Mandrup 2017