Trait rdftk_core::model::statement::Statement [−][src]
pub trait Statement: Debug + Featured { fn subject(&self) -> &SubjectNodeRef; fn set_subject(&mut self, subject: SubjectNodeRef); fn predicate(&self) -> &IRIRef; fn set_predicate(&mut self, predicate: IRIRef); fn object(&self) -> &ObjectNodeRef; fn set_object(&mut self, object: ObjectNodeRef); fn factory(&self) -> StatementFactoryRef; fn literal_factory(&self) -> LiteralFactoryRef; fn is_nested(&self) -> bool { ... } }
Expand description
This trait models an RDF statement.
Required methods
fn subject(&self) -> &SubjectNodeRef
[src]
fn subject(&self) -> &SubjectNodeRef
[src]Return the subject of this statement.
fn set_subject(&mut self, subject: SubjectNodeRef)
[src]
fn set_subject(&mut self, subject: SubjectNodeRef)
[src]Set the value of this statement’s subject.
fn set_predicate(&mut self, predicate: IRIRef)
[src]
fn set_predicate(&mut self, predicate: IRIRef)
[src]Set the value of this statement’s predicate.
fn object(&self) -> &ObjectNodeRef
[src]
fn object(&self) -> &ObjectNodeRef
[src]Return the object of this statement.
fn set_object(&mut self, object: ObjectNodeRef)
[src]
fn set_object(&mut self, object: ObjectNodeRef)
[src]Set the value of this statement’s object.
fn factory(&self) -> StatementFactoryRef
[src]
fn factory(&self) -> StatementFactoryRef
[src]Return the factory that creates statements using the same provider as self
.
Note that this uses Arc as a reference as factories are explicitly intended for cross-thread usage.
fn literal_factory(&self) -> LiteralFactoryRef
[src]
fn literal_factory(&self) -> LiteralFactoryRef
[src]Return the factory that creates literals using the same provider as self
.
Note that this uses Arc as a reference as factories are explicitly intended for cross-thread usage.