Expand description
The Resource Description Framework (RDF) is a very simple graph data model defined by the World Wide Web Consortium (W3C) to represent arbitrary pieces of information, primarily intended for the web. Nodes of the graph are called resources, and resources are connected together using relations, which are resources themselves.
This is a utility library providing common types, data-structures, traits, constants and macro definitions to deal with RDF data:
- IRIs (through the
iref
crate), blank node identifiers and literals to represent resources in their lexical form as terms; - Triples and quads;
- Interpretations projecting resources from the lexical domain to the value domain;
- Graphs and datasets representing collections of interpreted triples/quads.
Re-exports§
pub use dataset::Dataset;
pub use generator::Generator;
pub use interpretation::Interpretation;
pub use interpretation::InterpretationMut;
pub use vocabulary::Vocabulary;
pub use vocabulary::VocabularyMut;
Modules§
- Dataset traits and implementations.
- Resource identifier generators.
- Resource interpretations.
- Lexical domain abstractions.
Macros§
- Creates a gRDF quad.
- Creates a gRDF quad pattern.
- Creates an array of quads.
- Creates a gRDF triple.
- Creates an array of triples.
Structs§
- Blank node identifier.
- Owned blank node identifier.
- Invalid blank node identifier.
- Internationalized Resource Identifier (IRI).
- Owned IRI.
- RDF Literal.
- RDF Literal reference.
- RDF quad.
- Value ready to be formatted as an RDF syntax element.
- RDF triple.
Enums§
- RDF node identifier.
- RDF literal type.
- RDF literal type.
- RDF literal type reference.
- Error returned when calling
try_extract_from_vocabulary
on aQuad
. - gRDF term.
Constants§
Traits§
- Type that can surely be borrowed as an
Id
. - Type that can be interpreted as an RDF term.
- Types that can be constructed from a blank node identifier.
- Types that can be constructed from an iri.
- Type that can surely be converted into an
Id
. - Type that can be turned into a
Term
. - IRI type that may be http://www.w3.org/2001/XMLSchema#string.
- Types that may represent a blank node identifier.
- Types tha may represent a resource identifier.
- Types that may represent an iri.
- Display method for RDF syntax elements.
- Literal type IRI.
- Literal type IRI.
- Types that may have a blank node identifier representation that can be borrowed.
- Type that can be converted into an
Id
. - Types that may have an iri representation that can be borrowed.
- Type that can turn an
Id<I, B>
into anId
. - Type that can turn a
Quad<S, P, O, G>
into aQuad
. - Types that can be turned into a blank node identifier.
- Type that can be converted into an
Id
. - Types that can be turned into an iri.
Type Aliases§
- RDF quad graph Label.
- gRDF quad.
- gRDF triple.
- Lexical RDF graph label reference.
- Lexical RDF node identifier reference.
- Lexical RDF object reference.
- Lexical RDF quad.
- Lexical RDF quad reference.
- Lexical RDF subject reference.
- Lexical RDF term reference.
- Lexical RDF triple.
- Lexical RDF triple reference.
- RDF triple/quad object.
- RDF triple/quad subject.