Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linkml-model to 1.6.0 #277

Merged
merged 4 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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