pub enum ClassExpression {
Named(Iri<String>),
Thing,
Nothing,
ObjectIntersectionOf(Vec<Self>),
ObjectUnionOf(Vec<Self>),
ObjectComplementOf(Box<Self>),
ObjectSomeValuesFrom {
property: ObjectPropertyExpression,
filler: Box<Self>,
},
ObjectAllValuesFrom {
property: ObjectPropertyExpression,
filler: Box<Self>,
},
}Expand description
An OWL class expression.
Variants§
Named(Iri<String>)
A named class.
Thing
owl:Thing.
Nothing
owl:Nothing.
ObjectIntersectionOf(Vec<Self>)
An intersection of class expressions.
ObjectUnionOf(Vec<Self>)
A union of class expressions.
ObjectComplementOf(Box<Self>)
A complement of a class expression.
ObjectSomeValuesFrom
An existential object-property restriction.
ObjectAllValuesFrom
A universal object-property restriction.
Implementations§
Source§impl ClassExpression
impl ClassExpression
Sourcepub fn object_intersection_of(
operands: Vec<Self>,
) -> Result<Self, StructuralModelError>
pub fn object_intersection_of( operands: Vec<Self>, ) -> Result<Self, StructuralModelError>
Create an intersection expression.
§Errors
Returns StructuralModelError::InvalidFormat for zero operands.
Sourcepub fn object_union_of(
operands: Vec<Self>,
) -> Result<Self, StructuralModelError>
pub fn object_union_of( operands: Vec<Self>, ) -> Result<Self, StructuralModelError>
Sourcepub fn object_complement_of(operand: Self) -> Self
pub fn object_complement_of(operand: Self) -> Self
Create a complement expression.
Sourcepub fn object_some_values_from(
property: ObjectPropertyExpression,
filler: Self,
) -> Self
pub fn object_some_values_from( property: ObjectPropertyExpression, filler: Self, ) -> Self
Create an existential object-property restriction.
Sourcepub fn object_all_values_from(
property: ObjectPropertyExpression,
filler: Self,
) -> Self
pub fn object_all_values_from( property: ObjectPropertyExpression, filler: Self, ) -> Self
Create a universal object-property restriction.
Trait Implementations§
Source§impl Clone for ClassExpression
impl Clone for ClassExpression
Source§impl Debug for ClassExpression
impl Debug for ClassExpression
Source§impl<'de> Deserialize<'de> for ClassExpression
impl<'de> Deserialize<'de> for ClassExpression
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClassExpression
Source§impl Hash for ClassExpression
impl Hash for ClassExpression
Source§impl PartialEq for ClassExpression
impl PartialEq for ClassExpression
Source§impl Serialize for ClassExpression
impl Serialize for ClassExpression
impl StructuralPartialEq for ClassExpression
Auto Trait Implementations§
impl Freeze for ClassExpression
impl RefUnwindSafe for ClassExpression
impl Send for ClassExpression
impl Sync for ClassExpression
impl Unpin for ClassExpression
impl UnsafeUnpin for ClassExpression
impl UnwindSafe for ClassExpression
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more