Trait rdftk_core::graph::caching::ValueFactory [−][src]
pub trait ValueFactory {}Show methods
fn blank_subject_named(&self, name: &str) -> &SubjectNodeRef; fn subject(&self, iri: &IRIRef) -> &SubjectNodeRef; fn string(&self, v: &str) -> &Literal; fn qname(&self, v: &str) -> &Literal; fn uri(&self, v: &IRIRef) -> &Literal; fn boolean(&self, v: &bool) -> &Literal; fn float(&self, v: &f32) -> &Literal; fn double(&self, v: &f64) -> &Literal; fn long(&self, v: i64) -> &Literal; fn int(&self, v: i32) -> &Literal; fn short(&self, v: i16) -> &Literal; fn byte(&self, v: i8) -> &Literal; fn unsigned_long(&self, v: u64) -> &Literal; fn unsigned_int(&self, v: u32) -> &Literal; fn unsigned_short(&self, v: u16) -> &Literal; fn unsigned_byte(&self, v: u8) -> &Literal; fn duration(&self, v: &Duration) -> &Literal;
Expand description
A value factory can be used to provide previously cached values rather than creating duplicates within a graph.
Required methods
fn blank_subject_named(&self, name: &str) -> &SubjectNodeRef
[src]
fn blank_subject_named(&self, name: &str) -> &SubjectNodeRef
[src]Returns a cached subject node with the provided blank node name.
fn subject(&self, iri: &IRIRef) -> &SubjectNodeRef
[src]
fn subject(&self, iri: &IRIRef) -> &SubjectNodeRef
[src]Returns a cached subject node with the provided IRI reference.
fn string(&self, v: &str) -> &Literal
[src]
fn string(&self, v: &str) -> &Literal
[src]Returns a cached literal value with the provided string.
fn qname(&self, v: &str) -> &Literal
[src]
fn qname(&self, v: &str) -> &Literal
[src]Returns a cached literal value with the provided QName.
fn uri(&self, v: &IRIRef) -> &Literal
[src]
fn uri(&self, v: &IRIRef) -> &Literal
[src]Returns a cached literal value with the provided IRI.
fn boolean(&self, v: &bool) -> &Literal
[src]
fn boolean(&self, v: &bool) -> &Literal
[src]Returns a cached literal value with the provided boolean.
fn float(&self, v: &f32) -> &Literal
[src]
fn float(&self, v: &f32) -> &Literal
[src]Returns a cached literal value with the provided float.
fn double(&self, v: &f64) -> &Literal
[src]
fn double(&self, v: &f64) -> &Literal
[src]Returns a cached literal value with the provided double.
fn long(&self, v: i64) -> &Literal
[src]
fn long(&self, v: i64) -> &Literal
[src]Returns a cached literal value with the provided long.
fn int(&self, v: i32) -> &Literal
[src]
fn int(&self, v: i32) -> &Literal
[src]Returns a cached literal value with the provided int.
fn short(&self, v: i16) -> &Literal
[src]
fn short(&self, v: i16) -> &Literal
[src]Returns a cached literal value with the provided short.
fn byte(&self, v: i8) -> &Literal
[src]
fn byte(&self, v: i8) -> &Literal
[src]Returns a cached literal value with the provided byte.
fn unsigned_long(&self, v: u64) -> &Literal
[src]
fn unsigned_long(&self, v: u64) -> &Literal
[src]Returns a cached literal value with the provided unsigned long.
fn unsigned_int(&self, v: u32) -> &Literal
[src]
fn unsigned_int(&self, v: u32) -> &Literal
[src]Returns a cached literal value with the provided unsigned int.
fn unsigned_short(&self, v: u16) -> &Literal
[src]
fn unsigned_short(&self, v: u16) -> &Literal
[src]Returns a cached literal value with the provided unsigned short.