TerminusDB
TerminusDB is an open-source model driven graph database that stores data like Git. It is designed for knowledge graph representation and is a native revision control database. TerminusDB's secondary database models are listed as document store and RDF store on DB-Engines[3]
Developer(s) | TerminusDB |
---|---|
Initial release | 2019 |
Stable release | 2.0.5
/ January 6, 2020[1] |
Written in | Rust, Prolog[2] |
Type | Graph database |
License |
|
Website | terminusdb |
TerminusDB is available under the GPLv3 license. The development team claim that it will be 'open source now and forever'[4].
TerminusDB is implemented in Prolog and Rust and accessible from software written in other languages using the Web Object Query Language[5] through a transactional HTTP endpoint. TerminusDB uses JSON-LD as a lightweight, language-independent data interchange format.
History
DataChemist
TerminusDB, previously known as DataChemist[6][7][8], was founded in Dublin, Ireland. It was launched by Irish Tánaiste Simon Coveney in August, 2018[9]. TerminusDB opened a reseach and development hub in Utrecht, Netherlands in 2019[10].
ALIGNED Project
Starting in Trinity College Dublin[11], the development team behind TerminusDB ran the Horizon 2020 project ALIGNED that worked from February 2015 to January 2018[12]. A book entitled Engineering Agile Big-Data Systems was published on completion of the ALIGNED project - it is available as an open-access e-book[13]
Seshat
Seshat is an international scientific research project of the nonprofit Evolution Institute which uses TerminusDB as data infrastructure[14]. Seshat has been working with the development team from the ALIGNED project onward[15]. This work has been reported in several major newspapers[16][17]. TerminusDB is also the database behind the associated Institute for Economics and Peace and Oxford University historical peace index project[18].
The results of some aspects of this research, focused on the relationship between complex societies and moralizing gods, appeared in Nature[19], the prestigious scientific journal. Kevin Feeney, one of the founders of TerminusDB, is an author of the paper and sits on the Board of directors of Seshat[20].
Open Source
Version 1.0 was released in October 2019[21]. TerminusDB is released under the GPLv3 licence and the client libraries are released with the Apache 2 licence. TerminusDB 1.1, with the newly integrated terminus-store, was released in January, 2020[22]. Version 2.0 of the database was released in June 2020[23].
Name
TerminusDB is named after the Roman God of Boundaries, Terminus. It is also named after the home planet of the Foundation in the series of science-fiction novel by Issac Asimov[24]. TerminusDB uses a CowDuck logo - the motif finds its origins in the examples used by core engineer Matthijs van Otterdijk when first demonstrating the append only immutable data store[25]
Main Features
TerminusDB is a full featured in-memory graph database management system with a rich query language. The design of the underlying data structure, which is implemented in a Rust library, uses a succinct data structures and delta encoding approach drawing inspiration from software source control systems like Git[26]. This allows all of the Git semantics to be used in TerminusDB.
The TerminusDB infrastructure is based on the RDF standard. This standard specifies finite labelled directed graphs which are parameteric in some universe of datatypes. The names for nodes and labels are drawn from a set of IRIs (Internationalized Resource Identifiers). TerminusDB uses the XSD datatypes as its universe of concrete values. For schema design, TerminusDB uses the OWL language with two modifications to make it suitable as a schema language; it dispenses with the open world interpretation and insist on the unique name assumption[27]. This provides a rich modelling language which can allows constraints on the allowable shapes in the graph. TerminusDB supports a subset of OWL that provides for the following schematic control features:
- Classes and sub-classes for modelling taxonomies and inheritance hierarchies, with special classes for modelling complex relationships and entities
- Typed properties for modelling the attributes of things
- Datatypes for modelling the different types of data
- Scopings for modelling things that change with time, space and confidence
- Constraints for applying logic and rules to things[28]
TerminusDB has a promise based client for the browser and node.js it is available through the npm registry, or can be directly included in web-sites[29]. It also has a Python client for the TerminusDB RESTful API and the pythonic version of the web object query language, WOQLpy[30].
Query Language
WOQL (web object query language) is a datalog. It allows TerminusDB to treat the database as a document store or a graph interchangeably, and provides query features to make relationship traversals easy. WOQL's primary syntax and interchange format is in JSON-LD. This gives us a relatively straightforward human-readable format which can also be easily stored in TerminusDB itself.
Example
This demonstrates a simple query which allows retrieval of all documents in the database, along with their labels and types[31].
{"@context" : {"@import": "https://terminusdb/contexts/woql/syntax/context.jsonld",
"@propagate": true,
"db" : "http://localhost:6363/testDB004/"},
"from" : [ "db:main",
{"select" : [ "v:Object", "v:Class", "v:Class_Label", "v:Label", "v:Type",
{"and" : [{"triple" : ["v:Object", "rdf:type", "v:Class"] },
{"sub" : ["v:Class", "dcog:Entity"] },
{"eq" : ["v:Type", {"@value" :"Entity", "@type" : "xsd:string"}]},
{"quad" : ["v:Class", "rdfs:label", "v:Class_Label", "db:schema"]},
{"opt" : [{"triple" : ["v:Object", "rdfs:label", "v:Label"]}]}
]}
]}
]}
See Also
References
- {{cite web |url=https://medium.com/terminusdb/terminusdb-1-1-the-big-babushka-9020aeb712b7 |title=TerminusDB 1.1 The Big Babushka
- "TerminusDB Repository".
- "TerminusDB System Properties". db-engines.com. Retrieved 2019-12-06.
- Feeney, Luke (2019-10-07). "Today we release TerminusDB — the database for data people". Medium. Retrieved 2019-12-06.
- "TerminusDB Documentation - the database for data people". terminusdb.com. Retrieved 2019-12-06.
- "DataChemist wants to make sense of big-picture intelligence in the data analytics 'arms race'". Fora.ie. Retrieved 2020-05-06.
- "Startup Scout: Companies to watch in 2020". Fora.ie. Retrieved 2020-05-06.
- "Innovadores | Cómo lograr la paz en el mundo con ayuda del big data". Innovadores (in Spanish). Retrieved 2020-05-06.
- "'If data is the new oil, DataChemist is the refinery'". 2018-08-27. Cite journal requires
|journal=
(help) - Earley, Kelly (2019-11-20). "Dublin's DataChemist announces expansion into the Netherlands". Silicon Republic. Retrieved 2020-05-06.
- "Show HN: TerminusDB – An open source in-memory graph database | Hacker News". news.ycombinator.com. Retrieved 2020-05-06.
- "CORDIS EU Research Results".
- Feeney, Kevin; Davies, Jim; Welch, James; Hellmann, Sebastian; Dirschl, Christian; Koller, Andreas; Francois, Pieter; Marciniak, Arkadiusz (2018-10-30). Engineering Agile Big-Data Systems. River Publishers. ISBN 978-87-7022-016-3.
- "Who We Are". Seshat: Global History Databank. Retrieved 2020-05-06.
- Kevin, Feeney; Jim, Davies; Sebastian, Hellmann (2018-11-05). Engineering Agile Big-Data Systems. River Publishers. ISBN 978-87-7022-016-3.
- Thursday; December 21; Am, 2017-11:20 (2017-12-21). "Trinity data behind new research which suggests common path governed evolution of societies". www.irishexaminer.com. Retrieved 2019-12-06.CS1 maint: numeric names: authors list (link)
- Ahlstrom, Dick. "Trinity big data researchers to lead €4m quality control effort". The Irish Times. Retrieved 2019-12-06.
- Gleeson, Colin. "Dublin start-up chosen to work on global peace initiative". The Irish Times. Retrieved 2019-12-06.
- Whitehouse, Harvey; François, Pieter; Savage, Patrick E.; Currie, Thomas E.; Feeney, Kevin C.; Cioni, Enrico; Purcell, Rosalind; Ross, Robert M.; Larson, Jennifer; Baines, John; ter Haar, Barend (2019-03-20). "Complex societies precede moralizing gods throughout world history". Nature. 568 (7751): 226–229. doi:10.1038/s41586-019-1043-4. ISSN 0028-0836.
- "Who We Are". Retrieved 2020-07-22.
- Feeney, Luke (2019-10-07). "Today we release TerminusDB — the database for data people". Medium. Retrieved 2019-12-06.
- Feeney, Luke (2020-01-28). "TerminusDB 1.1 — The Big Babushka". Medium. Retrieved 2020-05-06.
- "TerminusDB 2.0 Alpha Release". TerminusDB. 2020-06-04. Retrieved 2020-07-22.
- Feeney, Luke (2019-10-01). "TerminusDB — what's in a name?". Medium. Retrieved 2019-12-06.
- terminusdb/terminus-store, TerminusDB, 2020-05-06, retrieved 2020-05-06
- "Succinct Data Structures and Delta Encoding for Modern Databases" (PDF).
- Brennan, Rob (2018). "Linked data schemata: fixing unsound foundations". Semantic Web. 9(1): 53–75 – via DORAS.
- "TerminusDB Documentation - the database for data people". terminusdb.com. Retrieved 2020-05-06.
- terminusdb/terminus-client, TerminusDB, 2020-04-29, retrieved 2020-05-06
- terminusdb/terminus-client-python, TerminusDB, 2020-05-06, retrieved 2020-05-06
- "TerminusDB Documentation - the database for data people". terminusdb.com. Retrieved 2020-05-06.