From 723e433c12a66ecb365f150ddce873a4a2d277e8 Mon Sep 17 00:00:00 2001 From: ferag Date: Tue, 15 Oct 2024 17:05:21 +0200 Subject: [PATCH 1/5] Main config.ini.template cleaned --- config.ini.template | 174 ++++---------------------------------------- 1 file changed, 15 insertions(+), 159 deletions(-) diff --git a/config.ini.template b/config.ini.template index 815250a..d6fadb5 100644 --- a/config.ini.template +++ b/config.ini.template @@ -1,164 +1,20 @@ -[Generic] -doi_url = https://doi.org/ +#[Generic] +#doi_url = https://doi.org/ # Relative path to the API config file -api_config = fair-api.yaml +#api_config = fair-api.yaml -[local] -only_local = false -repo = digital_csic -logo_url = 'https://ifca.unican.es' -title = FAIR EVA: Evaluator, Validator & Advisor +#[local] +#only_local = false +#repo = digital_csic +#logo_url = 'https://ifca.unican.es' +#title = FAIR EVA: Evaluator, Validator & Advisor -[Repositories] +#[Repositories] #Name in plugin, name in tag -oai-pmh = 'Evaluator' -digital_csic = 'Digital.CSIC' -dspace7 = 'DSpace7' -epos= 'epos' -example_plugin = Example_Plugin -signposting = Signposting - -[dspace7] -base_url = http://localhost:8080/server/ - -# Metadata terms to find the resource identifier -identifier_term = ['identifier'] - -# Metadata terms to check richness (generic). These terms should be included [term, qualifier]. None means no qualifier -terms_quali_generic = [['contributor',None], - ['date', None], - ['description', None], - ['identifier', None], - ['publisher', None], - ['rights', None], - ['title', None], - ['subject', None]] - -# Metadata terms to check richness (disciplinar). These terms should be included [term, qualifier] -terms_quali_disciplinar = [['contributor', None], - ['date', None], - ['description', None], - ['identifier', None], - ['publisher', None], - ['rights', None], - ['title', None], - ['subject', None]] - -# Metadata terms that defines accessibility -terms_access = [['access', ''], ['rights', '']] - -# Metadata terms wich includes controlled vocabularies. More controlled vocabularies can be imlpemented in plugins -terms_cv = [['coverage', 'spatial'], ['subject', 'lcsh']] - -# List of data formats that are standard for the community -supported_data_formats = [".txt", ".pdf", ".csv", ".nc", ".doc", ".xls", ".zip", ".rar", ".tar", ".png", ".jpg"] - -# Metadata terms that defines links or relation with authors, contributors (preferebly in ORCID format) -terms_qualified_references = ['contributor'] - -# Metadata terms that defines links or relation with other resources, (preferebly in ORCID format, URIs or persistent identifiers) -terms_relations = ['relation'] - -# Metadata terms that defines the license type -terms_license = [['license', '', '']] - -#Metadata chemas to check -metadata_schemas = [{'dc': 'http://www.openarchives.org/OAI/2.0/oai_dc/'}] - -[digital_csic] -db_host = -db_port = -oai_ep = - -[oai-pmh] -# Metadata terms to find the resource identifier -identifier_term = ['identifier'] - -# Metadata terms to check richness (generic). These terms should be included [term, qualifier]. None means no qualifier -terms_quali_generic = [['contributor', None], - ['date', None], - ['description', None], - ['identifier', None], - ['publisher', None], - ['rights', None], - ['title', None], - ['subject', None]] - -# Metadata terms to check richness (disciplinar). These terms should be included [term, qualifier] -terms_quali_disciplinar = [['contributor', None], - ['date', None], - ['description', None], - ['identifier', None], - ['publisher', None], - ['rights', None], - ['title', None], - ['subject', None]] - -# Metadata terms that defines accessibility -terms_access = [['access', ''], ['rights', '']] - -# Metadata terms wich includes controlled vocabularies. More controlled vocabularies can be imlpemented in plugins -terms_cv = [['coverage', 'spatial'], ['subject', 'lcsh']] - -# List of data formats that are standard for the community -supported_data_formats = [".txt", ".pdf", ".csv", ".nc", ".doc", ".xls", ".zip", ".rar", ".tar", ".png", ".jpg"] - -# Metadata terms that defines links or relation with authors, contributors (preferebly in ORCID format) -terms_qualified_references = ['contributor'] - -# Metadata terms that defines links or relation with other resources, (preferebly in ORCID format, URIs or persistent identifiers) -terms_relations = ['relation'] - -# Metadata terms that defines the license type -terms_license = [['license', '', '']] - -metadata_schemas = [{'xml': 'http://datacite.org/schema/kernel-4'}] - -[epos] -# Metadata terms to find the resource identifier -identifier_term = [['id'],] - -#DOI -doi= [['DOI'],] - -# Metadata terms to check richness (generic). These terms should be included [term, qualifier]. None means no qualifier -terms_quali_generic = [['paths', 'serviceSpatial'], - ['startDate', 'serviceTemporalCoverage'], - ['serviceDescription', None], - ['hasQualityAnnotation', None], - ['dataProvider', None], - ['license', None], - ['title', None], - ['keywords', None]] - -# Metadata terms to check richness (disciplinar). These terms should be included [term, qualifier] -terms_quali_disciplinar = [['paths', 'serviceSpatial'], - ['startDate', 'serviceTemporalCoverage'], - ['serviceDescription', None], - ['hasQualityAnnotation', None], - ['dataProvider', None], - ['license', None], - ['title', None], - ['keywords', None]] - -# Metadata terms that defines accessibility -terms_access = [['downloadURL','']] - -# Metadata terms wich includes controlled vocabularies. More controlled vocabularies can be imlpemented in plugins -terms_cv = [['coverage', 'spatial'], ['subject', 'lcsh']] - -# List of data formats that are standard for the community -supported_data_formats = [".txt", ".pdf", ".csv", ".nc", ".doc", ".xls", ".zip", ".rar", ".tar", ".png", ".jpg"] - -# Metadata terms that defines links or relation with authors, contributors (preferebly in ORCID format) -terms_qualified_references = ['contributor'] - -# Metadata terms that defines links or relation with other resources, (preferebly in ORCID format, URIs or persistent identifiers) -terms_relations = ['dataProviderUrl','frequencyUpdate'] - -# Metadata terms that defines the license type -terms_license = [['license', '', '']] - -[example_plugin] -base_url = localhost +#oai-pmh = 'Evaluator' +#digital_csic = 'Digital.CSIC' +#dspace7 = 'DSpace7' +#epos= 'epos' +#example_plugin = Example_Plugin +#signposting = Signposting From 88d5374be76c2187f7f78a5ffa09b121154f708c Mon Sep 17 00:00:00 2001 From: Pablo Orviz Date: Wed, 16 Oct 2024 09:57:45 +0200 Subject: [PATCH 2/5] Use docformatter last master version that fixes https://github.com/PyCQA/docformatter/pull/287 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 318a3be..d89e542 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: hooks: - id: black - repo: https://github.com/PyCQA/docformatter - rev: v1.7.5 + rev: master hooks: - id: docformatter additional_dependencies: [tomli] From e677e600b621217de27770335f17735533f65fa2 Mon Sep 17 00:00:00 2001 From: Pablo Orviz Date: Wed, 16 Oct 2024 10:04:25 +0200 Subject: [PATCH 3/5] Add default reviewers --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..fc2975b --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @ferag @orviz From a75fdd0ec179fcaf5631d5911912157af1b666da Mon Sep 17 00:00:00 2001 From: ferag Date: Tue, 15 Oct 2024 17:05:21 +0200 Subject: [PATCH 4/5] Main config.ini.template cleaned --- config.ini.template | 174 ++++---------------------------------------- 1 file changed, 15 insertions(+), 159 deletions(-) diff --git a/config.ini.template b/config.ini.template index 815250a..d6fadb5 100644 --- a/config.ini.template +++ b/config.ini.template @@ -1,164 +1,20 @@ -[Generic] -doi_url = https://doi.org/ +#[Generic] +#doi_url = https://doi.org/ # Relative path to the API config file -api_config = fair-api.yaml +#api_config = fair-api.yaml -[local] -only_local = false -repo = digital_csic -logo_url = 'https://ifca.unican.es' -title = FAIR EVA: Evaluator, Validator & Advisor +#[local] +#only_local = false +#repo = digital_csic +#logo_url = 'https://ifca.unican.es' +#title = FAIR EVA: Evaluator, Validator & Advisor -[Repositories] +#[Repositories] #Name in plugin, name in tag -oai-pmh = 'Evaluator' -digital_csic = 'Digital.CSIC' -dspace7 = 'DSpace7' -epos= 'epos' -example_plugin = Example_Plugin -signposting = Signposting - -[dspace7] -base_url = http://localhost:8080/server/ - -# Metadata terms to find the resource identifier -identifier_term = ['identifier'] - -# Metadata terms to check richness (generic). These terms should be included [term, qualifier]. None means no qualifier -terms_quali_generic = [['contributor',None], - ['date', None], - ['description', None], - ['identifier', None], - ['publisher', None], - ['rights', None], - ['title', None], - ['subject', None]] - -# Metadata terms to check richness (disciplinar). These terms should be included [term, qualifier] -terms_quali_disciplinar = [['contributor', None], - ['date', None], - ['description', None], - ['identifier', None], - ['publisher', None], - ['rights', None], - ['title', None], - ['subject', None]] - -# Metadata terms that defines accessibility -terms_access = [['access', ''], ['rights', '']] - -# Metadata terms wich includes controlled vocabularies. More controlled vocabularies can be imlpemented in plugins -terms_cv = [['coverage', 'spatial'], ['subject', 'lcsh']] - -# List of data formats that are standard for the community -supported_data_formats = [".txt", ".pdf", ".csv", ".nc", ".doc", ".xls", ".zip", ".rar", ".tar", ".png", ".jpg"] - -# Metadata terms that defines links or relation with authors, contributors (preferebly in ORCID format) -terms_qualified_references = ['contributor'] - -# Metadata terms that defines links or relation with other resources, (preferebly in ORCID format, URIs or persistent identifiers) -terms_relations = ['relation'] - -# Metadata terms that defines the license type -terms_license = [['license', '', '']] - -#Metadata chemas to check -metadata_schemas = [{'dc': 'http://www.openarchives.org/OAI/2.0/oai_dc/'}] - -[digital_csic] -db_host = -db_port = -oai_ep = - -[oai-pmh] -# Metadata terms to find the resource identifier -identifier_term = ['identifier'] - -# Metadata terms to check richness (generic). These terms should be included [term, qualifier]. None means no qualifier -terms_quali_generic = [['contributor', None], - ['date', None], - ['description', None], - ['identifier', None], - ['publisher', None], - ['rights', None], - ['title', None], - ['subject', None]] - -# Metadata terms to check richness (disciplinar). These terms should be included [term, qualifier] -terms_quali_disciplinar = [['contributor', None], - ['date', None], - ['description', None], - ['identifier', None], - ['publisher', None], - ['rights', None], - ['title', None], - ['subject', None]] - -# Metadata terms that defines accessibility -terms_access = [['access', ''], ['rights', '']] - -# Metadata terms wich includes controlled vocabularies. More controlled vocabularies can be imlpemented in plugins -terms_cv = [['coverage', 'spatial'], ['subject', 'lcsh']] - -# List of data formats that are standard for the community -supported_data_formats = [".txt", ".pdf", ".csv", ".nc", ".doc", ".xls", ".zip", ".rar", ".tar", ".png", ".jpg"] - -# Metadata terms that defines links or relation with authors, contributors (preferebly in ORCID format) -terms_qualified_references = ['contributor'] - -# Metadata terms that defines links or relation with other resources, (preferebly in ORCID format, URIs or persistent identifiers) -terms_relations = ['relation'] - -# Metadata terms that defines the license type -terms_license = [['license', '', '']] - -metadata_schemas = [{'xml': 'http://datacite.org/schema/kernel-4'}] - -[epos] -# Metadata terms to find the resource identifier -identifier_term = [['id'],] - -#DOI -doi= [['DOI'],] - -# Metadata terms to check richness (generic). These terms should be included [term, qualifier]. None means no qualifier -terms_quali_generic = [['paths', 'serviceSpatial'], - ['startDate', 'serviceTemporalCoverage'], - ['serviceDescription', None], - ['hasQualityAnnotation', None], - ['dataProvider', None], - ['license', None], - ['title', None], - ['keywords', None]] - -# Metadata terms to check richness (disciplinar). These terms should be included [term, qualifier] -terms_quali_disciplinar = [['paths', 'serviceSpatial'], - ['startDate', 'serviceTemporalCoverage'], - ['serviceDescription', None], - ['hasQualityAnnotation', None], - ['dataProvider', None], - ['license', None], - ['title', None], - ['keywords', None]] - -# Metadata terms that defines accessibility -terms_access = [['downloadURL','']] - -# Metadata terms wich includes controlled vocabularies. More controlled vocabularies can be imlpemented in plugins -terms_cv = [['coverage', 'spatial'], ['subject', 'lcsh']] - -# List of data formats that are standard for the community -supported_data_formats = [".txt", ".pdf", ".csv", ".nc", ".doc", ".xls", ".zip", ".rar", ".tar", ".png", ".jpg"] - -# Metadata terms that defines links or relation with authors, contributors (preferebly in ORCID format) -terms_qualified_references = ['contributor'] - -# Metadata terms that defines links or relation with other resources, (preferebly in ORCID format, URIs or persistent identifiers) -terms_relations = ['dataProviderUrl','frequencyUpdate'] - -# Metadata terms that defines the license type -terms_license = [['license', '', '']] - -[example_plugin] -base_url = localhost +#oai-pmh = 'Evaluator' +#digital_csic = 'Digital.CSIC' +#dspace7 = 'DSpace7' +#epos= 'epos' +#example_plugin = Example_Plugin +#signposting = Signposting From 0a3fc5962a8d1343a96bf02d1b5820dd32fc1344 Mon Sep 17 00:00:00 2001 From: Fernando Aguilar Date: Wed, 16 Oct 2024 15:57:24 +0200 Subject: [PATCH 5/5] Update config.ini.template --- config.ini.template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config.ini.template b/config.ini.template index d6fadb5..f4eb47b 100644 --- a/config.ini.template +++ b/config.ini.template @@ -18,3 +18,17 @@ #epos= 'epos' #example_plugin = Example_Plugin #signposting = Signposting + +#[fairsharing] +# username and password +#username = [''] +#password = [''] + +#_path is variable that stores the path to the file in which the fairsharing-approved metadatata standards or formasts are stored + +#metadata_path = ['static/fairsharing_metadata_standards20240214.json'] +#formats_path = ['static/fairsharing_formats20240226.txt'] + +#[internet media types] +#path to internet media files file +#path = ['static/internetmediatypes190224.csv']