Expand description
RDF.rs is a Rust framework for working with RDF knowledge graphs.
§Features
With defaults disabled, generic terms, triples/quads, and pattern types need
neither this crate’s alloc nor std feature. alloc exposes HeapTerm,
CowTerm, datatypes, and boxed iterator/source abstractions. serde and
borsh imply alloc; ecosystem integrations (oxrdf, bson, json-ld,
rudof, sophia) imply std. datetime and decimal forward XSD features.
Pattern matching uses borrowed, explicitly comparable terms and works without
alloc. In graph patterns, None is a wildcard and DEFAULT_GRAPH selects
the default graph.
§Examples
use rdf_model::*;Modules§
- interop
- Interoperability with other Rust libraries.
Structs§
- AnyStatement
- AnyTerm
- Default
Graph - An allocation-free singleton denoting the default graph.
- Quad
- A quad statement.
- Quad
Pattern - A quad statement pattern.
- Triple
- A triple statement.
- Triple
Pattern - A triple statement pattern.
Enums§
- Base
Direction - A base direction for directional language-tagged strings.
- Cow
- A clone-on-write smart pointer.
- CowTerm
alloc - A clone-on-write term.
- Datatype
alloc - A datatype.
- Heap
Term alloc - A heap-allocated term.
- Statement
Slot - A slot in a statement (subject, predicate, object, or context).
- Term
Kind - The kind of an RDF term or the distinguished default-graph marker.
Constants§
- DEFAULT_
GRAPH - The singleton default-graph marker.
- DEFAULT_
GRAPH_ URN - The reserved default-graph identifier for term-only external protocols.
- QUAD_
SLOTS - RDFS_
LABEL alloc - RDF_
TYPE alloc - SAMPLE_
LITERAL alloc - A sample plain literal term.
- SAMPLE_
QUAD alloc - A sample quad.
- SAMPLE_
RESOURCE alloc - A sample resource term.
- SAMPLE_
TRIPLE alloc - A sample triple.
- TRIPLE_
SLOTS
Statics§
- EMPTY_
COW_ QUAD_ PATTERN alloc - EMPTY_
COW_ TRIPLE_ PATTERN alloc - EMPTY_
HEAP_ QUAD_ PATTERN alloc - EMPTY_
HEAP_ TRIPLE_ PATTERN alloc - FEATURES
- The set of features that are enabled in this build of the crate.
Traits§
- Countable
- A trait for collections that are countable.
- Dataset
alloc - An RDF dataset.
- Document
alloc - An RDF document.
- Enumerable
alloc - Graph
alloc - An RDF graph.
- Maybe
Countable - Optional collection counts, available without
allocorstd. - Maybe
Durable - Maybe
Indexed - Maybe
Mutable - Queryable
alloc - Source
alloc - An RDF source.
- Statement
- An RDF statement.
- Statement
Pattern - An RDF statement pattern.
- Term
- An RDF term or the distinguished default-graph marker used in graph slots.
- ToOwned
- A generalization of
Cloneto borrowed data. - Vocabulary
- An RDF vocabulary.
Type Aliases§
- AnyQuad
- AnyTriple
- CowQuad
alloc - A clone-on-write quad statement.
- CowQuad
Pattern alloc - A clone-on-write quad statement pattern.
- CowQuad
Set alloc - A heap-allocated set of quad statements.
- CowTriple
alloc - A clone-on-write triple statement.
- CowTriple
Pattern alloc - A clone-on-write triple statement pattern.
- CowTriple
Set alloc - A heap-allocated set of triple statements.
- Heap
Quad alloc - A heap-allocated quad statement.
- Heap
Quad Pattern alloc - A heap-allocated quad statement pattern.
- Heap
Quad Set alloc - A heap-allocated set of quad statements.
- Heap
Triple alloc - A heap-allocated triple statement.
- Heap
Triple Pattern alloc - A heap-allocated triple statement pattern.
- Heap
Triple Set alloc - A heap-allocated set of triple statements.
- Quad
Slot - Triple
Slot