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
.
pub fn with_factories(
subject: SubjectNodeRef,
statement_factory: StatementFactoryRef,
literal_factory: LiteralFactoryRef
) -> Result<Self>
[src]
pub fn with_factories(
subject: SubjectNodeRef,
statement_factory: StatementFactoryRef,
literal_factory: LiteralFactoryRef
) -> Result<Self>
[src]Construct a new Resource
with the subject cloned from an existing
SubjectNode
.
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.
pub fn literal_language_str(
&mut self,
predicate: IRIRef,
value: &str,
language: LanguageTag
) -> &mut Self
[src]
pub fn literal_language_str(
&mut self,
predicate: IRIRef,
value: &str,
language: LanguageTag
) -> &mut Self
[src]Add a new property predicate with a literal value to this resource.
Add a new property predicate with a literal value to this resource.
pub fn property_alternatives(
&mut self,
predicate: IRIRef,
values: &[LiteralRef]
) -> &mut Self
[src]
pub fn property_alternatives(
&mut self,
predicate: IRIRef,
values: &[LiteralRef]
) -> &mut Self
[src]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.
pub fn property_container(
&mut self,
predicate: IRIRef,
values: &[LiteralRef],
kind: IRIRef
) -> &mut Self
[src]
pub fn property_container(
&mut self,
predicate: IRIRef,
values: &[LiteralRef],
kind: IRIRef
) -> &mut Self
[src]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
Auto Trait Implementations
impl !RefUnwindSafe for Resource
impl !UnwindSafe for Resource
Blanket Implementations
Mutably borrows from an owned value. Read more