Slot: apply_to
Used to extend class or slot definitions. For example, if we have a core schema where a gene has two slots for identifier and symbol, and we have a specialized schema for my_organism where we wish to add a slot systematic_name, we can avoid subclassing by defining a class gene_my_organism, adding the slot to this class, and then adding an apply_to pointing to the gene class. The new slot will be ‘injected into’ the gene class.
- Names in code:
applyTo(Scala, Java),apply_to(TypeScript, Python, Rust, GraphQL) - URI:
linkml:apply_to(https://w3id.org/linkml/apply_to) - Range: definition
- Cardinality: 0..*
Where you can use it
Section titled “Where you can use it”- In a class, under:
- In a slot, under:
- In an enum, under:
enumsof the schemaenum_rangeof a slot or a slot expression
Classes
Section titled “Classes”Classes that have this slot, with the range and cardinality it has in each.
| Class | Range | Cardinality |
|---|---|---|
| class_definition | class_definition (reference) | 0..* |
| slot_definition | slot_definition (reference) | 0..* |
| definition | definition (reference) | 0..* |