-
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.
Merge pull request #560 from OP-TED/feature/SWS1-12
Fix issue #549
- Loading branch information
Showing
9 changed files
with
4,767 additions
and
11 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
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
395 changes: 395 additions & 0 deletions
395
tests/test_data/notice_normalisation/ef_html_unsafe_notice.xml
Large diffs are not rendered by default.
Oops, something went wrong.
4,135 changes: 4,135 additions & 0 deletions
4,135
tests/test_data/notice_normalisation/sf_html_unsafe_notice.xml
Large diffs are not rendered by default.
Oops, something went wrong.
70 changes: 70 additions & 0 deletions
70
tests/test_data/notice_packager/wrong_title/metadata_with_wrong_title.json
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,70 @@ | ||
{ | ||
"notice": { | ||
"id": "003545_2021", | ||
"public_number_document": "003545", | ||
"public_number_edition": "2021004" | ||
}, | ||
"mets": { | ||
"languages": [ | ||
"en" | ||
], | ||
"revision": "0", | ||
"type": "create", | ||
"profile": "http://publications.europa.eu/resource/mets/op-sip-profile_002", | ||
"createdate": "2023-03-09T18:28:54.804225", | ||
"document_id": "", | ||
"dmd_id": "dmd_2021_S_004_003545_0_001", | ||
"dmd_mdtype": "OTHER", | ||
"dmd_othermdtype": "INSTANCE", | ||
"dmd_href": "2021_S_004_003545_0.mets.xml.dmd.rdf", | ||
"tmd_id": "tmd_2021_S_004_003545_0_001", | ||
"tmd_href": "2021_S_004_003545_0.tmd.rdf", | ||
"tmd_mdtype": "OTHER", | ||
"tmd_othermdtype": "INSTANCE", | ||
"file_id": "file_2021_S_004_003545_0_001", | ||
"notice_file_href": "2021_S_004_003545_0.notice.rdf", | ||
"notice_file_mimetype": "application/rdf+xml", | ||
"notice_file_checksum": "00e2c0570f2d9f00c71c3d8009b8bec5a530167a01ebb473e67be5e97383cdc5", | ||
"notice_file_checksum_type": "SHA-256" | ||
}, | ||
"work": { | ||
"identifier": "2021_S_004_003545", | ||
"oj_identifier": "JOS_2021_004_R_003545", | ||
"cdm_rdf_type": "procurement_public", | ||
"resource_type": "PROCUREMENT_NOTICE", | ||
"uri": "http://data.europa.eu/a4g/resource/2021/003545_2021", | ||
"do_not_index": "true", | ||
"date_document": "2021-01-07", | ||
"created_by_agent": "EURUN", | ||
"dataset_published_by_agent": "EURUN", | ||
"datetime_transmission": "2023-03-09T18:28:54.806241", | ||
"title": { | ||
"en": "Construction work & planning", | ||
"ro": "Lucrari de constructie <br /> si planificare" | ||
}, | ||
"date_creation": "2023-03-09", | ||
"concept_type_dataset": "TEST_DATA", | ||
"dataset_version": "20230309-0", | ||
"dataset_keyword": [ | ||
"eProcurement", | ||
"notice" | ||
], | ||
"dataset_has_frequency_publication_frequency": "OTHER", | ||
"procurement_public_issued_by_country": "CZ", | ||
"procurement_public_url_etendering": [] | ||
}, | ||
"expression": { | ||
"identifier": "2021_S_004_003545.MUL", | ||
"title": { | ||
"en": " eProcurement notice 2021_S_004_003545 " | ||
}, | ||
"uses_language": "MUL" | ||
}, | ||
"manifestation": { | ||
"identifier": "2021_S_004_003545.MUL.rdf", | ||
"type": "rdf_epo", | ||
"date_publication": "2021-01-07", | ||
"distribution_has_status_distribution_status": "COMPLETED", | ||
"distribution_has_media_type_concept_media_type": "RDF" | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
tests/test_data/notice_packager/wrong_title/mets_with_wrong_title.mets.xml.dmd.rdf
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,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE rdf:RDF [ | ||
<!ENTITY % cellarEntities PUBLIC | ||
"-//PO-RESOURCE//ENTITIES CELLAR cdm model 1.0//EN" | ||
"/home/metaconv/metaconv_components/components/common/data/cellar_uris.ent"> | ||
%cellarEntities; | ||
]> | ||
<rdf:RDF xmlns:cdm="http://publications.europa.eu/ontology/cdm#" | ||
xmlns:dct="http://purl.org/dc/terms/" | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | ||
|
||
<cdm:work rdf:about="&resource;ted/2021_S_004_003545"> | ||
|
||
<rdf:type rdf:resource="http://publications.europa.eu/ontology/cdm#procurement_public"/> | ||
<cdm:work_id_document rdf:datatype="http://www.w3.org/2001/XMLSchema#string">ted:2021_S_004_003545</cdm:work_id_document> | ||
<cdm:work_id_document rdf:datatype="http://www.w3.org/2001/XMLSchema#string">oj:JOS_2021_004_R_003545</cdm:work_id_document> | ||
<cdm:work_has_resource-type rdf:resource="http://publications.europa.eu/resource/authority/resource-type/PROCUREMENT_NOTICE"/> | ||
<cdm:do_not_index rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</cdm:do_not_index> | ||
<cdm:work_date_document rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2021-01-07</cdm:work_date_document> | ||
<cdm:work_created_by_agent rdf:resource="&cellar-authority;corporate-body/EURUN"/> | ||
<cdm:procurement_public_number_document_in_official-journal rdf:datatype="http://www.w3.org/2001/XMLSchema#string">003545</cdm:procurement_public_number_document_in_official-journal> | ||
<cdm:procurement_public_number_edition rdf:datatype="http://www.w3.org/2001/XMLSchema#positiveInteger">2021004</cdm:procurement_public_number_edition> | ||
|
||
<cdm:work_title xml:lang="en">Construction work & planning</cdm:work_title> | ||
|
||
<cdm:work_title xml:lang="ro">Lucrari de constructie <br /> si planificare</cdm:work_title> | ||
|
||
<cdm:datetime_transmission rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2023-03-09T18:28:54.806241</cdm:datetime_transmission> | ||
|
||
|
||
</cdm:work> | ||
|
||
<cdm:expression rdf:about="&resource;ted/2021_S_004_003545.MUL"> | ||
|
||
<rdf:type rdf:resource="http://publications.europa.eu/ontology/cdm#expression_procurement_public"/> | ||
<cdm:expression_belongs_to_work rdf:resource="&resource;ted/2021_S_004_003545"/> | ||
|
||
<cdm:expression_title xml:lang="en"> eProcurement notice 2021_S_004_003545 </cdm:expression_title> | ||
|
||
<cdm:expression_uses_language rdf:resource="&cellar-authority;language/MUL"/> | ||
<cdm:expression_procurement_public_authority-type_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Other</cdm:expression_procurement_public_authority-type_name> | ||
</cdm:expression> | ||
|
||
<cdm:manifestation_distribution rdf:about="&resource;ted/2021_S_004_003545.MUL.rdf"> | ||
|
||
<cdm:manifestation_manifests_expression rdf:resource="&resource;ted/2021_S_004_003545.MUL"/> | ||
<cdm:manifestation_type rdf:datatype="http://www.w3.org/2001/XMLSchema#string">rdf_epo</cdm:manifestation_type> | ||
<cdm:manifestation_date_publication rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2021-01-07</cdm:manifestation_date_publication> | ||
<cdm:manifestation_distribution_has_status_distribution_status rdf:resource="http://publications.europa.eu/resource/authority/distribution-status/COMPLETED"/> | ||
<cdm:manifestation_distribution_has_media_type_concept_media_type rdf:resource="http://publications.europa.eu/resource/authority/file-type/RDF"/> | ||
</cdm:manifestation_distribution> | ||
</rdf:RDF> |
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