Class: class_definition
an element whose instances are complex objects that may have slot-value assignments
- Canonical name:
ClassDefinition - Other names: table, record, template, message, observation
- Names in code:
ClassDefinition(Scala, TypeScript, Python, Java, Rust, GraphQL) - URI:
linkml:ClassDefinition(https://w3id.org/linkml/ClassDefinition) - Parent: definition
- Mixins: class_expression
- Close mappings:
owl:Class - Subsets: SpecificationSubset, MinimalSubset, BasicSubset, RelationalModelProfile, ObjectOrientedProfile, OwlProfile
Inheritance
Section titled “Inheritance”- element
- definition
- class_definition
- definition
Own slots
Section titled “Own slots”-
IRI (URI) of the class that provides a semantic interpretation of the element in a linked data context. The IRI may come from any namespace and may be shared between schemas
-
The alternative name to be used in serializations of an instance instead of the canonical name.
-
Indicates that this is the Container class which forms the root of the serialized document structure in tree serializations
-
defining_slots · list of slot_definition (reference)
The combination of is a plus defining slots form a genus-differentia definition, or the set of necessary and sufficient conditions that can be transformed into an OWL equivalence axiom
-
children_are_mutually_disjoint · boolean
If true then all direct is_a children are mutually disjoint and share no instances in common
-
classification_rules · list of anonymous_class_expression
The collection of classification rules that apply to all members of this class. Classification rules allow for automatically assigning the instantiated type of an instance.
-
disjoint_with · list of class_definition (reference)
Two classes are disjoint if they have no instances in common, two slots are disjoint if they can never hold between the same two instances
-
extra_slots · extra_slots_expression
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.
-
represents_relationship · boolean
true if this class represents a relationship rather than an entity
-
rules · list of class_rule
the collection of rules that apply to all members of this class
-
if true then induced/mangled slot names are not created for class_usage and attributes
-
union_of · list of class_definition (reference)
indicates that the domain element consists exactly of the members of the element in the range.
-
unique_keys · list of unique_key
A collection of named unique keys for this class. Such unique keys may be spread over several slots, which is why they are also called “compound keys”. A unique key uniquely identifies instances of the class within a given container, meaning there cannot be two (or more) instances of the class with the same values for all the slots that make up the unique key.
-
slots · list of slot_definition (reference)
collection of slot names that are applicable to a class
-
slot_usage · list of slot_definition
the refinement of a slot in the context of the containing class definition.
-
attributes · list of slot_definition
Inline definition of slots
-
DEPRECATED – rdfs:subClassOf to be emitted in OWL generation
-
slot_conditions · list of slot_definition
expresses constraints on a group of slots for a class expression
-
any_of · list of anonymous_class_expression
holds if at least one of the expressions hold
-
exactly_one_of · list of anonymous_class_expression
holds if only one of the expressions hold
-
none_of · list of anonymous_class_expression
holds if none of the expressions hold
-
all_of · list of anonymous_class_expression
holds if all of the expressions hold
-
is_a · class_definition (reference)
A primary parent class from which inheritable metaslots are propagated
-
mixins · list of class_definition (reference)
A collection of secondary parent mixin classes from which inheritable metaslots are propagated
-
apply_to · list of class_definition (reference)
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.
-
Indicates the class or slot cannot be directly instantiated and is intended for grouping purposes.
-
Indicates the class or slot is intended to be inherited from without being an is_a parent. mixins should not be inherited from using is_a, except by other mixins.
-
Used on a slot that stores the string serialization of the containing object. The syntax follows python formatted strings, with slot names enclosed in {}s. These are expanded using the values of those slots. We call the slot with the serialization the s-slot, the slots used in the {}s are v-slots. If both s-slots and v-slots are populated on an object then the value of the s-slot should correspond to the expansion. Implementations of frameworks may choose to use this property to either (a) PARSE: implement automated normalizations by parsing denormalized strings into complex objects (b) GENERATE: implement automated to_string labeling of complex objects For example, a Measurement class may have 3 fields: unit, value, and string_value. The string_value slot may have a string_serialization of {value}{unit} such that if unit=cm and value=2, the value of string_value shouldd be 2cm
-
values_from · list of uriorcurie
The identifier of a “value set” – a set of identifiers that form the possible values for the range of a slot. Note: this is different than ‘subproperty_of’ in that ‘subproperty_of’ is intended to be a single ontology term while ‘values_from’ is the identifier of an entire value set. Additionally, this is different than an enumeration in that in an enumeration, the values of the enumeration are listed directly in the model itself. Setting this property on a slot does not guarantee an expansion of the ontological hierarchy into an enumerated list of possible values in every serialization of the model.
-
name (identifier) · string · required
the unique name of the element within the context of the schema. Name is combined with the default prefix to form the globally unique subject of the target class.
-
An established standard to which the element conforms.
-
The native IRI (URI) of the element. This is always within the namespace of the containing schema. Contrast with the assigned IRI, via class_uri or slot_uri
-
implements · list of uriorcurie
An element in another schema which this element conforms to. The referenced element is not imported into the schema for the implementing element. However, the referenced schema may be used to check conformance of the implementing element.
-
instantiates · list of uriorcurie
An element in another schema which this element instantiates.
-
local_names · list of local_name
Attributed labels of an element
-
id_prefixes · list of ncname
An allowed list of prefixes for which identifiers must conform. The identifier of this class or slot must begin with the URIs referenced by this prefix
-
id_prefixes_are_closed · boolean
If true, then the id_prefixes slot is treated as being closed, and any use of an id that does not have this prefix is considered a violation.
-
extensions · list of extension
a tag/text tuple attached to an arbitrary element
-
annotations · list of annotation
a collection of tag/text tuples with the semantics of OWL Annotation
-
A concise human-readable display label for the element. The title should mirror the name, and should use ordinary textual punctuation.
-
a textual description of the element’s purpose and use
-
the relative order in which the element occurs, lower values are given precedence
-
aliases · list of langstring
Alternate names/labels for the element. These do not alter the semantics of the schema, but may be useful to support search and alignment.
-
alt_descriptions · list of alt_description
A sourced alternative description for an element
-
broad_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have broader meaning.
-
categories · list of uriorcurie
Controlled terms used to categorize an element.
-
close_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have close meaning.
-
comments · list of langstring
notes and comments about an element intended primarily for external consumption
-
contributors · list of uriorcurie
agent that contributed to the element
-
agent that created the element
-
time at which the element was created
-
Description of why and when this element will no longer be used
-
deprecated_element_has_exact_replacement · uriorcurie
When an element is deprecated, it can be automatically replaced by this uri or curie
-
deprecated_element_has_possible_replacement · uriorcurie
When an element is deprecated, it can be potentially replaced by this uri or curie
-
exact_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have identical meaning.
-
example usages of an element
-
id of the schema that defined the element
-
the imports entry that this element was derived from. Empty means primary source
-
the primary language used in the sources
-
keywords · list of langstring
Keywords or tags used to describe the element
-
time at which the element was last updated
-
mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have comparable meaning. These may include terms that are precisely equivalent, broader or narrower in meaning, or otherwise semantically related but not equivalent from a strict ontological perspective.
-
agent that modified the element
-
narrow_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have narrower meaning.
-
notes · list of langstring
editorial notes about an element intended primarily for internal consumption
-
related_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have related meaning.
-
see_also · list of uriorcurie
A list of related entities or URLs that may be of relevance
-
A related resource from which the element is derived.
-
status of the element
-
structured_aliases · list of structured_alias
A list of structured_alias objects, used to provide aliases in conjunction with additional metadata.
-
Outstanding issues that needs resolution
-
in_subset · list of subset_definition (reference)
used to indicate membership of a term in a defined subset of terms used for a particular domain or application.
Usages
Section titled “Usages”| Used by | Slot | Cardinality |
|---|---|---|
| schema_definition | classes | 0..* |
| class_definition | is_a | 0..1 |
| class_definition | mixins | 0..* |
| class_definition | apply_to | 0..* |
| class_definition | disjoint_with | 0..* |
| class_definition | union_of | 0..* |
| slot_definition | domain | 0..1 |
| slot_definition | domain_of | 0..* |
| anonymous_class_expression | is_a | 0..1 |
| function_definition | errors | 0..* |
| function_definition | parameters | 0..1 |