Expand description
Implements data structures for RDF 1.1 Concepts using OxRDF.
Usage example:
use oxigraph::model::*;
let mut graph = Graph::default();
// insertion
let ex = NamedNodeRef::new("http://example.com").unwrap();
let triple = TripleRef::new(ex, ex, ex);
graph.insert(triple);
// simple filter
let results: Vec<_> = graph.triples_for_subject(ex).collect();
assert_eq!(vec![triple], results);
Modules§
- dataset
- In-memory implementation of RDF datasets.
- graph
- In-memory implementation of RDF graphs.
- vocab
- Provides ready to use
NamedNodeRef
s for basic RDF vocabularies.
Structs§
- Blank
Node - An owned RDF blank node.
- Blank
Node IdParse Error - An error raised during
BlankNode
IDs validation. - Blank
Node Ref - A borrowed RDF blank node.
- Dataset
- An in-memory RDF dataset.
- Graph
- An in-memory RDF graph.
- IriParse
Error - An error raised during
Iri
orIriRef
validation. - Language
TagParse Error - An error raised during
LanguageTag
validation. - Literal
- An owned RDF literal.
- Literal
Ref - A borrowed RDF literal.
- Named
Node - An owned RDF IRI.
- Named
Node Ref - A borrowed RDF IRI.
- Quad
- An owned triple in an RDF dataset.
- QuadRef
- A borrowed triple in an RDF dataset.
- Term
Parse Error - An error raised during term serialization parsing using the
FromStr
trait. - Triple
- An owned RDF triple.
- Triple
Ref - A borrowed RDF triple.
- TryFrom
Term Error - An error return by some
TryFrom<Term>
implementations. - Variable
- A SPARQL query owned variable.
- Variable
Name Parse Error - An error raised during
Variable
name validation. - Variable
Ref - A SPARQL query borrowed variable.
Enums§
- Graph
Name - An owned graph name
- Graph
Name Ref - A borrowed graph name
- Named
OrBlank Node - The owned union of IRIs and blank nodes.
- Named
OrBlank Node Ref - The borrowed union of IRIs and blank nodes.
- Subject
- The owned union of IRIs, blank nodes and triples (if the
rdf-star
feature is enabled). - Subject
Ref - The borrowed union of IRIs, blank nodes and triples (if the
rdf-star
feature is enabled). - Term
- An owned RDF term
- TermRef
- A borrowed RDF term