text: # Auto generated from .yaml by pythongen.py version:
  # Generation date:
  # Schema: mappings
  #
  # id: https://w3id.org/biolink/biolinkml/mappings
  # description: Biolink model for mappings
  # license: https://creativecommons.org/publicdomain/zero/1.0/
  
  import dataclasses
  import sys
  from typing import Optional, List, Union, Dict, ClassVar, Any
  from dataclasses import dataclass
  from biolinkml.utils.slot import Slot
  from biolinkml.utils.metamodelcore import empty_list, empty_dict, bnode
  from biolinkml.utils.yamlutils import YAMLRoot, extended_str, extended_float, extended_int
  if sys.version_info < (3, 7, 6):
      from biolinkml.utils.dataclass_extensions_375 import dataclasses_init_fn_with_kwargs
  else:
      from biolinkml.utils.dataclass_extensions_376 import dataclasses_init_fn_with_kwargs
  from biolinkml.utils.formatutils import camelcase, underscore, sfx
  from rdflib import Namespace, URIRef
  from biolinkml.utils.curienamespace import CurieNamespace
  from biolinkml.utils.metamodelcore import URIorCURIE
  from includes.types import Uriorcurie
  
  metamodel_version = "1.5.3"
  
  # Overwrite dataclasses _init_fn to add **kwargs in __init__
  dataclasses._init_fn = dataclasses_init_fn_with_kwargs
  
  # Namespaces
  IAO = CurieNamespace('IAO', 'http://purl.obolibrary.org/obo/IAO_')
  OIO = CurieNamespace('OIO', 'http://www.geneontology.org/formats/oboInOwl#')
  BIOLINKML = CurieNamespace('biolinkml', 'https://w3id.org/biolink/biolinkml/')
  META = CurieNamespace('meta', 'https://w3id.org/biolink/biolinkml/meta/')
  METATYPE = CurieNamespace('metatype', 'https://w3id.org/biolink/biolinkml/meta/types/')
  RDF = CurieNamespace('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#')
  RDFS = CurieNamespace('rdfs', 'http://www.w3.org/2000/01/rdf-schema#')
  SKOS = CurieNamespace('skos', 'http://www.w3.org/2004/02/skos/core#')
  XSD = CurieNamespace('xsd', 'http://www.w3.org/2001/XMLSchema#')
  DEFAULT_ = META
  
  
  # Types
  
  # Class references
  
  
  
  
  
  # Slots
  class slots:
      pass
  
  slots.mappings = Slot(uri=SKOS.mappingRelation, name="mappings", curie=SKOS.curie('mappingRelation'),
                        model_uri=META.mappings, domain=None, range=List[Union[str, URIorCURIE]])
  
  slots.exact_mappings = Slot(uri=SKOS.exactMatch, name="exact mappings", curie=SKOS.curie('exactMatch'),
                        model_uri=META.exact_mappings, domain=None, range=List[Union[str, URIorCURIE]])
  
  slots.close_mappings = Slot(uri=SKOS.closeMatch, name="close mappings", curie=SKOS.curie('closeMatch'),
                        model_uri=META.close_mappings, domain=None, range=List[Union[str, URIorCURIE]])
  
  slots.related_mappings = Slot(uri=SKOS.relatedMatch, name="related mappings", curie=SKOS.curie('relatedMatch'),
                        model_uri=META.related_mappings, domain=None, range=List[Union[str, URIorCURIE]])
  
  slots.deprecated_element_has_exact_replacement = Slot(uri=META.deprecated_element_has_exact_replacement, name="deprecated element has exact replacement", curie=META.curie('deprecated_element_has_exact_replacement'),
                        model_uri=META.deprecated_element_has_exact_replacement, domain=None, range=Optional[Union[str, URIorCURIE]], mappings = [IAO["0100001"]])
  
  slots.deprecated_element_has_possible_replacement = Slot(uri=META.deprecated_element_has_possible_replacement, name="deprecated element has possible replacement", curie=META.curie('deprecated_element_has_possible_replacement'),
                        model_uri=META.deprecated_element_has_possible_replacement, domain=None, range=Optional[Union[str, URIorCURIE]], mappings = [OIO.consider])