Skip to content

Commit

Permalink
Merge pull request #277 from linkml/linkml-model-1.6.0
Browse files Browse the repository at this point in the history
Update linkml-model to 1.6.0
  • Loading branch information
cmungall authored Sep 28, 2023
2 parents 122ddb9 + f25abe8 commit 91b7baa
Show file tree
Hide file tree
Showing 71 changed files with 31,245 additions and 1,875 deletions.
9 changes: 9 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://docs.codecov.com/docs/codecov-yaml
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true
13 changes: 8 additions & 5 deletions linkml_runtime/linkml_model/annotations.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Auto generated from annotations.yaml by pythongen.py version: 0.9.0
# Generation date: 2022-07-14T00:57:14
# Generation date: 2023-09-01T13:21:10
# Schema: annotations
#
# id: https://w3id.org/linkml/annotations
# description: Annotations mixin
# license: https://creativecommons.org/publicdomain/zero/1.0/

import dataclasses
import sys
import re
from jsonasobj2 import JsonObj, as_dict
from typing import Optional, List, Union, Dict, ClassVar, Any
Expand All @@ -21,8 +20,8 @@
from linkml_runtime.utils.enumerations import EnumDefinitionImpl
from rdflib import Namespace, URIRef
from linkml_runtime.utils.curienamespace import CurieNamespace
from .extensions import Extension, ExtensionTag
from .types import String, Uriorcurie
from .extensions import AnyValue, Extension, ExtensionTag
from .types import Uriorcurie
from linkml_runtime.utils.metamodelcore import URIorCURIE

metamodel_version = "1.7.0"
Expand Down Expand Up @@ -76,7 +75,7 @@ class Annotation(Extension):
class_model_uri: ClassVar[URIRef] = LINKML.Annotation

tag: Union[str, AnnotationTag] = None
value: str = None
value: Union[dict, AnyValue] = None
annotations: Optional[Union[Dict[Union[str, AnnotationTag], Union[dict, "Annotation"]], List[Union[dict, "Annotation"]]]] = empty_dict()

def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
Expand All @@ -94,4 +93,8 @@ def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):


# Slots
class slots:
pass

slots.annotations = Slot(uri=LINKML.annotations, name="annotations", curie=LINKML.curie('annotations'),
model_uri=LINKML.annotations, domain=None, range=Optional[Union[Dict[Union[str, AnnotationTag], Union[dict, "Annotation"]], List[Union[dict, "Annotation"]]]])
Loading

0 comments on commit 91b7baa

Please sign in to comment.