Skip to content

Commit

Permalink
add 2.2.1 annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Mar 20, 2024
1 parent 74e698f commit 2a9fa0e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 13 deletions.
10 changes: 6 additions & 4 deletions hdr_schemata/models/HDRUK/v2_2_1/Access.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
from hdr_schemata.models.HDRUK.v2_2_0 import Access as BaseAccess


from .annotations import annotations

an = annotations.accessibility.access


class Access(BaseAccess):
accessServiceCategory: Optional[List[AccessService]] = Field(
None,
description="Where access to data come from: TRE/SED, direct access, open acccess, varies based on project.",
example="",
title="Access/governance requirementss",
None, **an.accessServiceCategory.__dict__
)
10 changes: 5 additions & 5 deletions hdr_schemata/models/HDRUK/v2_2_1/Accessibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from hdr_schemata.models.HDRUK.v2_2_0 import Accessibility as BaseAccessibility
from .Access import Access

from .annotations import annotations

an = annotations.accessibility


class Accessibility(BaseAccessibility):
access: Access = Field(
...,
description="This section includes information about data access",
title="Access",
)
access: Access = Field(..., description=an.description, title=an.title)
9 changes: 5 additions & 4 deletions hdr_schemata/models/HDRUK/v2_2_1/EnrichmentAndLinkage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

from hdr_schemata.definitions.HDRUK import Url

from .annotations import annotations

an = annotations.enrichmentAndLinkage


class EnrichmentAndLinkage(BaseEnrichmentAndLinkage):
syntheticDataWebLink: Optional[List[Url]] = Field(
None,
description="Links to locations of information and or raw downloads of synthetic data associated with this dataset",
example="",
title="Synthetic Data Web Links",
None, **an.syntheticDataWebLink.__dict__
)
5 changes: 5 additions & 0 deletions hdr_schemata/models/HDRUK/v2_2_1/annotations/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from hdr_schemata.models.annotations import get_annotations
from hdr_schemata.models.HDRUK.v2_2_0.annotations import annotations
import os

annotations = get_annotations(os.path.dirname(os.path.abspath(__file__)), annotations)
12 changes: 12 additions & 0 deletions hdr_schemata/models/HDRUK/v2_2_1/annotations/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
accessibility:
access:
accessServiceCategory:
description: "Where access to data come from: TRE/SED, direct access, open acccess, varies based on project."
examples:
- TRE/SDE
title: Access/governance requirements

enrichmentAndLinkage:
syntheticDataWebLink:
description: Links to locations of information and or raw downloads of synthetic data associated with this dataset
title: Synthetic Data Web Links

0 comments on commit 2a9fa0e

Please sign in to comment.