Slot: exactly_one_of
holds if only one of the expressions hold
- Names in code:
exactlyOneOf(Scala, Java),exactly_one_of(TypeScript, Python, Rust, GraphQL) - URI:
linkml:exactly_one_of(https://w3id.org/linkml/exactly_one_of) - Range: expression
- Cardinality: 0..1
- Parent: boolean_slot
- Exact mappings:
sh:xone - See also:
linkml:docs/specification/05validation/#rules - Subsets: SpecificationSubset
Where you can use it
Section titled “Where you can use it”- In a class, under:
- In a slot, under:
- In a type, under:
typesof the schema
- In a class expression, under:
- In a slot expression, under:
- In a type expression, under:
any_of,exactly_one_of,none_oforall_ofof a type or a type expression
- In path_expression, under:
path_ruleof a slotany_of,exactly_one_of,none_of,all_oforfollowed_byof path_expression
Classes
Section titled “Classes”Classes that have this slot, with the range and cardinality it has in each.
| Class | Range | Cardinality |
|---|---|---|
| class_expression | anonymous_class_expression | 0..* |
| path_expression | path_expression | 0..* |
| slot_expression | anonymous_slot_expression | 0..* |
| type_expression | anonymous_type_expression | 0..* |