diff --git a/src/NodaWikidataFetcher.php b/src/NodaWikidataFetcher.php index bd991ad..179c0d7 100644 --- a/src/NodaWikidataFetcher.php +++ b/src/NodaWikidataFetcher.php @@ -12,17 +12,17 @@ declare(strict_types = 1); */ final class NodaWikidataFetcher { - const WIKIDATA_FETCH_HEADERS = [ + private const WIKIDATA_FETCH_HEADERS = [ 'User-Agent: museum-digital-bot GND-to-Wikidata PHP/' . PHP_VERSION, 'Accept: application/sparql-results+json', ]; - const LANGUAGES_MAIN_DESC = ['de', 'da', 'en', 'es', 'fr', 'hu', 'it', 'jp', 'nl', 'pt', 'ru', 'sv', 'sk', 'uk', 'zh']; - const LANGUAGES_TO_CHECK = ['ar', 'bg', 'bn', 'cs', 'da', 'de', 'el', 'en', 'es', 'fa', 'fi', 'fr', 'ha', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'ka', 'ko', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'sk', 'sw', 'ta', 'th', 'tl', 'tr', 'uk', 'ur', 'vi', 'zh']; + public const LANGUAGES_MAIN_DESC = ['de', 'da', 'en', 'es', 'fr', 'hu', 'it', 'jp', 'nl', 'pt', 'ru', 'sv', 'sk', 'uk', 'zh']; + public const LANGUAGES_TO_CHECK = ['ar', 'bg', 'bn', 'cs', 'da', 'de', 'el', 'en', 'es', 'fa', 'fi', 'fr', 'ha', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'ka', 'ko', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'sk', 'sw', 'ta', 'th', 'tl', 'tr', 'uk', 'ur', 'vi', 'zh']; - const LANGUAGES_TO_CAPITALIZE = ["cs", "da", "de", "en", "es", "fr", "fi", "id", "it", "nl", "pl", "pt", "ru", "sv", 'sk', "tl", "tr"]; + public const LANGUAGES_TO_CAPITALIZE = ["cs", "da", "de", "en", "es", "fr", "fi", "id", "it", "nl", "pl", "pt", "ru", "sv", 'sk', "tl", "tr"]; - const P_IDS_NODA_TAGS = [ + private const P_IDS_NODA_TAGS = [ 'gnd' => 'P227', 'lcsh' => 'P244', 'aat' => 'P1014', @@ -43,7 +43,7 @@ final class NodaWikidataFetcher { "orcid" => "P496", ]; - const WIKIPEDIA_REMOVE_LITERALS = [ + private const WIKIPEDIA_REMOVE_LITERALS = [ "
Si vous disposez d'ouvrages ou d'articles de référence ou si vous ", '