Module rdftk_core::model::graph[][src]

Expand description

Traits which describe the core capabilities of a graph. Note that this crate does not provide an implementation of these traits as they are very dependent on their usage for performance, and any backing storage.

Example

use rdftk_core::model::graph::Graph;
use rdftk_core::model::statement::StatementRef;

fn simple_graph_writer(graph: &impl Graph)
{
    for statement in graph.statements() {
        println!("{}", statement);
    }
}

Re-exports

pub use mapping::PrefixMappingRef;
pub use mapping::PrefixMappings;

Modules

mapping

A trait for the prefix mappings required by the Graph trait. Prefix mappings can be added to a graph to provide more readable serialization forms.

skolem

Support for the Skolemization process of a graph. For more details on the process, see Skolemization (Informative) and Replacing Blank Nodes with IRIs.

Traits

Graph

A graph is an unordered list of statements and may include duplicates. Note that this trait represents an immutable graph, a type should also implement the MutableGraph trait for mutation.

GraphFactory

A graph factory provides an interface to create a new graph. This allows for implementations where underlying shared resources are required and so may be owned by the factory.

Type Definitions

GraphFactoryRef

The actual object storage type, reference counted for memory management.

GraphRef

The actual object storage type, reference counted for memory management.