From f8fba8b26035428da468e4ec1a337e1fdf764604 Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer Date: Tue, 9 Jan 2024 12:45:36 +0100 Subject: [PATCH 1/2] build: add pre-commit hook to add license header to python modules --- .pre-commit-config.yaml | 7 +++++++ docs/license_header.txt | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 docs/license_header.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 048c67c3..8626ec6b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,13 @@ repos: args: [--autofix, --indent, '2'] - id: pretty-format-yaml args: [--autofix, --indent, '2'] +- repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.4 + hooks: + - id: insert-license + types: [python] + args: [--license-filepath=docs/license_header.txt] + exclude: docs - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.11 hooks: diff --git a/docs/license_header.txt b/docs/license_header.txt new file mode 100644 index 00000000..4415331c --- /dev/null +++ b/docs/license_header.txt @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) + +SPDX-License-Identifier: MIT From 63669a88ed660ead89e5ad35f4a3ec987c8497f7 Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer Date: Mon, 8 Jan 2024 10:06:59 +0100 Subject: [PATCH 2/2] docs: update license headers to use spdx format --- .../fuji_mass_eval_template.py | 4 +++ fuji_server/__init__.py | 4 +++ fuji_server/__main__.py | 22 ++------------- fuji_server/app.py | 23 ++------------- fuji_server/config/users.py | 4 +++ fuji_server/controllers/__init__.py | 24 ++-------------- .../controllers/authorization_controller.py | 25 ++--------------- fuji_server/controllers/fair_check.py | 23 ++------------- .../controllers/fair_metric_controller.py | 28 ++----------------- .../controllers/fair_object_controller.py | 24 ++-------------- fuji_server/controllers/harvest_controller.py | 25 ++--------------- fuji_server/encoder.py | 5 +++- fuji_server/evaluators/__init__.py | 3 ++ fuji_server/evaluators/fair_evaluator.py | 22 ++------------- .../fair_evaluator_community_metadata.py | 23 ++------------- .../fair_evaluator_data_access_level.py | 22 ++------------- .../fair_evaluator_data_content_metadata.py | 23 ++------------- ...fair_evaluator_data_identifier_included.py | 23 ++------------- .../fair_evaluator_data_provenance.py | 22 ++------------- .../evaluators/fair_evaluator_file_format.py | 22 ++------------- .../fair_evaluator_formal_metadata.py | 22 ++------------- .../evaluators/fair_evaluator_license.py | 23 ++------------- ..._evaluator_metadata_identifier_included.py | 23 ++------------- .../fair_evaluator_metadata_preservation.py | 22 ++------------- .../fair_evaluator_minimal_metadata.py | 22 ++------------- ...ir_evaluator_persistent_identifier_data.py | 23 ++------------- ...valuator_persistent_identifier_metadata.py | 23 ++------------- .../fair_evaluator_related_resources.py | 22 ++------------- .../evaluators/fair_evaluator_searchable.py | 23 ++------------- .../fair_evaluator_semantic_vocabulary.py | 23 ++------------- ...ir_evaluator_standardised_protocol_data.py | 22 ++------------- ...valuator_standardised_protocol_metadata.py | 22 ++------------- .../fair_evaluator_unique_identifier_data.py | 23 ++------------- ...ir_evaluator_unique_identifier_metadata.py | 23 ++------------- fuji_server/harvester/__init__.py | 3 ++ fuji_server/harvester/data_harvester.py | 4 +++ fuji_server/harvester/metadata_harvester.py | 4 +++ fuji_server/harvester/repository_harvester.py | 5 ++++ fuji_server/helper/__init__.py | 3 ++ fuji_server/helper/catalogue_helper.py | 4 +++ .../helper/catalogue_helper_datacite.py | 4 +++ .../catalogue_helper_google_datasearch.py | 4 +++ .../helper/catalogue_helper_mendeley_data.py | 4 +++ fuji_server/helper/create_google_cache_db.py | 4 +++ fuji_server/helper/create_google_lists.py | 4 +++ fuji_server/helper/datacontent_helper.py | 3 ++ fuji_server/helper/identifier_helper.py | 23 ++------------- fuji_server/helper/linked_vocab_helper.py | 4 +++ fuji_server/helper/log_message_filter.py | 22 ++------------- fuji_server/helper/metadata_collector.py | 22 ++------------- .../helper/metadata_collector_datacite.py | 23 ++------------- .../helper/metadata_collector_dublincore.py | 22 ++------------- .../metadata_collector_highwire_eprints.py | 22 ++------------- .../helper/metadata_collector_microdata.py | 4 +++ .../helper/metadata_collector_opengraph.py | 4 +++ .../helper/metadata_collector_ore_atom.py | 23 ++------------- fuji_server/helper/metadata_collector_rdf.py | 23 ++------------- fuji_server/helper/metadata_collector_xml.py | 23 ++------------- fuji_server/helper/metadata_mapper.py | 22 ++------------- fuji_server/helper/metadata_provider.py | 22 ++------------- fuji_server/helper/metadata_provider_csw.py | 22 ++------------- fuji_server/helper/metadata_provider_oai.py | 22 ++------------- .../helper/metadata_provider_rss_atom.py | 22 ++------------- .../helper/metadata_provider_sparql.py | 22 ++------------- fuji_server/helper/metric_helper.py | 4 +++ fuji_server/helper/preprocessor.py | 23 ++------------- fuji_server/helper/repository_helper.py | 23 ++------------- fuji_server/helper/request_helper.py | 23 ++------------- fuji_server/models/__init__.py | 3 ++ .../models/any_of_fair_results_items.py | 4 +++ fuji_server/models/base_model_.py | 4 +++ fuji_server/models/body.py | 4 +++ .../models/community_endorsed_standard.py | 4 +++ .../community_endorsed_standard_output.py | 4 +++ ...ommunity_endorsed_standard_output_inner.py | 4 +++ fuji_server/models/core_metadata.py | 4 +++ fuji_server/models/core_metadata_output.py | 4 +++ fuji_server/models/data_access_level.py | 4 +++ fuji_server/models/data_access_output.py | 4 +++ fuji_server/models/data_content_metadata.py | 4 +++ .../models/data_content_metadata_output.py | 4 +++ .../data_content_metadata_output_inner.py | 4 +++ fuji_server/models/data_file_format.py | 4 +++ fuji_server/models/data_file_format_output.py | 4 +++ .../models/data_file_format_output_inner.py | 4 +++ fuji_server/models/data_provenance.py | 4 +++ fuji_server/models/data_provenance_output.py | 4 +++ .../models/data_provenance_output_inner.py | 4 +++ fuji_server/models/debug.py | 4 +++ fuji_server/models/fair_result_common.py | 4 +++ .../models/fair_result_common_score.py | 4 +++ .../fair_result_evaluation_criterium.py | 4 +++ ...esult_evaluation_criterium_requirements.py | 4 +++ fuji_server/models/fair_results.py | 4 +++ fuji_server/models/formal_metadata.py | 4 +++ fuji_server/models/formal_metadata_output.py | 4 +++ .../models/formal_metadata_output_inner.py | 4 +++ fuji_server/models/harvest.py | 4 +++ fuji_server/models/harvest_results.py | 4 +++ .../models/harvest_results_metadata.py | 4 +++ fuji_server/models/identifier_included.py | 4 +++ .../models/identifier_included_output.py | 4 +++ .../identifier_included_output_inner.py | 4 +++ fuji_server/models/license.py | 4 +++ fuji_server/models/license_output.py | 4 +++ fuji_server/models/license_output_inner.py | 4 +++ fuji_server/models/metadata_preserved.py | 4 +++ .../models/metadata_preserved_output.py | 4 +++ fuji_server/models/metric.py | 4 +++ fuji_server/models/metrics.py | 4 +++ .../models/output_core_metadata_found.py | 4 +++ .../models/output_search_mechanisms.py | 4 +++ fuji_server/models/persistence.py | 4 +++ fuji_server/models/persistence_output.py | 4 +++ .../models/persistence_output_inner.py | 4 +++ fuji_server/models/related_resource.py | 4 +++ fuji_server/models/related_resource_output.py | 4 +++ .../models/related_resource_output_inner.py | 4 +++ fuji_server/models/searchable.py | 4 +++ fuji_server/models/searchable_output.py | 4 +++ fuji_server/models/semantic_vocabulary.py | 4 +++ .../models/semantic_vocabulary_output.py | 4 +++ .../semantic_vocabulary_output_inner.py | 4 +++ .../models/standardised_protocol_data.py | 4 +++ .../standardised_protocol_data_output.py | 4 +++ .../models/standardised_protocol_metadata.py | 4 +++ .../standardised_protocol_metadata_output.py | 4 +++ fuji_server/models/uniqueness.py | 4 +++ fuji_server/models/uniqueness_output.py | 4 +++ fuji_server/util.py | 4 +++ tests/__init__.py | 3 ++ tests/api/test_urls.py | 4 +++ tests/conftest.py | 4 +++ tests/controllers/test_fair_check.py | 4 +++ tests/functional/test_evaluation.py | 4 +++ tests/helper/test_preprocessor.py | 4 +++ tests/models/test_harvest.py | 4 +++ 137 files changed, 463 insertions(+), 964 deletions(-) diff --git a/examples/mass_assessment/fuji_mass_eval_template.py b/examples/mass_assessment/fuji_mass_eval_template.py index 34983568..90db2a12 100644 --- a/examples/mass_assessment/fuji_mass_eval_template.py +++ b/examples/mass_assessment/fuji_mass_eval_template.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import json import os diff --git a/fuji_server/__init__.py b/fuji_server/__init__.py index 8e61a4f0..bfec0e01 100644 --- a/fuji_server/__init__.py +++ b/fuji_server/__init__.py @@ -1,5 +1,9 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + # flake8: noqa from __future__ import absolute_import diff --git a/fuji_server/__main__.py b/fuji_server/__main__.py index c55d9103..b6393d59 100644 --- a/fuji_server/__main__.py +++ b/fuji_server/__main__.py @@ -1,26 +1,8 @@ #!/usr/bin/env python3 -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT import argparse import configparser diff --git a/fuji_server/app.py b/fuji_server/app.py index 9f3722c0..26a77ee3 100644 --- a/fuji_server/app.py +++ b/fuji_server/app.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import json import os from pathlib import Path diff --git a/fuji_server/config/users.py b/fuji_server/config/users.py index 0da60e9f..e7f66257 100644 --- a/fuji_server/config/users.py +++ b/fuji_server/config/users.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + # user dictionary: key = username value = password fuji_users = {"marvel": "wonderwoman"} diff --git a/fuji_server/controllers/__init__.py b/fuji_server/controllers/__init__.py index a1f6df5d..329b58ce 100644 --- a/fuji_server/controllers/__init__.py +++ b/fuji_server/controllers/__init__.py @@ -1,23 +1,3 @@ -################################################################################ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. -################################################################################ +# SPDX-License-Identifier: MIT diff --git a/fuji_server/controllers/authorization_controller.py b/fuji_server/controllers/authorization_controller.py index 356ca19c..6ab8aa30 100644 --- a/fuji_server/controllers/authorization_controller.py +++ b/fuji_server/controllers/authorization_controller.py @@ -1,26 +1,7 @@ -################################################################################ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. -################################################################################ +# SPDX-License-Identifier: MIT + """ Controller generated to handled auth operation described at: https://connexion.readthedocs.io/en/latest/security.html diff --git a/fuji_server/controllers/fair_check.py b/fuji_server/controllers/fair_check.py index ff1558aa..2ad8c3e0 100644 --- a/fuji_server/controllers/fair_check.py +++ b/fuji_server/controllers/fair_check.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import hashlib import io import logging diff --git a/fuji_server/controllers/fair_metric_controller.py b/fuji_server/controllers/fair_metric_controller.py index 83514360..ebda59b1 100644 --- a/fuji_server/controllers/fair_metric_controller.py +++ b/fuji_server/controllers/fair_metric_controller.py @@ -1,29 +1,7 @@ -""" -FAIR Metric controller. -""" -################################################################################ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. -################################################################################ +# SPDX-License-Identifier: MIT + from fuji_server.helper.metric_helper import MetricHelper diff --git a/fuji_server/controllers/fair_object_controller.py b/fuji_server/controllers/fair_object_controller.py index 313ad23e..da14e63d 100644 --- a/fuji_server/controllers/fair_object_controller.py +++ b/fuji_server/controllers/fair_object_controller.py @@ -1,26 +1,6 @@ -################################################################################ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. -################################################################################ +# SPDX-License-Identifier: MIT import datetime diff --git a/fuji_server/controllers/harvest_controller.py b/fuji_server/controllers/harvest_controller.py index b80c5973..40778533 100644 --- a/fuji_server/controllers/harvest_controller.py +++ b/fuji_server/controllers/harvest_controller.py @@ -1,27 +1,6 @@ -################################################################################ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. -################################################################################ - +# SPDX-License-Identifier: MIT import connexion diff --git a/fuji_server/encoder.py b/fuji_server/encoder.py index a439e872..0536ef3f 100644 --- a/fuji_server/encoder.py +++ b/fuji_server/encoder.py @@ -1,4 +1,7 @@ -# from connexion.apps.flask_app import FlaskJSONEncoder +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from connexion.jsonifier import JSONEncoder from fuji_server.models.base_model_ import Model diff --git a/fuji_server/evaluators/__init__.py b/fuji_server/evaluators/__init__.py index e69de29b..329b58ce 100644 --- a/fuji_server/evaluators/__init__.py +++ b/fuji_server/evaluators/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT diff --git a/fuji_server/evaluators/fair_evaluator.py b/fuji_server/evaluators/fair_evaluator.py index 68d9c955..20be5a7a 100644 --- a/fuji_server/evaluators/fair_evaluator.py +++ b/fuji_server/evaluators/fair_evaluator.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from fuji_server.helper.metadata_mapper import Mapper from fuji_server.models.fair_result_common_score import FAIRResultCommonScore diff --git a/fuji_server/evaluators/fair_evaluator_community_metadata.py b/fuji_server/evaluators/fair_evaluator_community_metadata.py index 90c71631..d74d99cc 100644 --- a/fuji_server/evaluators/fair_evaluator_community_metadata.py +++ b/fuji_server/evaluators/fair_evaluator_community_metadata.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT from tldextract import extract diff --git a/fuji_server/evaluators/fair_evaluator_data_access_level.py b/fuji_server/evaluators/fair_evaluator_data_access_level.py index bce87d8c..3b6ba275 100644 --- a/fuji_server/evaluators/fair_evaluator_data_access_level.py +++ b/fuji_server/evaluators/fair_evaluator_data_access_level.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT import re diff --git a/fuji_server/evaluators/fair_evaluator_data_content_metadata.py b/fuji_server/evaluators/fair_evaluator_data_content_metadata.py index c6f686c8..5276b47e 100644 --- a/fuji_server/evaluators/fair_evaluator_data_content_metadata.py +++ b/fuji_server/evaluators/fair_evaluator_data_content_metadata.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import re from fuji_server.evaluators.fair_evaluator import FAIREvaluator diff --git a/fuji_server/evaluators/fair_evaluator_data_identifier_included.py b/fuji_server/evaluators/fair_evaluator_data_identifier_included.py index 7da3c891..81f3e1f3 100644 --- a/fuji_server/evaluators/fair_evaluator_data_identifier_included.py +++ b/fuji_server/evaluators/fair_evaluator_data_identifier_included.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import enum import socket diff --git a/fuji_server/evaluators/fair_evaluator_data_provenance.py b/fuji_server/evaluators/fair_evaluator_data_provenance.py index cb3461b9..1f2c3d72 100644 --- a/fuji_server/evaluators/fair_evaluator_data_provenance.py +++ b/fuji_server/evaluators/fair_evaluator_data_provenance.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from fuji_server.evaluators.fair_evaluator import FAIREvaluator from fuji_server.helper.metadata_mapper import Mapper diff --git a/fuji_server/evaluators/fair_evaluator_file_format.py b/fuji_server/evaluators/fair_evaluator_file_format.py index a2ce6d9f..e0fdc8a5 100644 --- a/fuji_server/evaluators/fair_evaluator_file_format.py +++ b/fuji_server/evaluators/fair_evaluator_file_format.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT import mimetypes import re diff --git a/fuji_server/evaluators/fair_evaluator_formal_metadata.py b/fuji_server/evaluators/fair_evaluator_formal_metadata.py index 53d0c690..192aff60 100644 --- a/fuji_server/evaluators/fair_evaluator_formal_metadata.py +++ b/fuji_server/evaluators/fair_evaluator_formal_metadata.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from fuji_server.evaluators.fair_evaluator import FAIREvaluator from fuji_server.helper.metadata_collector import MetadataSources diff --git a/fuji_server/evaluators/fair_evaluator_license.py b/fuji_server/evaluators/fair_evaluator_license.py index 5d6da470..dfafa62d 100644 --- a/fuji_server/evaluators/fair_evaluator_license.py +++ b/fuji_server/evaluators/fair_evaluator_license.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import fnmatch import re diff --git a/fuji_server/evaluators/fair_evaluator_metadata_identifier_included.py b/fuji_server/evaluators/fair_evaluator_metadata_identifier_included.py index 6b21918a..b062d8e0 100644 --- a/fuji_server/evaluators/fair_evaluator_metadata_identifier_included.py +++ b/fuji_server/evaluators/fair_evaluator_metadata_identifier_included.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT from fuji_server.evaluators.fair_evaluator import FAIREvaluator from fuji_server.models.identifier_included import IdentifierIncluded diff --git a/fuji_server/evaluators/fair_evaluator_metadata_preservation.py b/fuji_server/evaluators/fair_evaluator_metadata_preservation.py index 477e0bdc..bb6e5940 100644 --- a/fuji_server/evaluators/fair_evaluator_metadata_preservation.py +++ b/fuji_server/evaluators/fair_evaluator_metadata_preservation.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from fuji_server.evaluators.fair_evaluator import FAIREvaluator from fuji_server.models.metadata_preserved import MetadataPreserved diff --git a/fuji_server/evaluators/fair_evaluator_minimal_metadata.py b/fuji_server/evaluators/fair_evaluator_minimal_metadata.py index 11b2be7a..c81d1b76 100644 --- a/fuji_server/evaluators/fair_evaluator_minimal_metadata.py +++ b/fuji_server/evaluators/fair_evaluator_minimal_metadata.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from fuji_server.evaluators.fair_evaluator import FAIREvaluator from fuji_server.helper.metadata_collector import MetadataOfferingMethods diff --git a/fuji_server/evaluators/fair_evaluator_persistent_identifier_data.py b/fuji_server/evaluators/fair_evaluator_persistent_identifier_data.py index 0ecdd3b8..1a975525 100644 --- a/fuji_server/evaluators/fair_evaluator_persistent_identifier_data.py +++ b/fuji_server/evaluators/fair_evaluator_persistent_identifier_data.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT from fuji_server import Persistence, PersistenceOutput from fuji_server.evaluators.fair_evaluator import FAIREvaluator diff --git a/fuji_server/evaluators/fair_evaluator_persistent_identifier_metadata.py b/fuji_server/evaluators/fair_evaluator_persistent_identifier_metadata.py index f471fcf3..022f13c5 100644 --- a/fuji_server/evaluators/fair_evaluator_persistent_identifier_metadata.py +++ b/fuji_server/evaluators/fair_evaluator_persistent_identifier_metadata.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT from fuji_server import Persistence, PersistenceOutput from fuji_server.evaluators.fair_evaluator import FAIREvaluator diff --git a/fuji_server/evaluators/fair_evaluator_related_resources.py b/fuji_server/evaluators/fair_evaluator_related_resources.py index d5562623..12efdea3 100644 --- a/fuji_server/evaluators/fair_evaluator_related_resources.py +++ b/fuji_server/evaluators/fair_evaluator_related_resources.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from fuji_server.evaluators.fair_evaluator import FAIREvaluator from fuji_server.helper.identifier_helper import IdentifierHelper diff --git a/fuji_server/evaluators/fair_evaluator_searchable.py b/fuji_server/evaluators/fair_evaluator_searchable.py index 460fa48d..f554b908 100644 --- a/fuji_server/evaluators/fair_evaluator_searchable.py +++ b/fuji_server/evaluators/fair_evaluator_searchable.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT from fuji_server import OutputSearchMechanisms from fuji_server.evaluators.fair_evaluator import FAIREvaluator diff --git a/fuji_server/evaluators/fair_evaluator_semantic_vocabulary.py b/fuji_server/evaluators/fair_evaluator_semantic_vocabulary.py index 909d0d5c..324dc36b 100644 --- a/fuji_server/evaluators/fair_evaluator_semantic_vocabulary.py +++ b/fuji_server/evaluators/fair_evaluator_semantic_vocabulary.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import fnmatch from fuji_server.evaluators.fair_evaluator import FAIREvaluator diff --git a/fuji_server/evaluators/fair_evaluator_standardised_protocol_data.py b/fuji_server/evaluators/fair_evaluator_standardised_protocol_data.py index 01a13e40..20806014 100644 --- a/fuji_server/evaluators/fair_evaluator_standardised_protocol_data.py +++ b/fuji_server/evaluators/fair_evaluator_standardised_protocol_data.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from urllib.parse import urlparse diff --git a/fuji_server/evaluators/fair_evaluator_standardised_protocol_metadata.py b/fuji_server/evaluators/fair_evaluator_standardised_protocol_metadata.py index 6b775c34..b3ab1cd2 100644 --- a/fuji_server/evaluators/fair_evaluator_standardised_protocol_metadata.py +++ b/fuji_server/evaluators/fair_evaluator_standardised_protocol_metadata.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from urllib.parse import urlparse diff --git a/fuji_server/evaluators/fair_evaluator_unique_identifier_data.py b/fuji_server/evaluators/fair_evaluator_unique_identifier_data.py index 6171a6cf..3ec14e0c 100644 --- a/fuji_server/evaluators/fair_evaluator_unique_identifier_data.py +++ b/fuji_server/evaluators/fair_evaluator_unique_identifier_data.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT from fuji_server.evaluators.fair_evaluator import FAIREvaluator from fuji_server.helper.identifier_helper import IdentifierHelper diff --git a/fuji_server/evaluators/fair_evaluator_unique_identifier_metadata.py b/fuji_server/evaluators/fair_evaluator_unique_identifier_metadata.py index 7ad88315..1a379099 100644 --- a/fuji_server/evaluators/fair_evaluator_unique_identifier_metadata.py +++ b/fuji_server/evaluators/fair_evaluator_unique_identifier_metadata.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT from fuji_server.evaluators.fair_evaluator import FAIREvaluator from fuji_server.helper.identifier_helper import IdentifierHelper diff --git a/fuji_server/harvester/__init__.py b/fuji_server/harvester/__init__.py index e69de29b..329b58ce 100644 --- a/fuji_server/harvester/__init__.py +++ b/fuji_server/harvester/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT diff --git a/fuji_server/harvester/data_harvester.py b/fuji_server/harvester/data_harvester.py index b2a384d6..c2bd46cf 100644 --- a/fuji_server/harvester/data_harvester.py +++ b/fuji_server/harvester/data_harvester.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import io import os import re diff --git a/fuji_server/harvester/metadata_harvester.py b/fuji_server/harvester/metadata_harvester.py index 799824b5..48f3f88e 100644 --- a/fuji_server/harvester/metadata_harvester.py +++ b/fuji_server/harvester/metadata_harvester.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import enum import hashlib import io diff --git a/fuji_server/harvester/repository_harvester.py b/fuji_server/harvester/repository_harvester.py index 5c19d7e5..6f4812de 100644 --- a/fuji_server/harvester/repository_harvester.py +++ b/fuji_server/harvester/repository_harvester.py @@ -1,3 +1,8 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + + class RepositoryHarvester: def __init__(self, harvester_type="oai", endpoint_url=""): self.type = harvester_type diff --git a/fuji_server/helper/__init__.py b/fuji_server/helper/__init__.py index e69de29b..329b58ce 100644 --- a/fuji_server/helper/__init__.py +++ b/fuji_server/helper/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT diff --git a/fuji_server/helper/catalogue_helper.py b/fuji_server/helper/catalogue_helper.py index e8a2d8d8..5f7b6f86 100644 --- a/fuji_server/helper/catalogue_helper.py +++ b/fuji_server/helper/catalogue_helper.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import enum import logging diff --git a/fuji_server/helper/catalogue_helper_datacite.py b/fuji_server/helper/catalogue_helper_datacite.py index 14d8556b..317253d1 100644 --- a/fuji_server/helper/catalogue_helper_datacite.py +++ b/fuji_server/helper/catalogue_helper_datacite.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import logging import requests diff --git a/fuji_server/helper/catalogue_helper_google_datasearch.py b/fuji_server/helper/catalogue_helper_google_datasearch.py index 39e86d5c..e6f7ce64 100644 --- a/fuji_server/helper/catalogue_helper_google_datasearch.py +++ b/fuji_server/helper/catalogue_helper_google_datasearch.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import logging import os import re diff --git a/fuji_server/helper/catalogue_helper_mendeley_data.py b/fuji_server/helper/catalogue_helper_mendeley_data.py index 146f6d28..4bd91a20 100644 --- a/fuji_server/helper/catalogue_helper_mendeley_data.py +++ b/fuji_server/helper/catalogue_helper_mendeley_data.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import logging import requests diff --git a/fuji_server/helper/create_google_cache_db.py b/fuji_server/helper/create_google_cache_db.py index 8d70deda..53e0d0cc 100644 --- a/fuji_server/helper/create_google_cache_db.py +++ b/fuji_server/helper/create_google_cache_db.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server.helper.catalogue_helper_google_datasearch import MetaDataCatalogueGoogleDataSearch g = MetaDataCatalogueGoogleDataSearch() diff --git a/fuji_server/helper/create_google_lists.py b/fuji_server/helper/create_google_lists.py index aea5b114..9f3d48a1 100644 --- a/fuji_server/helper/create_google_lists.py +++ b/fuji_server/helper/create_google_lists.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server.helper.catalogue_helper_google_datasearch import MetaDataCatalogueGoogleDataSearch g = MetaDataCatalogueGoogleDataSearch() diff --git a/fuji_server/helper/datacontent_helper.py b/fuji_server/helper/datacontent_helper.py index e69de29b..329b58ce 100644 --- a/fuji_server/helper/datacontent_helper.py +++ b/fuji_server/helper/datacontent_helper.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT diff --git a/fuji_server/helper/identifier_helper.py b/fuji_server/helper/identifier_helper.py index 06973f9d..483ed014 100644 --- a/fuji_server/helper/identifier_helper.py +++ b/fuji_server/helper/identifier_helper.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import re import urllib import uuid diff --git a/fuji_server/helper/linked_vocab_helper.py b/fuji_server/helper/linked_vocab_helper.py index b1eebbf0..a8cec7cf 100644 --- a/fuji_server/helper/linked_vocab_helper.py +++ b/fuji_server/helper/linked_vocab_helper.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import json import os import re diff --git a/fuji_server/helper/log_message_filter.py b/fuji_server/helper/log_message_filter.py index b08ec3b6..2ad771f7 100644 --- a/fuji_server/helper/log_message_filter.py +++ b/fuji_server/helper/log_message_filter.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT import logging diff --git a/fuji_server/helper/metadata_collector.py b/fuji_server/helper/metadata_collector.py index f066f6fd..0827d0e7 100644 --- a/fuji_server/helper/metadata_collector.py +++ b/fuji_server/helper/metadata_collector.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT import enum import logging diff --git a/fuji_server/helper/metadata_collector_datacite.py b/fuji_server/helper/metadata_collector_datacite.py index 95c711f5..78b59206 100644 --- a/fuji_server/helper/metadata_collector_datacite.py +++ b/fuji_server/helper/metadata_collector_datacite.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT import jmespath diff --git a/fuji_server/helper/metadata_collector_dublincore.py b/fuji_server/helper/metadata_collector_dublincore.py index 28cab43a..0235839e 100644 --- a/fuji_server/helper/metadata_collector_dublincore.py +++ b/fuji_server/helper/metadata_collector_dublincore.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT import re diff --git a/fuji_server/helper/metadata_collector_highwire_eprints.py b/fuji_server/helper/metadata_collector_highwire_eprints.py index e39643c6..ff7eb7d5 100644 --- a/fuji_server/helper/metadata_collector_highwire_eprints.py +++ b/fuji_server/helper/metadata_collector_highwire_eprints.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT import re diff --git a/fuji_server/helper/metadata_collector_microdata.py b/fuji_server/helper/metadata_collector_microdata.py index 9fa283ff..aece9390 100644 --- a/fuji_server/helper/metadata_collector_microdata.py +++ b/fuji_server/helper/metadata_collector_microdata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import jmespath from fuji_server.helper.metadata_collector import MetaDataCollector, MetadataFormats diff --git a/fuji_server/helper/metadata_collector_opengraph.py b/fuji_server/helper/metadata_collector_opengraph.py index a1f9aa9a..b436295d 100644 --- a/fuji_server/helper/metadata_collector_opengraph.py +++ b/fuji_server/helper/metadata_collector_opengraph.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server.helper.metadata_collector import MetaDataCollector, MetadataFormats diff --git a/fuji_server/helper/metadata_collector_ore_atom.py b/fuji_server/helper/metadata_collector_ore_atom.py index ea08fb95..1f787083 100644 --- a/fuji_server/helper/metadata_collector_ore_atom.py +++ b/fuji_server/helper/metadata_collector_ore_atom.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import feedparser from fuji_server.helper.metadata_collector import MetaDataCollector, MetadataFormats diff --git a/fuji_server/helper/metadata_collector_rdf.py b/fuji_server/helper/metadata_collector_rdf.py index 2ddb3786..bf6158af 100644 --- a/fuji_server/helper/metadata_collector_rdf.py +++ b/fuji_server/helper/metadata_collector_rdf.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import json import re diff --git a/fuji_server/helper/metadata_collector_xml.py b/fuji_server/helper/metadata_collector_xml.py index a0025bd4..4a3cb535 100644 --- a/fuji_server/helper/metadata_collector_xml.py +++ b/fuji_server/helper/metadata_collector_xml.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import re import idutils diff --git a/fuji_server/helper/metadata_mapper.py b/fuji_server/helper/metadata_mapper.py index 85e9bcfd..448eb786 100644 --- a/fuji_server/helper/metadata_mapper.py +++ b/fuji_server/helper/metadata_mapper.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from enum import Enum diff --git a/fuji_server/helper/metadata_provider.py b/fuji_server/helper/metadata_provider.py index 9f4f8201..bb37435b 100644 --- a/fuji_server/helper/metadata_provider.py +++ b/fuji_server/helper/metadata_provider.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from abc import ABC, abstractmethod diff --git a/fuji_server/helper/metadata_provider_csw.py b/fuji_server/helper/metadata_provider_csw.py index 0d09285c..2488e100 100644 --- a/fuji_server/helper/metadata_provider_csw.py +++ b/fuji_server/helper/metadata_provider_csw.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from lxml import etree diff --git a/fuji_server/helper/metadata_provider_oai.py b/fuji_server/helper/metadata_provider_oai.py index 1e4958d4..72cca687 100644 --- a/fuji_server/helper/metadata_provider_oai.py +++ b/fuji_server/helper/metadata_provider_oai.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from lxml import etree diff --git a/fuji_server/helper/metadata_provider_rss_atom.py b/fuji_server/helper/metadata_provider_rss_atom.py index f9dab05a..453616d1 100644 --- a/fuji_server/helper/metadata_provider_rss_atom.py +++ b/fuji_server/helper/metadata_provider_rss_atom.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT import feedparser diff --git a/fuji_server/helper/metadata_provider_sparql.py b/fuji_server/helper/metadata_provider_sparql.py index 90361f93..dc2dde37 100644 --- a/fuji_server/helper/metadata_provider_sparql.py +++ b/fuji_server/helper/metadata_provider_sparql.py @@ -1,24 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT from urllib.error import HTTPError diff --git a/fuji_server/helper/metric_helper.py b/fuji_server/helper/metric_helper.py index 992d657f..f194283b 100644 --- a/fuji_server/helper/metric_helper.py +++ b/fuji_server/helper/metric_helper.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import logging import os import re diff --git a/fuji_server/helper/preprocessor.py b/fuji_server/helper/preprocessor.py index 3407cf12..fc606b8c 100644 --- a/fuji_server/helper/preprocessor.py +++ b/fuji_server/helper/preprocessor.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import json import logging import mimetypes diff --git a/fuji_server/helper/repository_helper.py b/fuji_server/helper/repository_helper.py index 36eea172..b87d1dce 100644 --- a/fuji_server/helper/repository_helper.py +++ b/fuji_server/helper/repository_helper.py @@ -1,25 +1,6 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - +# SPDX-License-Identifier: MIT import idutils from lxml import etree diff --git a/fuji_server/helper/request_helper.py b/fuji_server/helper/request_helper.py index 6ad5a852..4a569448 100644 --- a/fuji_server/helper/request_helper.py +++ b/fuji_server/helper/request_helper.py @@ -1,24 +1,7 @@ -# MIT License +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) # -# Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# SPDX-License-Identifier: MIT + import gzip import http.cookiejar import json diff --git a/fuji_server/models/__init__.py b/fuji_server/models/__init__.py index e69de29b..329b58ce 100644 --- a/fuji_server/models/__init__.py +++ b/fuji_server/models/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT diff --git a/fuji_server/models/any_of_fair_results_items.py b/fuji_server/models/any_of_fair_results_items.py index de3416c7..dc9bf620 100644 --- a/fuji_server/models/any_of_fair_results_items.py +++ b/fuji_server/models/any_of_fair_results_items.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/base_model_.py b/fuji_server/models/base_model_.py index 4e19fa79..e2f3a6fa 100644 --- a/fuji_server/models/base_model_.py +++ b/fuji_server/models/base_model_.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import pprint import typing diff --git a/fuji_server/models/body.py b/fuji_server/models/body.py index 2bdb1321..8ddd15a6 100644 --- a/fuji_server/models/body.py +++ b/fuji_server/models/body.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/community_endorsed_standard.py b/fuji_server/models/community_endorsed_standard.py index eb700955..534993ff 100644 --- a/fuji_server/models/community_endorsed_standard.py +++ b/fuji_server/models/community_endorsed_standard.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.community_endorsed_standard_output import CommunityEndorsedStandardOutput diff --git a/fuji_server/models/community_endorsed_standard_output.py b/fuji_server/models/community_endorsed_standard_output.py index 1d4b8d7d..bdc441ba 100644 --- a/fuji_server/models/community_endorsed_standard_output.py +++ b/fuji_server/models/community_endorsed_standard_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/community_endorsed_standard_output_inner.py b/fuji_server/models/community_endorsed_standard_output_inner.py index 0f2ca895..f1f42b33 100644 --- a/fuji_server/models/community_endorsed_standard_output_inner.py +++ b/fuji_server/models/community_endorsed_standard_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/core_metadata.py b/fuji_server/models/core_metadata.py index b9a42dfb..d580710a 100644 --- a/fuji_server/models/core_metadata.py +++ b/fuji_server/models/core_metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.core_metadata_output import CoreMetadataOutput diff --git a/fuji_server/models/core_metadata_output.py b/fuji_server/models/core_metadata_output.py index 01954a5b..f2fee40d 100644 --- a/fuji_server/models/core_metadata_output.py +++ b/fuji_server/models/core_metadata_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.output_core_metadata_found import OutputCoreMetadataFound diff --git a/fuji_server/models/data_access_level.py b/fuji_server/models/data_access_level.py index b2f94fd4..50ef52fe 100644 --- a/fuji_server/models/data_access_level.py +++ b/fuji_server/models/data_access_level.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.data_access_output import DataAccessOutput diff --git a/fuji_server/models/data_access_output.py b/fuji_server/models/data_access_output.py index 6f133b4e..b1892896 100644 --- a/fuji_server/models/data_access_output.py +++ b/fuji_server/models/data_access_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/data_content_metadata.py b/fuji_server/models/data_content_metadata.py index 64321e34..a29e5cac 100644 --- a/fuji_server/models/data_content_metadata.py +++ b/fuji_server/models/data_content_metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.data_content_metadata_output import DataContentMetadataOutput diff --git a/fuji_server/models/data_content_metadata_output.py b/fuji_server/models/data_content_metadata_output.py index c49e1c87..eadfb43a 100644 --- a/fuji_server/models/data_content_metadata_output.py +++ b/fuji_server/models/data_content_metadata_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.data_content_metadata_output_inner import DataContentMetadataOutputInner diff --git a/fuji_server/models/data_content_metadata_output_inner.py b/fuji_server/models/data_content_metadata_output_inner.py index 7ad51ec4..2d68d64a 100644 --- a/fuji_server/models/data_content_metadata_output_inner.py +++ b/fuji_server/models/data_content_metadata_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/data_file_format.py b/fuji_server/models/data_file_format.py index 63fca363..8e7cb8cc 100644 --- a/fuji_server/models/data_file_format.py +++ b/fuji_server/models/data_file_format.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.data_file_format_output import DataFileFormatOutput diff --git a/fuji_server/models/data_file_format_output.py b/fuji_server/models/data_file_format_output.py index bf6010b8..1098985b 100644 --- a/fuji_server/models/data_file_format_output.py +++ b/fuji_server/models/data_file_format_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.data_file_format_output_inner import DataFileFormatOutputInner # noqa: F401 diff --git a/fuji_server/models/data_file_format_output_inner.py b/fuji_server/models/data_file_format_output_inner.py index 7a714917..1f585cf8 100644 --- a/fuji_server/models/data_file_format_output_inner.py +++ b/fuji_server/models/data_file_format_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/data_provenance.py b/fuji_server/models/data_provenance.py index 2919542e..fd7b990c 100644 --- a/fuji_server/models/data_provenance.py +++ b/fuji_server/models/data_provenance.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.data_provenance_output import DataProvenanceOutput diff --git a/fuji_server/models/data_provenance_output.py b/fuji_server/models/data_provenance_output.py index e4715d99..1514d4a4 100644 --- a/fuji_server/models/data_provenance_output.py +++ b/fuji_server/models/data_provenance_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.data_provenance_output_inner import DataProvenanceOutputInner diff --git a/fuji_server/models/data_provenance_output_inner.py b/fuji_server/models/data_provenance_output_inner.py index 62e89b52..797a1e50 100644 --- a/fuji_server/models/data_provenance_output_inner.py +++ b/fuji_server/models/data_provenance_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/debug.py b/fuji_server/models/debug.py index 0a59bb4c..f163bd5e 100644 --- a/fuji_server/models/debug.py +++ b/fuji_server/models/debug.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/fair_result_common.py b/fuji_server/models/fair_result_common.py index da9439e5..93e51326 100644 --- a/fuji_server/models/fair_result_common.py +++ b/fuji_server/models/fair_result_common.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.fair_result_common_score import FAIRResultCommonScore diff --git a/fuji_server/models/fair_result_common_score.py b/fuji_server/models/fair_result_common_score.py index dd73219d..5c81e042 100644 --- a/fuji_server/models/fair_result_common_score.py +++ b/fuji_server/models/fair_result_common_score.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/fair_result_evaluation_criterium.py b/fuji_server/models/fair_result_evaluation_criterium.py index cbd5ac22..6e8273f6 100644 --- a/fuji_server/models/fair_result_evaluation_criterium.py +++ b/fuji_server/models/fair_result_evaluation_criterium.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.fair_result_common_score import FAIRResultCommonScore diff --git a/fuji_server/models/fair_result_evaluation_criterium_requirements.py b/fuji_server/models/fair_result_evaluation_criterium_requirements.py index dc45bb98..fd03e881 100644 --- a/fuji_server/models/fair_result_evaluation_criterium_requirements.py +++ b/fuji_server/models/fair_result_evaluation_criterium_requirements.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/fair_results.py b/fuji_server/models/fair_results.py index 6bcdad1d..210d9326 100644 --- a/fuji_server/models/fair_results.py +++ b/fuji_server/models/fair_results.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from datetime import datetime # from fuji_server.models.any_of_fair_results_results_items import AnyOfFAIRResultsResultsItems diff --git a/fuji_server/models/formal_metadata.py b/fuji_server/models/formal_metadata.py index 35d80d2a..2f72b3de 100644 --- a/fuji_server/models/formal_metadata.py +++ b/fuji_server/models/formal_metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/formal_metadata_output.py b/fuji_server/models/formal_metadata_output.py index 8511ad3b..ea571eb5 100644 --- a/fuji_server/models/formal_metadata_output.py +++ b/fuji_server/models/formal_metadata_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.formal_metadata_output_inner import FormalMetadataOutputInner # noqa: F401 diff --git a/fuji_server/models/formal_metadata_output_inner.py b/fuji_server/models/formal_metadata_output_inner.py index a23ded48..9fb02d34 100644 --- a/fuji_server/models/formal_metadata_output_inner.py +++ b/fuji_server/models/formal_metadata_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/harvest.py b/fuji_server/models/harvest.py index c91ab0a4..8bfa244b 100644 --- a/fuji_server/models/harvest.py +++ b/fuji_server/models/harvest.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/harvest_results.py b/fuji_server/models/harvest_results.py index 86644242..5892b5b7 100644 --- a/fuji_server/models/harvest_results.py +++ b/fuji_server/models/harvest_results.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.harvest_results_metadata import HarvestResultsMetadata diff --git a/fuji_server/models/harvest_results_metadata.py b/fuji_server/models/harvest_results_metadata.py index f013ad27..9eee833e 100644 --- a/fuji_server/models/harvest_results_metadata.py +++ b/fuji_server/models/harvest_results_metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/identifier_included.py b/fuji_server/models/identifier_included.py index 1749d116..8bc5c761 100644 --- a/fuji_server/models/identifier_included.py +++ b/fuji_server/models/identifier_included.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/identifier_included_output.py b/fuji_server/models/identifier_included_output.py index ee8f8640..bf305f0a 100644 --- a/fuji_server/models/identifier_included_output.py +++ b/fuji_server/models/identifier_included_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.identifier_included_output_inner import IdentifierIncludedOutputInner diff --git a/fuji_server/models/identifier_included_output_inner.py b/fuji_server/models/identifier_included_output_inner.py index 2cf4e8b0..061657b2 100644 --- a/fuji_server/models/identifier_included_output_inner.py +++ b/fuji_server/models/identifier_included_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/license.py b/fuji_server/models/license.py index 93b83e6d..dc61ab81 100644 --- a/fuji_server/models/license.py +++ b/fuji_server/models/license.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/license_output.py b/fuji_server/models/license_output.py index bab98134..60242a36 100644 --- a/fuji_server/models/license_output.py +++ b/fuji_server/models/license_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.license_output_inner import LicenseOutputInner # noqa: F401 diff --git a/fuji_server/models/license_output_inner.py b/fuji_server/models/license_output_inner.py index c92fc759..d96bf330 100644 --- a/fuji_server/models/license_output_inner.py +++ b/fuji_server/models/license_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/metadata_preserved.py b/fuji_server/models/metadata_preserved.py index c2d55e14..5cd93890 100644 --- a/fuji_server/models/metadata_preserved.py +++ b/fuji_server/models/metadata_preserved.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/metadata_preserved_output.py b/fuji_server/models/metadata_preserved_output.py index 4842b195..758355d4 100644 --- a/fuji_server/models/metadata_preserved_output.py +++ b/fuji_server/models/metadata_preserved_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/metric.py b/fuji_server/models/metric.py index d35ebc0f..b2ad5594 100644 --- a/fuji_server/models/metric.py +++ b/fuji_server/models/metric.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from datetime import date from fuji_server import util diff --git a/fuji_server/models/metrics.py b/fuji_server/models/metrics.py index 66c5c753..24d3e8da 100644 --- a/fuji_server/models/metrics.py +++ b/fuji_server/models/metrics.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.metric import Metric diff --git a/fuji_server/models/output_core_metadata_found.py b/fuji_server/models/output_core_metadata_found.py index b674073c..c6dbd583 100644 --- a/fuji_server/models/output_core_metadata_found.py +++ b/fuji_server/models/output_core_metadata_found.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/output_search_mechanisms.py b/fuji_server/models/output_search_mechanisms.py index d130a4f3..e97c9350 100644 --- a/fuji_server/models/output_search_mechanisms.py +++ b/fuji_server/models/output_search_mechanisms.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/persistence.py b/fuji_server/models/persistence.py index 648bc336..43da4999 100644 --- a/fuji_server/models/persistence.py +++ b/fuji_server/models/persistence.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/persistence_output.py b/fuji_server/models/persistence_output.py index 125eb386..715e4796 100644 --- a/fuji_server/models/persistence_output.py +++ b/fuji_server/models/persistence_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.persistence_output_inner import PersistenceOutputInner diff --git a/fuji_server/models/persistence_output_inner.py b/fuji_server/models/persistence_output_inner.py index e6132557..e03150ca 100644 --- a/fuji_server/models/persistence_output_inner.py +++ b/fuji_server/models/persistence_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/related_resource.py b/fuji_server/models/related_resource.py index df927133..e0333d31 100644 --- a/fuji_server/models/related_resource.py +++ b/fuji_server/models/related_resource.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/related_resource_output.py b/fuji_server/models/related_resource_output.py index d24d4a61..d0a714d1 100644 --- a/fuji_server/models/related_resource_output.py +++ b/fuji_server/models/related_resource_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.related_resource_output_inner import RelatedResourceOutputInner # noqa: F401 diff --git a/fuji_server/models/related_resource_output_inner.py b/fuji_server/models/related_resource_output_inner.py index 3a869488..06c00f04 100644 --- a/fuji_server/models/related_resource_output_inner.py +++ b/fuji_server/models/related_resource_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/searchable.py b/fuji_server/models/searchable.py index 7d6b9453..7512ab21 100644 --- a/fuji_server/models/searchable.py +++ b/fuji_server/models/searchable.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/searchable_output.py b/fuji_server/models/searchable_output.py index 08786e29..196fee90 100644 --- a/fuji_server/models/searchable_output.py +++ b/fuji_server/models/searchable_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.output_search_mechanisms import OutputSearchMechanisms diff --git a/fuji_server/models/semantic_vocabulary.py b/fuji_server/models/semantic_vocabulary.py index 105dd00c..f34c6622 100644 --- a/fuji_server/models/semantic_vocabulary.py +++ b/fuji_server/models/semantic_vocabulary.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/semantic_vocabulary_output.py b/fuji_server/models/semantic_vocabulary_output.py index 5e7416d0..87b1cbc1 100644 --- a/fuji_server/models/semantic_vocabulary_output.py +++ b/fuji_server/models/semantic_vocabulary_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.semantic_vocabulary_output_inner import SemanticVocabularyOutputInner # noqa: F401 diff --git a/fuji_server/models/semantic_vocabulary_output_inner.py b/fuji_server/models/semantic_vocabulary_output_inner.py index c7d1118b..4b62301d 100644 --- a/fuji_server/models/semantic_vocabulary_output_inner.py +++ b/fuji_server/models/semantic_vocabulary_output_inner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/standardised_protocol_data.py b/fuji_server/models/standardised_protocol_data.py index 89ab52ae..5eb99cba 100644 --- a/fuji_server/models/standardised_protocol_data.py +++ b/fuji_server/models/standardised_protocol_data.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/standardised_protocol_data_output.py b/fuji_server/models/standardised_protocol_data_output.py index 6fd4ff67..0edd378b 100644 --- a/fuji_server/models/standardised_protocol_data_output.py +++ b/fuji_server/models/standardised_protocol_data_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/standardised_protocol_metadata.py b/fuji_server/models/standardised_protocol_metadata.py index aeda0370..4bbc9ab1 100644 --- a/fuji_server/models/standardised_protocol_metadata.py +++ b/fuji_server/models/standardised_protocol_metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/standardised_protocol_metadata_output.py b/fuji_server/models/standardised_protocol_metadata_output.py index e1b5e1d8..9cb0ec28 100644 --- a/fuji_server/models/standardised_protocol_metadata_output.py +++ b/fuji_server/models/standardised_protocol_metadata_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/models/uniqueness.py b/fuji_server/models/uniqueness.py index 8cf73eeb..388dd5c4 100644 --- a/fuji_server/models/uniqueness.py +++ b/fuji_server/models/uniqueness.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model from fuji_server.models.debug import Debug diff --git a/fuji_server/models/uniqueness_output.py b/fuji_server/models/uniqueness_output.py index b477973e..fe0bbcd5 100644 --- a/fuji_server/models/uniqueness_output.py +++ b/fuji_server/models/uniqueness_output.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from fuji_server import util from fuji_server.models.base_model_ import Model diff --git a/fuji_server/util.py b/fuji_server/util.py index 7ba99289..1c0baa38 100644 --- a/fuji_server/util.py +++ b/fuji_server/util.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import datetime diff --git a/tests/__init__.py b/tests/__init__.py index e69de29b..329b58ce 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT diff --git a/tests/api/test_urls.py b/tests/api/test_urls.py index 7f1335f5..a856fe29 100644 --- a/tests/api/test_urls.py +++ b/tests/api/test_urls.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/tests/conftest.py b/tests/conftest.py index 5747bef8..722dbc5e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import configparser diff --git a/tests/controllers/test_fair_check.py b/tests/controllers/test_fair_check.py index 308308f3..b22f2910 100644 --- a/tests/controllers/test_fair_check.py +++ b/tests/controllers/test_fair_check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import pytest from fuji_server.controllers.fair_check import FAIRCheck diff --git a/tests/functional/test_evaluation.py b/tests/functional/test_evaluation.py index 3fbcc90a..2a0cb6ad 100644 --- a/tests/functional/test_evaluation.py +++ b/tests/functional/test_evaluation.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/tests/helper/test_preprocessor.py b/tests/helper/test_preprocessor.py index fb921e89..d7cc8c0c 100644 --- a/tests/helper/test_preprocessor.py +++ b/tests/helper/test_preprocessor.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + """ Here we test the Preprocessor class which provides the reference data for a server diff --git a/tests/models/test_harvest.py b/tests/models/test_harvest.py index 743459cb..9eab7b2e 100644 --- a/tests/models/test_harvest.py +++ b/tests/models/test_harvest.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) +# +# SPDX-License-Identifier: MIT + import pytest from fuji_server.models.harvest import Harvest