Struct rdftk_core::resource::Predicate[][src]

pub struct Predicate { /* fields omitted */ }

A predicate builder type, optionally used for multi-valued predicates.

Implementations

impl Predicate[src]

pub fn new(name: IRIRef) -> Self[src]

Construct a new Predicate instance with the provided IRI name.

pub fn property(&mut self, value: Literal) -> &mut Self[src]

Add a new literal value to this predicate.

pub fn value_of(&mut self, value: Literal) -> &mut Self[src]

Add a new literal value to this predicate.

pub fn literal(&mut self, value: Literal) -> &mut Self[src]

Add a new literal value to this predicate.

pub fn property_alternatives(&mut self, values: &[Literal]) -> &mut Self[src]

pub fn property_bag(&mut self, values: &[Literal]) -> &mut Self[src]

pub fn property_sequence(&mut self, values: &[Literal]) -> &mut Self[src]

pub fn property_container(
    &mut self,
    values: &[Literal],
    kind: IRIRef
) -> &mut Self
[src]

pub fn resource_blank_named(&mut self, name: &str) -> &mut Self[src]

pub fn resource_named(&mut self, name: IRIRef) -> &mut Self[src]

pub fn resource(&mut self, resource: Resource) -> &mut Self[src]

pub fn resource_alternatives(&mut self, values: &[Resource]) -> &mut Self[src]

pub fn resource_bag(&mut self, values: &[Resource]) -> &mut Self[src]

pub fn resource_sequence(&mut self, values: &[Resource]) -> &mut Self[src]

pub fn resource_container(
    &mut self,
    values: &[Resource],
    kind: IRIRef
) -> &mut Self
[src]

Trait Implementations

impl Clone for Predicate[src]

impl Debug for Predicate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.