Slot: extra_slots
How a class instance handles extra data not specified in the class definition. Note that this does not define the constraints that are placed on additional slots defined by inheriting classes.
Possible values:
-
allowed: true- allow all additional data -
allowed: false(orallowed:orallowed: nullwhilerange_expressionisnull) - forbid all additional data (default) -
range_expression: ...- allow additional data if it matches the slot expression (see examples) -
Names in code:
extraSlots(Scala, Java),extra_slots(TypeScript, Python, Rust, GraphQL) -
URI:
linkml:extra_slots(https://w3id.org/linkml/extra_slots) -
Range: extra_slots_expression
-
Cardinality: 0..1
-
Subsets: SpecificationSubset, BasicSubset
Where you can use it
Section titled “Where you can use it”- In a class, under:
Classes
Section titled “Classes”Classes that have this slot, with the range and cardinality it has in each.
| Class | Range | Cardinality |
|---|---|---|
| class_definition | extra_slots_expression | 0..1 |