[][src]Crate sophia

This crate aims to provide a comprehensive toolkit for working with RDF and Linked Data in Rust.

Generalized vs. Strict RDF model

The data model supported by this crate is in fact a superset of the RDF data model as defined by the W3C. When the distinction matters, they will be called, respectively, the generalized RDF model, and the strict RDF model.

Examples

Modules

error

Types for handling errors.

graph

An RDF graph, the central notion of the RDF data model, is a collection of triples.

ns

Standard namespaces.

parsers

Parsers for standard RDF syntaxes, and tools for building new parsers.

serializers

Serializers for standard RDF syntaxes, and tools for building new serializers.

streams

TripleSource and TripleSink, are pervasive traits for streaming triples from one object to another.

term

Terms are the building blocks of an RDF graph. There are four types of terms: IRIs, blank nodes (BNode for short), literals and variables.

triple

An RDF triple expresses a single fact. Its formed of three terms called subject, predicate and object.

Macros

def_default_parser_api

This macro provides a straightforward implementation of the default functions of a serializer module.

def_default_serializer_api

This macro provides a straightforward implementation of the default functions of a serializer module.

def_stringifier

This macro provides a straightforward implementation of the Stringifier type, based on the Writer type.

impl_mutable_graph_for_indexed_mutable_graph

Defines the implementation of MutableGraph for IndexedGraph.

namespace