nostralink
nostralink is a Rust crate that allows you to transform nostr events to linked data and save them to an RDF graph. It also offers APIs to write events as linked data (using JSON-LD) and make queries.
-
Provides a nostr-database adapter so that you can easily hook a nostr client to an events store. Checkout the client example.
-
Uses SparQL to make queries on the events graph.
JSON-LD contexts for various content types are provided, as well as SparQL queries for common operations.
Usage
use *;
use PathBuf;
async
Examples
Client
This example fetches recent notes to a store, and shows each incoming event in the ttl (Turtle) format.