Skip to content

Class: definition

abstract base class for core metaclasses

  • is_a · definition (reference)

    A primary parent class or slot from which inheritable metaslots are propagated from. While multiple inheritance is not allowed, mixins can be provided effectively providing the same thing. The semantics are the same when translated to formalisms that allow MI (e.g. RDFS/OWL). When translating to a SI framework (e.g. java classes, python classes) then is a is used. When translating a framework without polymorphism (e.g. json-schema, solr document schema) then is a and mixins are recursively unfolded

  • mixins · list of definition (reference)

    A collection of secondary parent classes or slots from which inheritable metaslots are propagated from.

  • apply_to · list of 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.

  • abstract · boolean

    Indicates the class or slot cannot be directly instantiated and is intended for grouping purposes.

  • mixin · boolean

    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.

  • string_serialization · string

    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.

  • conforms_to · string

    An established standard to which the element conforms.

  • definition_uri · uriorcurie

    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.

Used by Slot Cardinality
slot_definition owner 0..1
definition is_a 0..1
definition mixins 0..*
definition apply_to 0..*