Enum horned_owl::model::ClassExpression[][src]

pub enum ClassExpression {
    Class(Class),
    Some {
        o: ObjectProperty,
        ce: Box<ClassExpression>,
    },
    Only {
        o: ObjectProperty,
        ce: Box<ClassExpression>,
    },
    And {
        o: Vec<ClassExpression>,
    },
    Or {
        o: Vec<ClassExpression>,
    },
    Not {
        ce: Box<ClassExpression>,
    },
}

A class expression

As well as a named class, it is possible to define classes of individuals based on these class constructors.

Variants

A named class

An existential relationship

This is the anonymous class of individuals i, which have the relationship o to a class expression ce. Every individual in i must have this relationship to one individual in ce.

Fields of Some

A universal relationship

This is the anonymous class of individuals i where all individuals which are related by o are instances of ce. This does not imply that the i necessarily has any relation r.

Fields of Only

The boolean and

The class of individuals which are individuals of all these classes.

Fields of And

The boolean or

The class of individuals which are individuals of any of these classes.

Fields of Or

The boolean not

The class of individuals which are not individuals of any of these classes.

Fields of Not

Trait Implementations

impl Clone for ClassExpression
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ClassExpression
[src]

Formats the value using the given formatter. Read more

impl Eq for ClassExpression
[src]

impl Hash for ClassExpression
[src]

Feeds this value into the given [Hasher]. Read more

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

impl Ord for ClassExpression
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for ClassExpression
[src]

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

This method tests for !=.

impl PartialOrd for ClassExpression
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl From<Class> for ClassExpression
[src]

Performs the conversion.

impl<'a> From<&'a Class> for ClassExpression
[src]

Performs the conversion.

Auto Trait Implementations