-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
120 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from enum import Enum | ||
|
||
|
||
class AccessService(Enum): | ||
TRE_SDE = "TRE/SDE" | ||
DIRECT_ACCESS = "Direct access" | ||
OPEN_ACCESS = "Open access" | ||
VARIED = "Varies based on project" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Optional | ||
from pydantic import Field | ||
from hdr_schemata.definitions.HDRUK import CommaSeparatedValues | ||
|
||
|
||
from hdr_schemata.models.GWDM.v1_1 import Access as BaseAccess | ||
|
||
|
||
class Access(BaseAccess): | ||
accessServiceCategory = Optional[CommaSeparatedValues] = Field( | ||
None, | ||
description="Where access to data come from: TRE/SED, direct access, open acccess, varies based on project.", | ||
example="", | ||
title="Access/governance requirementss", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from pydantic import Field | ||
from hdr_schemata.definitions.HDRUK import * | ||
|
||
from hdr_schemata.models.GWDM.v1_1 import Accessibility as BaseAccessibility | ||
from .Access import Access | ||
|
||
|
||
class Accessibility(BaseAccessibility): | ||
access: Access = Field( | ||
..., | ||
description="This section includes information about data access", | ||
title="Access", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from typing import Optional, List | ||
from pydantic import Field | ||
from hdr_schemata.definitions.HDRUK import AccessService | ||
|
||
from hdr_schemata.models.GWDM.v1_1 import Access as BaseAccess | ||
|
||
|
||
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", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from typing import Optional | ||
from pydantic import BaseModel, Field | ||
from hdr_schemata.definitions.HDRUK import * | ||
|
||
from .Usage import Usage | ||
from .Access import Access | ||
from .FormatAndStandards import FormatAndStandards | ||
|
||
class Accessibility(BaseModel): | ||
class Config: | ||
extra = 'forbid' | ||
|
||
usage: Optional[Usage] = Field( | ||
None, | ||
description='This section includes information about how the data can be used and how it is currently being used', | ||
title='Usage', | ||
) | ||
access: Access = Field( | ||
..., | ||
description='This section includes information about data access', | ||
title='Access', | ||
) | ||
formatAndStandards: Optional[FormatAndStandards] = Field( | ||
None, | ||
description='Section includes technical attributes for language vocabularies, sizes etc. and gives researchers facts about and processing the underlying data in the dataset.', | ||
title='Format and Standards', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters