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

Return the subject of this statement.

Set the value of this statement’s subject.

Return the predicate of this statement.

Set the value of this statement’s predicate.

Return the object of this statement.

Set the value of this statement’s object.

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.

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.

Provided methods

This statement is considered nested if either subject or object is itself a statement (RDF-star)

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors