entityeither
Entityeither is a modeling construct used in knowledge representation and data modeling to describe a value or reference that may point to one of two alternative entities. It captures a disjunctive type, akin to a sum type or discriminated union, in which a given instance belongs to exactly one of the two alternatives, or in some cases to at least one if inclusive. In practice, entityeither is represented by a union or choice of two candidate entities, with constraints added to guide how the choice is determined.
In ontology languages and schema design, entityeither can be implemented by combining the two candidate classes
Example usage: a contactableEntity field might be modeled as entityeither(Person, Organization). A value would be a
Applications include data integration, schema evolution, and polymorphic relationships in knowledge bases. Not all systems implement