name: annotations_test
id: http://example.org/tests/issue167b
imports:
- linkml:annotations
- linkml:types
- linkml:extensions
license: https://creativecommons.org/publicdomain/zero/1.0/
prefixes:
  ex:
    prefix_prefix: ex
    prefix_reference: http://example.org/
  linkml:
    prefix_prefix: linkml
    prefix_reference: https://w3id.org/linkml/
emit_prefixes:
- linkml
default_curi_maps:
- semweb_context
default_prefix: ex
default_range: string
types:
  string:
    name: string
    definition_uri: https://w3id.org/linkml/String
    description: A character string
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: str
    uri: xsd:string
  integer:
    name: integer
    definition_uri: https://w3id.org/linkml/Integer
    description: An integer
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: int
    uri: xsd:integer
  boolean:
    name: boolean
    definition_uri: https://w3id.org/linkml/Boolean
    description: A binary (true or false) value
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: Bool
    uri: xsd:boolean
    repr: bool
  float:
    name: float
    definition_uri: https://w3id.org/linkml/Float
    description: A real number that conforms to the xsd:float specification
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: float
    uri: xsd:float
  double:
    name: double
    definition_uri: https://w3id.org/linkml/Double
    description: A real number that conforms to the xsd:double specification
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: float
    uri: xsd:double
  decimal:
    name: decimal
    definition_uri: https://w3id.org/linkml/Decimal
    description: A real number with arbitrary precision that conforms to the xsd:decimal
      specification
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: Decimal
    uri: xsd:decimal
  time:
    name: time
    definition_uri: https://w3id.org/linkml/Time
    description: A time object represents a (local) time of day, independent of any
      particular day
    notes:
    - URI is dateTime because OWL reasoners don't work with straight date or time
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: XSDTime
    uri: xsd:dateTime
    repr: str
  date:
    name: date
    definition_uri: https://w3id.org/linkml/Date
    description: a date (year, month and day) in an idealized calendar
    notes:
    - URI is dateTime because OWL reasoners don't work with straight date or time
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: XSDDate
    uri: xsd:date
    repr: str
  datetime:
    name: datetime
    definition_uri: https://w3id.org/linkml/Datetime
    description: The combination of a date and time
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: XSDDateTime
    uri: xsd:dateTime
    repr: str
  uriorcurie:
    name: uriorcurie
    definition_uri: https://w3id.org/linkml/Uriorcurie
    description: a URI or a CURIE
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: URIorCURIE
    uri: xsd:anyURI
    repr: str
  uri:
    name: uri
    definition_uri: https://w3id.org/linkml/Uri
    description: a complete URI
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: URI
    uri: xsd:anyURI
    repr: str
  ncname:
    name: ncname
    definition_uri: https://w3id.org/linkml/Ncname
    description: Prefix part of CURIE
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: NCName
    uri: xsd:string
    repr: str
  objectidentifier:
    name: objectidentifier
    definition_uri: https://w3id.org/linkml/Objectidentifier
    description: A URI or CURIE that represents an object in the model.
    comments:
    - Used for inheritence and type checking
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: ElementIdentifier
    uri: shex:iri
    repr: str
  nodeidentifier:
    name: nodeidentifier
    definition_uri: https://w3id.org/linkml/Nodeidentifier
    description: A URI, CURIE or BNODE that represents a node in a model.
    from_schema: https://w3id.org/linkml/types
    imported_from: linkml:types
    base: NodeIdentifier
    uri: shex:nonLiteral
    repr: str
slots:
  annotations:
    name: annotations
    definition_uri: https://w3id.org/linkml/annotations
    description: a collection of tag/text tuples with the semantics of OWL Annotation
    from_schema: https://w3id.org/linkml/annotations
    imported_from: linkml:annotations
    is_a: extensions
    domain: annotatable
    slot_uri: linkml:annotations
    multivalued: true
    inlined: true
    owner: annotation
    domain_of:
    - annotatable
    - annotation
    range: annotation
  extensions:
    name: extensions
    definition_uri: https://w3id.org/linkml/extensions
    description: a tag/text tuple attached to an arbitrary element
    from_schema: https://w3id.org/linkml/extensions
    imported_from: linkml:extensions
    domain: extensible
    slot_uri: linkml:extensions
    multivalued: true
    inlined: true
    owner: extensible
    domain_of:
    - extension
    - extensible
    range: extension
  extension_tag:
    name: extension_tag
    definition_uri: https://w3id.org/linkml/extension_tag
    description: a tag associated with an extension
    from_schema: https://w3id.org/linkml/extensions
    imported_from: linkml:extensions
    domain: extension
    slot_uri: linkml:tag
    key: true
    alias: tag
    owner: extension
    domain_of:
    - extension
    range: uriorcurie
    required: true
  extension_value:
    name: extension_value
    definition_uri: https://w3id.org/linkml/extension_value
    description: the actual annotation
    from_schema: https://w3id.org/linkml/extensions
    imported_from: linkml:extensions
    domain: extension
    slot_uri: linkml:value
    alias: value
    owner: extension
    domain_of:
    - extension
    range: string
    required: true
classes:
  my class:
    name: my class
    definition_uri: http://example.org/MyClass
    annotations:
      SKOS:prefLabel:
        tag: SKOS:prefLabel
        value: a label
      altLabel:
        tag: altLabel
        value: some other label
    description: Annotations as tag value pairs. Note that altLabel is defined in
      the default namespace, not in the SKOS namespace
    from_schema: http://example.org/tests/issue167b
    class_uri: ex:MyClass
  my class 2:
    name: my class 2
    definition_uri: http://example.org/MyClass2
    annotations:
      prefLabel:
        tag: prefLabel
        value: a preferred label
        annotations:
          source:
            tag: source
            value: PMID:12345
    description: -> This form of annotations is a tag/value format, which allows annotations
      to be annotated.  Note, however, that the annotation source is NOT a CURIE,
      rather just a string.
    from_schema: http://example.org/tests/issue167b
    class_uri: ex:MyClass2
  annotatable:
    name: annotatable
    definition_uri: https://w3id.org/linkml/Annotatable
    description: mixin for classes that support annotations
    from_schema: https://w3id.org/linkml/annotations
    imported_from: linkml:annotations
    mixin: true
    slots:
    - annotations
    class_uri: linkml:Annotatable
  annotation:
    name: annotation
    definition_uri: https://w3id.org/linkml/Annotation
    description: a tag/value pair with the semantics of OWL Annotation
    from_schema: https://w3id.org/linkml/annotations
    imported_from: linkml:annotations
    is_a: extension
    mixins:
    - annotatable
    slots:
    - extension_tag
    - extension_value
    - extensions
    - annotations
    class_uri: linkml:Annotation
  extension:
    name: extension
    definition_uri: https://w3id.org/linkml/Extension
    description: a tag/value pair used to add non-model information to an entry
    from_schema: https://w3id.org/linkml/extensions
    imported_from: linkml:extensions
    slots:
    - extension_tag
    - extension_value
    - extensions
    class_uri: linkml:Extension
  extensible:
    name: extensible
    definition_uri: https://w3id.org/linkml/Extensible
    description: mixin for classes that support extension
    from_schema: https://w3id.org/linkml/extensions
    imported_from: linkml:extensions
    mixin: true
    slots:
    - extensions
    class_uri: linkml:Extensible
metamodel_version: 1.7.0
source_file: issue_167b.yaml
source_file_date: '2022-01-05T01:06:03'
source_file_size: 818
generation_date: '2022-01-05T01:11:11'
