[−][src]Crate ligature
This module is the main module for the Ligature project. It represents to common types and traits used by Ligature.
Structs
BlankNode | A node that is only identified by a unique u64 id. |
DatasetName | A string that represents a Dataset's Name. Currently can only be ASCII text separated by / TODO add validator and tests |
DefaultGraph | A unit struct used to represent the concept of a Default Graph in a quad store. |
IRI | An IRI is represented via https://www.ietf.org/rfc/rfc3987.txt TODO add validator and tests |
LangLiteral | A struct containing text and a language tag that denotes what language the text is expressed in. TODO add validator and tests |
LangTag | A wrapper type that represents a language tag.
Represented via |
LigatureError | A general struct for representing errors involving Ligature. TODO should probably be an enum with a bunch of specific cases |
PersistedStatement | A PersistedStatement is a Statement along with a DatasetName and Graph that that Statement belongs to. TODO add validator and tests |
Statement | A Statement is a grouping of Subject, Predicate, and Object. TODO add validator and tests |
UnknownLiteral | A struct containing a value represented as a String and the type of the value represented by an IRI. TODO add validator and tests TODO probably need a function that double checks a given UnknownLiteral is actually unknown |
Enums
Graph | The set of valid types that can be used as a Graph name. TODO add validator and tests |
Literal | An enum that represents all the currently supported literal types. |
Object | The set of valid types that can be used as an Object. TODO add validator and tests |
Predicate | The set of valid types that can be used as a Predicate. TODO add validator and tests |
Range | A set of enums used to express range queries when it makes sense for that type (ie no support for BooleanLiteralRange or UnknownLiteralRange since they don't make sense). |
Subject | The set of valid types that can be used as a Subject. TODO add validator and tests |
Traits
Ligature | A trait that all Ligature implementations implement. |
QueryTx | Represents a QueryTx within the context of a Ligature instance and a single Dataset |
WriteTx | Represents a WriteTx within the context of a Ligature instance and a single Dataset |