Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
897 B
25 lines
897 B
//! Implements data structures for [RDF 1.1 Concepts](https://www.w3.org/TR/rdf11-concepts/) using [OxRDF](https://crates.io/crates/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);
|
|
//! ```
|
|
|
|
pub use oxrdf::{
|
|
dataset, graph, vocab, BlankNode, BlankNodeIdParseError, BlankNodeRef, Dataset, Graph,
|
|
GraphName, GraphNameRef, IriParseError, LanguageTagParseError, Literal, LiteralRef, NamedNode,
|
|
NamedNodeRef, NamedOrBlankNode, NamedOrBlankNodeRef, Quad, QuadRef, Subject, SubjectRef, Term,
|
|
TermParseError, TermRef, Triple, TripleRef,
|
|
};
|
|
|