Skip to content

Class: schema_definition

A collection of definitions that make up a schema or a data model.

  • id · uri · required

    The official schema URI

  • prefixes · list of prefix

    A collection of prefix expansions that specify how CURIEs can be expanded to URIs

  • default_prefix · string

    The prefix that is used for all elements within a schema

  • default_range · type_definition (reference)

    default slot range to be used if range element is omitted from a slot definition

  • settings · list of setting

    A collection of global variable settings

  • imports · list of uriorcurie

    A list of schemas that are to be included in this schema

  • license · string

    license for the schema

  • generation_date · datetime

    date and time that the schema was loaded/generated

  • source_file · string

    name, uri or description of the source of the schema

  • source_file_date · datetime

    modification date of the source of the schema

  • source_file_size · integer

    size in bytes of the source of the schema

  • version · string

    particular version of schema

  • bindings · list of enum_binding

    A collection of enum bindings that specify how a slot can be bound to a permissible value from an enumeration. LinkML provides enums to allow string values to be restricted to one of a set of permissible values (specified statically or dynamically). Enum bindings allow enums to be bound to any object, including complex nested objects. For example, given a (generic) class Concept with slots id and label, it may be desirable to restrict the values the id takes on in a given context. For example, a HumanSample class may have a slot for representing sample site, with a range of concept, but the values of that slot may be restricted to concepts from a particular branch of an anatomy ontology.

  • default_curi_maps · list of string

    ordered list of prefixcommon biocontexts to be fetched to resolve id prefixes and inline prefix variables

  • emit_prefixes · list of ncname

    a list of Curie prefixes that are used in the representation of instances of the model. All prefixes in this list are added to the prefix sections of the target models.

  • metamodel_version · string

    Version of the metamodel used to load the schema

  • slot_names_unique · boolean

    if true then induced/mangled slot names are not created for class_usage and attributes

  • classes · list of class_definition

    An index to the collection of all class definitions in the schema

  • enums · list of enum_definition

    An index to the collection of all enum definitions in the schema

  • types · list of type_definition

    An index to the collection of all type definitions in the schema

  • slot_definitions (slots in data) · list of slot_definition

    An index to the collection of all slot definitions in the schema

  • subsets · list of subset_definition

    An index to the collection of all subset definitions in the schema

  • functions · list of function_definition

    The functions defined in the schema

  • name (identifier) · ncname · required

    a unique name for the schema that is both human-readable and consists of only characters from the NCName set

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