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.

URI: linkml:apply_to

Applicable Classes

Name Description Modifies Slot
Definition abstract base class for core metaclasses no
EnumDefinition an element whose instances must be drawn from a specified set of permissible ... no
SlotDefinition an element that describes how instances are related to other instances yes
ClassDefinition an element whose instances are complex objects that may have slot-value assig... yes

Properties

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/linkml/meta

LinkML Source

name: apply_to
description: 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.
from_schema: https://w3id.org/linkml/meta
status: testing
rank: 1000
domain: definition
multivalued: true
alias: apply_to
domain_of:
- definition
range: definition