Enum horned_owl::model::Axiom
source · pub enum Axiom {
Show 41 variants
OntologyAnnotation(OntologyAnnotation),
Import(Import),
DeclareClass(DeclareClass),
DeclareObjectProperty(DeclareObjectProperty),
DeclareAnnotationProperty(DeclareAnnotationProperty),
DeclareDataProperty(DeclareDataProperty),
DeclareNamedIndividual(DeclareNamedIndividual),
DeclareDatatype(DeclareDatatype),
SubClassOf(SubClassOf),
EquivalentClasses(EquivalentClasses),
DisjointClasses(DisjointClasses),
SubObjectPropertyOf(SubObjectPropertyOf),
EquivalentObjectProperties(EquivalentObjectProperties),
DisjointObjectProperties(DisjointObjectProperties),
InverseObjectProperties(InverseObjectProperties),
ObjectPropertyDomain(ObjectPropertyDomain),
ObjectPropertyRange(ObjectPropertyRange),
FunctionalObjectProperty(FunctionalObjectProperty),
InverseFunctionalObjectProperty(InverseFunctionalObjectProperty),
ReflexiveObjectProperty(ReflexiveObjectProperty),
IrreflexiveObjectProperty(IrreflexiveObjectProperty),
SymmetricObjectProperty(SymmetricObjectProperty),
AsymmetricObjectProperty(AsymmetricObjectProperty),
TransitiveObjectProperty(TransitiveObjectProperty),
SubDataPropertyOf(SubDataPropertyOf),
EquivalentDataProperties(EquivalentDataProperties),
DisjointDataProperties(DisjointDataProperties),
DataPropertyDomain(DataPropertyDomain),
DataPropertyRange(DataPropertyRange),
FunctionalDataProperty(FunctionalDataProperty),
DatatypeDefinition(DatatypeDefinition),
HasKey(HasKey),
SameIndividual(SameIndividual),
DifferentIndividuals(DifferentIndividuals),
ClassAssertion(ClassAssertion),
ObjectPropertyAssertion(ObjectPropertyAssertion),
NegativeObjectPropertyAssertion(NegativeObjectPropertyAssertion),
DataPropertyAssertion(DataPropertyAssertion),
NegativeDataPropertyAssertion(NegativeDataPropertyAssertion),
AnnotationAssertion(AnnotationAssertion),
SubAnnotationPropertyOf(SubAnnotationPropertyOf),
}
Expand description
An axiom
This enum has variants representing the various kinds of
Axiom that can be found in an OWL Ontology. An OWL axiom
maps to three different entities in Horned-OWL. First is a
struct (for example, SubClassOf
) which contains the data
which defines the axiom (i.e. super and sub class for
SubClassOf
). Second, is a variant of the AxiomKind
,
which is used to identify all instances of a particular
kind of axiom (i.e. any SubClassOf
axiom will return an
instance of AxiomKind::SubClassOf). Finally, we have a
variant of this enum, which contains one of the structs
(i.e. Axiom::SubClassOf(SubClassOf)), which is used as a union
type for all structs. The struct and enum variants all
share identical names.
Variants
OntologyAnnotation(OntologyAnnotation)
Import(Import)
DeclareClass(DeclareClass)
DeclareObjectProperty(DeclareObjectProperty)
DeclareAnnotationProperty(DeclareAnnotationProperty)
DeclareDataProperty(DeclareDataProperty)
DeclareNamedIndividual(DeclareNamedIndividual)
DeclareDatatype(DeclareDatatype)
SubClassOf(SubClassOf)
EquivalentClasses(EquivalentClasses)
DisjointClasses(DisjointClasses)
SubObjectPropertyOf(SubObjectPropertyOf)
EquivalentObjectProperties(EquivalentObjectProperties)
DisjointObjectProperties(DisjointObjectProperties)
InverseObjectProperties(InverseObjectProperties)
ObjectPropertyDomain(ObjectPropertyDomain)
ObjectPropertyRange(ObjectPropertyRange)
FunctionalObjectProperty(FunctionalObjectProperty)
InverseFunctionalObjectProperty(InverseFunctionalObjectProperty)
ReflexiveObjectProperty(ReflexiveObjectProperty)
IrreflexiveObjectProperty(IrreflexiveObjectProperty)
SymmetricObjectProperty(SymmetricObjectProperty)
AsymmetricObjectProperty(AsymmetricObjectProperty)
TransitiveObjectProperty(TransitiveObjectProperty)
SubDataPropertyOf(SubDataPropertyOf)
EquivalentDataProperties(EquivalentDataProperties)
DisjointDataProperties(DisjointDataProperties)
DataPropertyDomain(DataPropertyDomain)
DataPropertyRange(DataPropertyRange)
FunctionalDataProperty(FunctionalDataProperty)
DatatypeDefinition(DatatypeDefinition)
HasKey(HasKey)
SameIndividual(SameIndividual)
DifferentIndividuals(DifferentIndividuals)
ClassAssertion(ClassAssertion)
ObjectPropertyAssertion(ObjectPropertyAssertion)
NegativeObjectPropertyAssertion(NegativeObjectPropertyAssertion)
DataPropertyAssertion(DataPropertyAssertion)
NegativeDataPropertyAssertion(NegativeDataPropertyAssertion)
AnnotationAssertion(AnnotationAssertion)
SubAnnotationPropertyOf(SubAnnotationPropertyOf)
Trait Implementations
sourceimpl From<AnnotationAssertion> for Axiom
impl From<AnnotationAssertion> for Axiom
sourcefn from(ax: AnnotationAssertion) -> Axiom
fn from(ax: AnnotationAssertion) -> Axiom
Converts to this type from the input type.
sourceimpl From<AsymmetricObjectProperty> for Axiom
impl From<AsymmetricObjectProperty> for Axiom
sourcefn from(ax: AsymmetricObjectProperty) -> Axiom
fn from(ax: AsymmetricObjectProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<Axiom> for AnnotatedAxiom
impl From<Axiom> for AnnotatedAxiom
sourcefn from(axiom: Axiom) -> AnnotatedAxiom
fn from(axiom: Axiom) -> AnnotatedAxiom
Converts to this type from the input type.
sourceimpl From<ClassAssertion> for Axiom
impl From<ClassAssertion> for Axiom
sourcefn from(ax: ClassAssertion) -> Axiom
fn from(ax: ClassAssertion) -> Axiom
Converts to this type from the input type.
sourceimpl From<DataPropertyAssertion> for Axiom
impl From<DataPropertyAssertion> for Axiom
sourcefn from(ax: DataPropertyAssertion) -> Axiom
fn from(ax: DataPropertyAssertion) -> Axiom
Converts to this type from the input type.
sourceimpl From<DataPropertyDomain> for Axiom
impl From<DataPropertyDomain> for Axiom
sourcefn from(ax: DataPropertyDomain) -> Axiom
fn from(ax: DataPropertyDomain) -> Axiom
Converts to this type from the input type.
sourceimpl From<DataPropertyRange> for Axiom
impl From<DataPropertyRange> for Axiom
sourcefn from(ax: DataPropertyRange) -> Axiom
fn from(ax: DataPropertyRange) -> Axiom
Converts to this type from the input type.
sourceimpl From<DatatypeDefinition> for Axiom
impl From<DatatypeDefinition> for Axiom
sourcefn from(ax: DatatypeDefinition) -> Axiom
fn from(ax: DatatypeDefinition) -> Axiom
Converts to this type from the input type.
sourceimpl From<DeclareAnnotationProperty> for Axiom
impl From<DeclareAnnotationProperty> for Axiom
sourcefn from(ax: DeclareAnnotationProperty) -> Axiom
fn from(ax: DeclareAnnotationProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<DeclareClass> for Axiom
impl From<DeclareClass> for Axiom
sourcefn from(ax: DeclareClass) -> Axiom
fn from(ax: DeclareClass) -> Axiom
Converts to this type from the input type.
sourceimpl From<DeclareDataProperty> for Axiom
impl From<DeclareDataProperty> for Axiom
sourcefn from(ax: DeclareDataProperty) -> Axiom
fn from(ax: DeclareDataProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<DeclareDatatype> for Axiom
impl From<DeclareDatatype> for Axiom
sourcefn from(ax: DeclareDatatype) -> Axiom
fn from(ax: DeclareDatatype) -> Axiom
Converts to this type from the input type.
sourceimpl From<DeclareNamedIndividual> for Axiom
impl From<DeclareNamedIndividual> for Axiom
sourcefn from(ax: DeclareNamedIndividual) -> Axiom
fn from(ax: DeclareNamedIndividual) -> Axiom
Converts to this type from the input type.
sourceimpl From<DeclareObjectProperty> for Axiom
impl From<DeclareObjectProperty> for Axiom
sourcefn from(ax: DeclareObjectProperty) -> Axiom
fn from(ax: DeclareObjectProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<DifferentIndividuals> for Axiom
impl From<DifferentIndividuals> for Axiom
sourcefn from(ax: DifferentIndividuals) -> Axiom
fn from(ax: DifferentIndividuals) -> Axiom
Converts to this type from the input type.
sourceimpl From<DisjointClasses> for Axiom
impl From<DisjointClasses> for Axiom
sourcefn from(ax: DisjointClasses) -> Axiom
fn from(ax: DisjointClasses) -> Axiom
Converts to this type from the input type.
sourceimpl From<DisjointDataProperties> for Axiom
impl From<DisjointDataProperties> for Axiom
sourcefn from(ax: DisjointDataProperties) -> Axiom
fn from(ax: DisjointDataProperties) -> Axiom
Converts to this type from the input type.
sourceimpl From<DisjointObjectProperties> for Axiom
impl From<DisjointObjectProperties> for Axiom
sourcefn from(ax: DisjointObjectProperties) -> Axiom
fn from(ax: DisjointObjectProperties) -> Axiom
Converts to this type from the input type.
sourceimpl From<EquivalentClasses> for Axiom
impl From<EquivalentClasses> for Axiom
sourcefn from(ax: EquivalentClasses) -> Axiom
fn from(ax: EquivalentClasses) -> Axiom
Converts to this type from the input type.
sourceimpl From<EquivalentDataProperties> for Axiom
impl From<EquivalentDataProperties> for Axiom
sourcefn from(ax: EquivalentDataProperties) -> Axiom
fn from(ax: EquivalentDataProperties) -> Axiom
Converts to this type from the input type.
sourceimpl From<EquivalentObjectProperties> for Axiom
impl From<EquivalentObjectProperties> for Axiom
sourcefn from(ax: EquivalentObjectProperties) -> Axiom
fn from(ax: EquivalentObjectProperties) -> Axiom
Converts to this type from the input type.
sourceimpl From<FunctionalDataProperty> for Axiom
impl From<FunctionalDataProperty> for Axiom
sourcefn from(ax: FunctionalDataProperty) -> Axiom
fn from(ax: FunctionalDataProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<FunctionalObjectProperty> for Axiom
impl From<FunctionalObjectProperty> for Axiom
sourcefn from(ax: FunctionalObjectProperty) -> Axiom
fn from(ax: FunctionalObjectProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<InverseFunctionalObjectProperty> for Axiom
impl From<InverseFunctionalObjectProperty> for Axiom
sourcefn from(ax: InverseFunctionalObjectProperty) -> Axiom
fn from(ax: InverseFunctionalObjectProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<InverseObjectProperties> for Axiom
impl From<InverseObjectProperties> for Axiom
sourcefn from(ax: InverseObjectProperties) -> Axiom
fn from(ax: InverseObjectProperties) -> Axiom
Converts to this type from the input type.
sourceimpl From<IrreflexiveObjectProperty> for Axiom
impl From<IrreflexiveObjectProperty> for Axiom
sourcefn from(ax: IrreflexiveObjectProperty) -> Axiom
fn from(ax: IrreflexiveObjectProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<NegativeDataPropertyAssertion> for Axiom
impl From<NegativeDataPropertyAssertion> for Axiom
sourcefn from(ax: NegativeDataPropertyAssertion) -> Axiom
fn from(ax: NegativeDataPropertyAssertion) -> Axiom
Converts to this type from the input type.
sourceimpl From<NegativeObjectPropertyAssertion> for Axiom
impl From<NegativeObjectPropertyAssertion> for Axiom
sourcefn from(ax: NegativeObjectPropertyAssertion) -> Axiom
fn from(ax: NegativeObjectPropertyAssertion) -> Axiom
Converts to this type from the input type.
sourceimpl From<ObjectPropertyAssertion> for Axiom
impl From<ObjectPropertyAssertion> for Axiom
sourcefn from(ax: ObjectPropertyAssertion) -> Axiom
fn from(ax: ObjectPropertyAssertion) -> Axiom
Converts to this type from the input type.
sourceimpl From<ObjectPropertyDomain> for Axiom
impl From<ObjectPropertyDomain> for Axiom
sourcefn from(ax: ObjectPropertyDomain) -> Axiom
fn from(ax: ObjectPropertyDomain) -> Axiom
Converts to this type from the input type.
sourceimpl From<ObjectPropertyRange> for Axiom
impl From<ObjectPropertyRange> for Axiom
sourcefn from(ax: ObjectPropertyRange) -> Axiom
fn from(ax: ObjectPropertyRange) -> Axiom
Converts to this type from the input type.
sourceimpl From<OntologyAnnotation> for Axiom
impl From<OntologyAnnotation> for Axiom
sourcefn from(ax: OntologyAnnotation) -> Axiom
fn from(ax: OntologyAnnotation) -> Axiom
Converts to this type from the input type.
sourceimpl From<ReflexiveObjectProperty> for Axiom
impl From<ReflexiveObjectProperty> for Axiom
sourcefn from(ax: ReflexiveObjectProperty) -> Axiom
fn from(ax: ReflexiveObjectProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<SameIndividual> for Axiom
impl From<SameIndividual> for Axiom
sourcefn from(ax: SameIndividual) -> Axiom
fn from(ax: SameIndividual) -> Axiom
Converts to this type from the input type.
sourceimpl From<SubAnnotationPropertyOf> for Axiom
impl From<SubAnnotationPropertyOf> for Axiom
sourcefn from(ax: SubAnnotationPropertyOf) -> Axiom
fn from(ax: SubAnnotationPropertyOf) -> Axiom
Converts to this type from the input type.
sourceimpl From<SubClassOf> for Axiom
impl From<SubClassOf> for Axiom
sourcefn from(ax: SubClassOf) -> Axiom
fn from(ax: SubClassOf) -> Axiom
Converts to this type from the input type.
sourceimpl From<SubDataPropertyOf> for Axiom
impl From<SubDataPropertyOf> for Axiom
sourcefn from(ax: SubDataPropertyOf) -> Axiom
fn from(ax: SubDataPropertyOf) -> Axiom
Converts to this type from the input type.
sourceimpl From<SubObjectPropertyOf> for Axiom
impl From<SubObjectPropertyOf> for Axiom
sourcefn from(ax: SubObjectPropertyOf) -> Axiom
fn from(ax: SubObjectPropertyOf) -> Axiom
Converts to this type from the input type.
sourceimpl From<SymmetricObjectProperty> for Axiom
impl From<SymmetricObjectProperty> for Axiom
sourcefn from(ax: SymmetricObjectProperty) -> Axiom
fn from(ax: SymmetricObjectProperty) -> Axiom
Converts to this type from the input type.
sourceimpl From<TransitiveObjectProperty> for Axiom
impl From<TransitiveObjectProperty> for Axiom
sourcefn from(ax: TransitiveObjectProperty) -> Axiom
fn from(ax: TransitiveObjectProperty) -> Axiom
Converts to this type from the input type.
sourceimpl Ord for Axiom
impl Ord for Axiom
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Axiom> for Axiom
impl PartialOrd<Axiom> for Axiom
sourcefn partial_cmp(&self, other: &Axiom) -> Option<Ordering>
fn partial_cmp(&self, other: &Axiom) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Axiom
impl StructuralEq for Axiom
impl StructuralPartialEq for Axiom
Auto Trait Implementations
impl RefUnwindSafe for Axiom
impl !Send for Axiom
impl !Sync for Axiom
impl Unpin for Axiom
impl UnwindSafe for Axiom
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more