-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
504c338
commit e45fb57
Showing
11 changed files
with
49 additions
and
16,865 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
# Email: [email protected] | ||
|
||
""" """ | ||
from enum import Enum | ||
from typing import List, Optional | ||
|
||
from pydantic import Field | ||
|
@@ -55,6 +56,17 @@ class EncodedValue(NamedTuple): | |
value: str = None | ||
|
||
|
||
class NoticeSource(str, Enum): | ||
""" | ||
Holds source of notice | ||
""" | ||
STANDARD_FORM = "standard_forms" | ||
ELECTRONIC_FORM = "eforms" | ||
|
||
def __str__(self): | ||
return self.value | ||
|
||
|
||
class NormalisedMetadata(Metadata): | ||
""" | ||
Stores notice normalised metadata | ||
|
@@ -81,7 +93,7 @@ class NormalisedMetadata(Metadata): | |
eforms_subtype: str | ||
xsd_version: Optional[str] | ||
published_in_cellar_counter: int = Field(default=0) | ||
is_eform: Optional[bool] = False | ||
notice_source: Optional[NoticeSource] = NoticeSource.STANDARD_FORM | ||
eform_sdk_version: Optional[str] | ||
|
||
|
||
|
@@ -106,8 +118,10 @@ class NormalisedMetadataView(Metadata): | |
legal_basis_directive: str | ||
form_number: str | ||
eforms_subtype: str | ||
xsd_version: str | ||
xsd_version: Optional[str] | ||
published_in_cellar_counter: int = Field(default=0) | ||
notice_source: Optional[NoticeSource] = NoticeSource.STANDARD_FORM | ||
eform_sdk_version: Optional[str] | ||
|
||
|
||
|
||
|
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
3 changes: 0 additions & 3 deletions
3
..._package4/output/cn_sample_2022_10/2024-OJS015-043489/reports/shacl_validation_report.csv
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.