[−][src]Crate rdftk_core
The core data model; concrete implementations for Statement
s and Literal
s, along with a
concrete Resource
type that provides a builder-like experience for models.
Example
use rdftk_core::{Literal, Statement, SubjectNode}; use rdftk_iri::IRI; use std::rc::Rc; use std::str::FromStr; let mut statements: Vec<Rc<Statement>> = Default::default(); statements.push(Rc::new(Statement::new( SubjectNode::named(IRI::from_str("http://en.wikipedia.org/wiki/Tony_Benn").unwrap().into()), IRI::from_str("http://purl.org/dc/elements/1.1/title").unwrap().into(), Literal::new("Tony Benn").into(), )));
Re-exports
pub use graph::Graph; |
pub use literal::*; |
pub use qname::*; |
pub use resource::*; |
pub use statement::*; |
Modules
error | Te |
graph | Traits which describe the capabilities of different |
literal | The |
qname | A qualified name, |
resource | Implementation of the |
statement | A single statement (subject, predicate, object) in the RDF data mode. |