Skip to main content

Axiom

Enum Axiom 

Source
pub enum Axiom<L = OwlLiteral, B = BlankNodeId> {
Show 26 variants Declaration { entity: Entity, annotations: AxiomAnnotations<L, B>, }, SubClassOf { sub_class: ClassExpression, super_class: ClassExpression, annotations: AxiomAnnotations<L, B>, }, EquivalentClasses { classes: Vec<ClassExpression>, annotations: AxiomAnnotations<L, B>, }, DisjointClasses { classes: Vec<ClassExpression>, annotations: AxiomAnnotations<L, B>, }, ObjectPropertyDomain { property: ObjectPropertyExpression, domain: ClassExpression, annotations: AxiomAnnotations<L, B>, }, SubObjectPropertyOf { sub_property: SubObjectPropertyExpression, super_property: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, FunctionalObjectProperty { property: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, InverseFunctionalObjectProperty { property: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, ReflexiveObjectProperty { property: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, IrreflexiveObjectProperty { property: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, SymmetricObjectProperty { property: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, AsymmetricObjectProperty { property: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, TransitiveObjectProperty { property: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, FunctionalDataProperty { property: Iri<String>, annotations: AxiomAnnotations<L, B>, }, EquivalentObjectProperties { properties: Vec<ObjectPropertyExpression>, annotations: AxiomAnnotations<L, B>, }, DisjointObjectProperties { properties: Vec<ObjectPropertyExpression>, annotations: AxiomAnnotations<L, B>, }, InverseObjectProperties { first: ObjectPropertyExpression, second: ObjectPropertyExpression, annotations: AxiomAnnotations<L, B>, }, ObjectPropertyRange { property: ObjectPropertyExpression, range: ClassExpression, annotations: AxiomAnnotations<L, B>, }, SubDataPropertyOf { sub_property: Iri<String>, super_property: Iri<String>, annotations: AxiomAnnotations<L, B>, }, EquivalentDataProperties { properties: Vec<Iri<String>>, annotations: AxiomAnnotations<L, B>, }, DisjointDataProperties { properties: Vec<Iri<String>>, annotations: AxiomAnnotations<L, B>, }, DataPropertyDomain { property: Iri<String>, domain: ClassExpression, annotations: AxiomAnnotations<L, B>, }, DataPropertyRange { property: Iri<String>, range: DataRange<L>, annotations: AxiomAnnotations<L, B>, }, DatatypeDefinition { datatype: Iri<String>, range: DataRange<L>, annotations: AxiomAnnotations<L, B>, }, HasKey { class: ClassExpression, properties: KeyProperties, annotations: AxiomAnnotations<L, B>, }, AnnotationAssertion { property: Iri<String>, subject: AnnotationSubject<B>, value: AnnotationValue<L, B>, annotations: AxiomAnnotations<L, B>, },
}
Expand description

An OWL structural axiom.

Variants§

§

Declaration

An entity declaration.

Fields

§entity: Entity

Declared OWL entity.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

SubClassOf

A subclass axiom.

Fields

§sub_class: ClassExpression

Subclass expression.

§super_class: ClassExpression

Superclass expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

EquivalentClasses

An equivalent-classes axiom.

Fields

§classes: Vec<ClassExpression>

Equivalent class expressions.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

DisjointClasses

A disjoint-classes axiom.

Fields

§classes: Vec<ClassExpression>

Disjoint class expressions.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

ObjectPropertyDomain

An object-property domain axiom.

Fields

§property: ObjectPropertyExpression

Object property expression.

§domain: ClassExpression

Domain class expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

SubObjectPropertyOf

Object subproperty inclusion, including ordered property-chain inclusion.

Fields

§sub_property: SubObjectPropertyExpression

A single property expression or an ordered chain.

§super_property: ObjectPropertyExpression

The superproperty expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

FunctionalObjectProperty

An object property expression is functional.

Fields

§property: ObjectPropertyExpression

The characterized object property expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

InverseFunctionalObjectProperty

An object property expression is inverse-functional.

Fields

§property: ObjectPropertyExpression

The characterized object property expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

ReflexiveObjectProperty

An object property expression is reflexive.

Fields

§property: ObjectPropertyExpression

The characterized object property expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

IrreflexiveObjectProperty

An object property expression is irreflexive.

Fields

§property: ObjectPropertyExpression

The characterized object property expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

SymmetricObjectProperty

An object property expression is symmetric.

Fields

§property: ObjectPropertyExpression

The characterized object property expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

AsymmetricObjectProperty

An object property expression is asymmetric.

Fields

§property: ObjectPropertyExpression

The characterized object property expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

TransitiveObjectProperty

An object property expression is transitive.

Fields

§property: ObjectPropertyExpression

The characterized object property expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

FunctionalDataProperty

A data property has at most one distinct data value per individual.

Fields

§property: Iri<String>

The named data property.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

EquivalentObjectProperties

Equivalent object property expressions.

Fields

§properties: Vec<ObjectPropertyExpression>

Equivalent object property expressions.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

DisjointObjectProperties

Pairwise disjoint object property expressions.

Fields

§properties: Vec<ObjectPropertyExpression>

Pairwise disjoint object property expressions.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

InverseObjectProperties

Two inverse object property expressions.

Fields

§first: ObjectPropertyExpression

First object property expression.

§second: ObjectPropertyExpression

Its inverse object property expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

ObjectPropertyRange

An object property range.

Fields

§property: ObjectPropertyExpression

The restricted object property expression.

§range: ClassExpression

The range class expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

SubDataPropertyOf

A data subproperty inclusion.

Fields

§sub_property: Iri<String>

The named subproperty.

§super_property: Iri<String>

The named superproperty.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

EquivalentDataProperties

Equivalent data properties.

Fields

§properties: Vec<Iri<String>>

Equivalent named data properties.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

DisjointDataProperties

Pairwise disjoint data properties.

Fields

§properties: Vec<Iri<String>>

Pairwise disjoint named data properties.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

DataPropertyDomain

A data property domain.

Fields

§property: Iri<String>

The named data property.

§domain: ClassExpression

The domain class expression.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

DataPropertyRange

A data property range.

Fields

§property: Iri<String>

The named data property.

§range: DataRange<L>

The structural data range.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

DatatypeDefinition

A datatype definition.

Fields

§datatype: Iri<String>

The defined datatype.

§range: DataRange<L>

The defining data range.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

HasKey

An object/data property key for instances of a class expression.

Fields

§class: ClassExpression

The class expression identified by the key.

§properties: KeyProperties

At least one object or data key property.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

§

AnnotationAssertion

An annotation assertion axiom.

Fields

§property: Iri<String>

Annotation<L, B> property IRI.

§subject: AnnotationSubject<B>

Annotation<L, B> assertion subject.

§value: AnnotationValue<L, B>

Annotation<L, B> assertion value.

§annotations: AxiomAnnotations<L, B>

Axiom<L, B> annotations.

Implementations§

Source§

impl<L, B> Axiom<L, B>

Source

pub fn declaration(entity: Entity) -> Self

Create a declaration axiom without axiom annotations.

Source

pub fn sub_class_of( sub_class: ClassExpression, super_class: ClassExpression, ) -> Self

Create a subclass axiom without axiom annotations.

Source

pub fn equivalent_classes( classes: Vec<ClassExpression>, ) -> Result<Self, StructuralModelError>

Create an equivalent-classes axiom without axiom annotations.

§Errors

Returns StructuralModelError::InvalidFormat when fewer than two class expressions are supplied.

Source

pub fn disjoint_classes( classes: Vec<ClassExpression>, ) -> Result<Self, StructuralModelError>

Create a disjoint-classes axiom without axiom annotations.

§Errors

Returns StructuralModelError::InvalidFormat when fewer than two class expressions are supplied.

Source§

impl<L, B> Axiom<L, B>

Source

pub fn sub_object_property_of( sub_property: SubObjectPropertyExpression, super_property: ObjectPropertyExpression, ) -> Self

Create an object subproperty or property-chain inclusion without annotations.

Source

pub fn functional_object_property(property: ObjectPropertyExpression) -> Self

Create a functional object property axiom without annotations.

Source

pub fn inverse_functional_object_property( property: ObjectPropertyExpression, ) -> Self

Create a inverse-functional object property axiom without annotations.

Source

pub fn reflexive_object_property(property: ObjectPropertyExpression) -> Self

Create a reflexive object property axiom without annotations.

Source

pub fn irreflexive_object_property(property: ObjectPropertyExpression) -> Self

Create a irreflexive object property axiom without annotations.

Source

pub fn symmetric_object_property(property: ObjectPropertyExpression) -> Self

Create a symmetric object property axiom without annotations.

Source

pub fn asymmetric_object_property(property: ObjectPropertyExpression) -> Self

Create a asymmetric object property axiom without annotations.

Source

pub fn transitive_object_property(property: ObjectPropertyExpression) -> Self

Create a transitive object property axiom without annotations.

Source

pub fn functional_data_property(property: Iri<String>) -> Self

Create a functional data property axiom without annotations.

Source

pub fn annotations(&self) -> &AxiomAnnotations<L, B>

Return this axiom’s annotations.

Source

pub fn with_annotations(self, new_annotations: AxiomAnnotations<L, B>) -> Self

Replace this axiom’s annotations, preserving its structural operands.

Source§

impl<L, B> Axiom<L, B>

Source

pub fn object_property_domain( property: ObjectPropertyExpression, domain: ClassExpression, ) -> Self

Create an object property domain axiom without annotations.

Source

pub fn equivalent_object_properties( properties: Vec<ObjectPropertyExpression>, ) -> Result<Self, StructuralModelError>

Create equivalent object property expressions without annotations.

§Errors

Returns StructuralModelError::InvalidFormat for fewer than two properties.

Source

pub fn disjoint_object_properties( properties: Vec<ObjectPropertyExpression>, ) -> Result<Self, StructuralModelError>

Create pairwise disjoint object property expressions without annotations.

§Errors

Returns StructuralModelError::InvalidFormat for fewer than two properties.

Source

pub fn inverse_object_properties( first: ObjectPropertyExpression, second: ObjectPropertyExpression, ) -> Self

Create two inverse object property expressions without annotations.

Source

pub fn object_property_range( property: ObjectPropertyExpression, range: ClassExpression, ) -> Self

Create an object property range without annotations.

Source

pub fn sub_data_property_of( sub_property: Iri<String>, super_property: Iri<String>, ) -> Self

Create a data subproperty inclusion without annotations.

Source

pub fn equivalent_data_properties( properties: Vec<Iri<String>>, ) -> Result<Self, StructuralModelError>

Create equivalent data properties without annotations.

§Errors

Returns StructuralModelError::InvalidFormat for fewer than two properties.

Source

pub fn disjoint_data_properties( properties: Vec<Iri<String>>, ) -> Result<Self, StructuralModelError>

Create pairwise disjoint data properties without annotations.

§Errors

Returns StructuralModelError::InvalidFormat for fewer than two properties.

Source

pub fn data_property_domain( property: Iri<String>, domain: ClassExpression, ) -> Self

Create a data property domain without annotations.

Source

pub fn data_property_range(property: Iri<String>, range: DataRange<L>) -> Self

Create a data property range without annotations.

Source

pub fn datatype_definition(datatype: Iri<String>, range: DataRange<L>) -> Self

Create a datatype definition without annotations.

Source

pub fn has_key(class: ClassExpression, properties: KeyProperties) -> Self

Create an object/data property key for instances of a class expression without annotations.

Trait Implementations§

Source§

impl<L: Clone, B: Clone> Clone for Axiom<L, B>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<L: Debug, B: Debug> Debug for Axiom<L, B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, L, B> Deserialize<'de> for Axiom<L, B>
where L: Deserialize<'de>, B: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<L: Eq, B: Eq> Eq for Axiom<L, B>

Source§

impl<L: Hash, B: Hash> Hash for Axiom<L, B>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<L: PartialEq, B: PartialEq> PartialEq for Axiom<L, B>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<L, B> Serialize for Axiom<L, B>
where L: Serialize, B: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<L: PartialEq, B: PartialEq> StructuralPartialEq for Axiom<L, B>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.