Struct rdftk_core::statement::Statement [−][src]
pub struct Statement { /* fields omitted */ }
Expand description
A statement comprises a subject, a predicate, and an object.
Implementations
impl Statement
[src]
impl Statement
[src]pub fn new(
subject: SubjectNodeRef,
predicate: IRIRef,
object: ObjectNodeRef
) -> Self
[src]
pub fn new(
subject: SubjectNodeRef,
predicate: IRIRef,
object: ObjectNodeRef
) -> Self
[src]Construct a new statement from the provided subject, predicate, and object.
pub fn new_ref(
subject: SubjectNodeRef,
predicate: IRIRef,
object: ObjectNodeRef
) -> StatementRef
[src]
pub fn new_ref(
subject: SubjectNodeRef,
predicate: IRIRef,
object: ObjectNodeRef
) -> StatementRef
[src]Construct a new statement reference from the provided subject, predicate, and object.
pub fn also(&self, predicate: IRIRef, object: ObjectNodeRef) -> Self
[src]
pub fn also(&self, predicate: IRIRef, object: ObjectNodeRef) -> Self
[src]Construct a new statement with the provided predicate and object but using self’s subject.
pub fn about(&self, predicate: IRIRef, object: ObjectNodeRef) -> Self
[src]
pub fn about(&self, predicate: IRIRef, object: ObjectNodeRef) -> Self
[src]Construct a new statement from the provided predicate, and object, but using self as the subject (RDF-star).
pub fn subject(&self) -> &SubjectNodeRef
[src]
pub fn subject(&self) -> &SubjectNodeRef
[src]Return the subject of this statement.
pub fn set_subject(&mut self, subject: SubjectNodeRef)
[src]
pub fn set_subject(&mut self, subject: SubjectNodeRef)
[src]Set the value of this statement’s subject.
pub fn set_predicate(&mut self, predicate: IRIRef)
[src]
pub fn set_predicate(&mut self, predicate: IRIRef)
[src]Set the value of this statement’s predicate.
pub fn object(&self) -> &ObjectNodeRef
[src]
pub fn object(&self) -> &ObjectNodeRef
[src]Return the object of this statement.
pub fn set_object(&mut self, object: ObjectNodeRef)
[src]
pub fn set_object(&mut self, object: ObjectNodeRef)
[src]Set the value of this statement’s object.
pub fn reify(&self) -> Vec<StatementRef>
[src]
pub fn reify(&self) -> Vec<StatementRef>
[src]RDF Reification is the process of turning a single statement into a set of statements, and more importantly giving an identity (in the form of a blank node) to the statement.
pub fn is_nested(&self) -> bool
[src]
pub fn is_nested(&self) -> bool
[src]This statement is considered nested if either subject or object is itself a statement (RDF-star)
pub fn to_string_no_dot(&self) -> String
[src]
pub fn to_string_no_dot(&self) -> String
[src]Return a string form of a statement, in this case it does not terminate with a “.” character in the usual style.
Trait Implementations
impl From<Statement> for ObjectNodeRef
[src]
impl From<Statement> for ObjectNodeRef
[src]impl Eq for Statement
[src]
impl StructuralEq for Statement
[src]
impl StructuralPartialEq for Statement
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Statement
impl !Send for Statement
impl !Sync for Statement
impl Unpin for Statement
impl !UnwindSafe for Statement
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more