Skip to content
merely-madePublic

About

A graph-first knowledge workbench library: addressable content lives as nodes in a spatial graph.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Mere

Mere is a Rust library for working with linked data. It keeps a graph of resources such as pages, papers, and people. A connection in that graph can express a claim as simple as “this paper cites that paper.” Mere can keep who made the claim, where it came from, and whether it was later withdrawn.

Suppose a library catalog names Ada as the author of a paper, and a publisher credits both Ada and Grace. An application using Mere can keep both accounts, ask which sources credit Grace, and show the reader the evidence for each answer. It can read and write the graph in standard linked-data formats such as JSON-LD and Turtle. Engine API

Mere in the Turnstone browser

In Turnstone, open a page and choose Save source and keep in the Inspector. Turnstone decides which edition of the page to save. Graphshell supplies Cambium, the shared interface toolkit that draws the Inspector’s button and delivers the click. When the saved page contains structured claims, Mere can record them with a link to the exact edition and the block that supplied them.

If the publisher later changes the author list at the same address, the earlier capture can still tell you what the page said when you saved it. To try the graphical interface, start with Turnstone’s browser instructions. For the implementation, see the Turnstone save scenario, Graphshell toolkit, and Mere’s saved page claims.

Who named each author?

The terminal inspector can answer the question from the catalog example above. The sample graph records each author credit and the organization that made it. From the repository root, run the inspector with the included SPARQL query.

sample=crates/graph/engine/examples/fixtures
cargo run -p mere --features query --example inspect -- \
  "$sample/paper-authors.trig" --query "$(cat "$sample/paper-authors.rq")"

The inspector prints a summary of the graph, followed by these rows.

query (3 rows): author | namedBy
  Ada | Library catalog
  Ada | Publisher
  Grace | Publisher

Ada appears twice because two sources credit her. The query follows each credit to its recorded source, then looks up both names. To ask about your own paper, use its identifier in place of ex:paper and supply a graph with the same attribution and name fields. If a credit has no recorded source, this query returns no row for that credit.

Across devices

A reader can ask the same question while the graph stays on its owner’s device. With the mere command-line tool, the reader sends the owner a contact, and the owner runs mere serve with the graph, the query they want to share and that contact. The reader gets a private invitation and runs the following command.

mere query --invite paper.invite --query "$sample/paper-authors.rq"
[["Ada","Library catalog"],["Ada","Publisher"],["Grace","Publisher"]]

The owner evaluates the query. Only the rows come back, and the credits still refer to the catalog and publisher whichever device hosts the graph. Terminal readers use iroh, I2P or Reticulum; a browser reader opens a link in Turnstone’s query page. The tool is built on Graphshell’s host toolkit and lives there: mere-cli.

For live graph sharing, Turnstone has a Co-op view where the owner can invite a contact and grant access to a particular graph. In a test on two Linux desktops, Turnstone used Djinn, the local background service on each device, and a direct iroh connection. The guest edited the shared graph and the owner’s copy retained the guest’s attribution. Two-device sharing example

Development

The workspace manifest lists the engine packages and dependencies. The toolchain file selects Rust for the checkout. The repository records resolved dependency versions in Git notes. Use house resolved show <commit> to inspect a recorded resolution. For work across sibling checkouts, see the local Cargo configuration example. The commit hooks list the repository checks.

License

MPL-2.0

About

A graph-first knowledge workbench library: addressable content lives as nodes in a spatial graph.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages