• Stars
    star
    362
  • Rank 117,671 (Top 3 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a tokio-enabled data store for triple data

terminusdb-store, a tokio-enabled data store for triple data

Build Status Crate Documentation codecov

Overview

This library implements a way to store triple data - data that consists of a subject, predicate and an object, where object can either be some value, or a node (a string that can appear both in subject and object position).

An example of triple data is:

cow says value(moo).
duck says value(quack).
cow likes node(duck).
duck hates node(cow).

In cow says value(moo), cow is the subject, says is the predicate, and value(moo) is the object.

In cow likes node(duck), cow is the subject, likes is the predicate, and node(duck) is the object.

terminusdb-store allows you to store a lot of such facts, and search through them efficiently.

This library is intended as a common base for anyone who wishes to build a database containing triple data. It makes very few assumptions on what valid data is, only focusing on the actual storage aspect.

This library is tokio-enabled. Any i/o and locking happens through futures, and as a result, many of the functions in this library return futures. These futures are intended to run on a tokio runtime, and many of them will fail outside of one. If you do not wish to use tokio, there's a small sync wrapper in store::sync which embeds its own tokio runtime, exposing a purely synchronous API.

Usage

Add this to your Cargo.toml:

[dependencies]
terminus-store = "0.19.2"

create a directory where you want the store to be, then open that store with

let store = terminus_store::open_directory_store("/path/to/store").await.unwrap();

Or use the sync wrapper:

let store = terminus_store::open_sync_directory_store("/path/to/store").unwrap();

For more information, visit the documentation on docs.rs.

See also the examples/ directory for some basic examples.

Upgrading from 0.19 or earlier

Starting with version 0.20.0, terminus-store uses a new storage format, which bundles all files into a single archive, and also supports value types. Stores created using 0.19 or earlier will not work with 0.20 or later. However, there is a conversion tool to convert existing pre-v20 stores: terminusdb-10-to-11.

Roadmap

We are constantly developing terminusdb-store to make it a high quality succinct graph representation versioned datastorage layer. To help facilitate understanding of our aims for this project we have laid out a Roadmap. If you would like to assist in the development of terminusdb-store, or you think something should be added to the roadmap please contact us.

License

terminus-store is licensed under Apache 2.0.

Contributing

See CONTRIBUTING.md

See also

  • The Terminus database, for which this library was written: Website - GitHub
  • Our prolog bindings for this library: terminus_store_prolog
  • The HDT format, which the terminusdb-store layer format is based on: Website

More Repositories

1

terminusdb

TerminusDB is a distributed database with a collaboration model
Prolog
2,724
star
2

terminusdb-client-python

TerminusDB Python Client
Python
70
star
3

terminusdb-bootstrap

TerminusDB Bootstrap
Shell
66
star
4

terminusdb-tutorials

Tutorials for using TerminusDB
Python
57
star
5

technical-blogs

Technical blogs around data collaboration, data management, and building collaborative applications.
42
star
6

terminusdb-client-js

TerminusDB JavaScript Client
JavaScript
35
star
7

terminus_store_prolog

Prolog binding for terminusdb-store
Prolog
20
star
8

terminus-dashboard

Management Dashboard for Terminus DB
JavaScript
16
star
9

tus

TUS protocol for resumable file uploads via HTTP
Prolog
13
star
10

terminus-schema

Terminus DB Schemas - Formal descriptions and documentation of all the internal data structures used by Terminus DB
9
star
11

terminusdb-documents-ui

SDK to build UI for terminusdb documents
JavaScript
7
star
12

terminusdb-dashboard

Dashboard for TerminusDB
JavaScript
6
star
13

terminusdb-console

Management Dashboard for Terminus DB
JavaScript
6
star
14

terminusdb-docs

TerminusDB Documentation
JavaScript
6
star
15

terminuscms

TerminusCMS Discussion & Issues
5
star
16

diffpatchjson

API to Efficiently Diff and Patch JSON
4
star
17

terminusdb-react-graph

JavaScript
3
star
18

terminusdb-knowledge

Terminus DB knowledge Base
TeX
3
star
19

terminusdb-events

For community meetups
JavaScript
2
star
20

terminusdb-singer-target

A Singer.io target that inject data into TerminusDB
Python
2
star
21

research_topics

Running list of research topics
2
star
22

terminusdb-client-python-wiki

Wiki for the TerminusDB Python Client
Shell
1
star
23

terminusdb-access-control

JavaScript
1
star
24

terminusdb-react-chart

terminus-react-chart
JavaScript
1
star
25

openapi-specs

OpenAPI specifications for TerminusDB
1
star
26

terminusdb-react-components

JavaScript
1
star
27

terminusdb-singer-tap

This is a Singer tap that produces JSON-formatted data following the Singer spec from data in TerminusDB
Python
1
star
28

terminusdb-change-request-api

JavaScript
1
star