Documentation
¶
Overview ¶
Package main provides a tool to read and write NamedGraphRevisions from/to a bbolt database. The NamedGraphRevisions bucket (key: "ngr") contains versioned NamedGraphs where:
- key is the Hash key (32 bytes) of the corresponding standalone binary NG-SST file
- value is the binary NG-SST file content
Usage examples:
# List all NGRs: bboltngr repo.db list # Get, process, and put back a single NGR: bboltngr repo.db process <hash> # Export all to directory: bboltngr repo.db export ./backup/ # Import all from directory: bboltngr repo.db import ./backup/ # Process all NGRs in the database: bboltngr repo.db process-all
To add your own data handling, modify the processNGRData() function below.
Click to show internal directories.
Click to hide internal directories.