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
- Dataset traits and implementations.
- generator
- Resource identifier generators.
- interpretation
- Resource interpretations.
- pattern
- utils
- vocabulary
- Lexical domain abstractions.
Macros§
- grdf_
quad - Creates a gRDF quad.
- grdf_
quad_ pattern - Creates a gRDF quad pattern.
- grdf_
quads - Creates an array of quads.
- grdf_
triple - Creates a gRDF triple.
- grdf_
triples - Creates an array of triples.
Structs§
- BlankId
- Blank node identifier.
- Blank
IdBuf - Owned blank node identifier.
- Invalid
Blank Id - Invalid blank node identifier.
- Iri
- Internationalized Resource Identifier (IRI).
- IriBuf
- Owned IRI.
- Literal
- RDF Literal.
- Literal
Ref - RDF Literal reference.
- Quad
- RDF quad.
- RdfDisplayed
- Value ready to be formatted as an RDF syntax element.
- Triple
- RDF triple.
Enums§
- Id
- RDF node identifier.
- Lexical
Literal Type Ref - RDF literal type.
- Literal
Type - RDF literal type.
- Literal
Type Ref - RDF literal type reference.
- Quad
Export Failed - Error returned when calling
try_extract_from_vocabulary
on aQuad
. - Term
- gRDF term.
Constants§
- RDFS_
CLASS - RDFS_
COMMENT - RDFS_
CONTAINER - RDFS_
CONTAINER_ MEMBERSHIP_ PROPERTY - RDFS_
DATATYPE - RDFS_
DOMAIN - RDFS_
IS_ DEFINED_ BY - RDFS_
LABEL - RDFS_
LITERAL - RDFS_
MEMBER - RDFS_
RANGE - RDFS_
RESOURCE - RDFS_
SEE_ ALSO - RDFS_
SUB_ CLASS_ OF - RDFS_
SUB_ PROPERTY_ OF - RDF_ALT
- RDF_BAG
- RDF_
FIRST - RDF_
HTML - RDF_
JSON - RDF_
LANG_ STRING - RDF_
LIST - RDF_NIL
- RDF_
OBJECT - RDF_
PREDICATE - RDF_
PROPERTY - RDF_
REST - RDF_SEQ
- RDF_
STATEMENT - RDF_
SUBJECT - RDF_
TYPE - RDF_
VALUE - RDF_
XML_ LITERAL - XSD_
STRING
Traits§
- AsId
- Type that can surely be borrowed as an
Id
. - AsRdf
Term - Type that can be interpreted as an RDF term.
- From
Blank Id - Types that can be constructed from a blank node identifier.
- FromIri
- Types that can be constructed from an iri.
- IntoId
- Type that can surely be converted into an
Id
. - Into
Term - Type that can be turned into a
Term
. - IsXsd
String Iri - IRI type that may be http://www.w3.org/2001/XMLSchema#string.
- Maybe
Blank Id - Types that may represent a blank node identifier.
- MaybeId
- Types tha may represent a resource identifier.
- Maybe
Iri - Types that may represent an iri.
- RdfDisplay
- Display method for RDF syntax elements.
- RdfType
Iri - Literal type IRI.
- RdfType
IriWith Context - Literal type IRI.
- TryAs
Blank Id - Types that may have a blank node identifier representation that can be borrowed.
- TryAsId
- Type that can be converted into an
Id
. - TryAs
Iri - Types that may have an iri representation that can be borrowed.
- TryExport
Id - Type that can turn an
Id<I, B>
into anId
. - TryExport
Quad - Type that can turn a
Quad<S, P, O, G>
into aQuad
. - TryInto
Blank Id - Types that can be turned into a blank node identifier.
- TryInto
Id - Type that can be converted into an
Id
. - TryInto
Iri - Types that can be turned into an iri.
Type Aliases§
- Graph
Label - RDF quad graph Label.
- Grdf
Quad - gRDF quad.
- Grdf
Triple - gRDF triple.
- Lexical
Graph Label Ref - Lexical RDF graph label reference.
- Lexical
IdRef - Lexical RDF node identifier reference.
- Lexical
Object Ref - Lexical RDF object reference.
- Lexical
Quad - Lexical RDF quad.
- Lexical
Quad Ref - Lexical RDF quad reference.
- Lexical
Subject Ref - Lexical RDF subject reference.
- Lexical
Term Ref - Lexical RDF term reference.
- Lexical
Triple - Lexical RDF triple.
- Lexical
Triple Ref - Lexical RDF triple reference.
- Object
- RDF triple/quad object.
- Subject
- RDF triple/quad subject.