Skip to content

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..*

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..*