Struct rdftk_core::simple::resource::Resource[][src]

pub struct Resource { /* fields omitted */ }
Expand description

The main resource builder type.

Implementations

Construct a new Resource with the subject cloned from an existing SubjectNode.

Construct a new Resource with the subject cloned from an existing SubjectNode.

Construct a new Resource with a new blank node as the subject.

Construct a new Resource with a named blank node as the subject.

Construct a new Resource with the provided IRI as the subject.

Returns true if this instance is a resource in web terms, that is it’s subject is an IRI.

Returns true if this instance is an individual in RDFS terms, that is it has at least one rdf:type predicate.

Add the Predicate instance to this resource.

Add a new property predicate with a literal value to this resource.

Add a new property predicate with a literal value to this resource.

Add a new property predicate with a literal value to this resource.

Add a new property predicate with a literal value to this resource.

Add a new property predicate with a literal value to this resource.

Add a new property predicate with a literal value to this resource.

Add a new property predicate with a literal value to this resource.

The value of this property predicate is a container denoting the provided values as alternatives.

The value of this property predicate is a container denoting the provided values as an unordered bag.

The value of this property predicate is a container denoting the provided values as an ordered sequence.

The value of this property predicate is a container of the provided values with a specified type.

Add a new resource predicate, a blank node, to this predicate.

Add a new resource predicate, an IRI, to this predicate.

Add a new resource predicate, another resource, to this predicate.

The value of this resource predicate is a container denoting the provided values as alternatives.

The value of this resource predicate is a container denoting the provided values as an unordered bag.

The value of this resource predicate is a container denoting the provided values as an ordered sequence.

The value of this resource predicate is a container of the provided values with a specified type.

Set the RDF type (classifier) of this resource.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.