From 1d766a0dc70d41734f6217c5478e68294b595ce0 Mon Sep 17 00:00:00 2001 From: Babibubebon Date: Sun, 15 Sep 2024 03:52:22 +0900 Subject: [PATCH] Remove BOM and extra quotes --- gbizinfo_lod/mappers/_katsudo.py | 2 +- gbizinfo_lod/mappers/chotatsu.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gbizinfo_lod/mappers/_katsudo.py b/gbizinfo_lod/mappers/_katsudo.py index b9e2fdb..74efcba 100644 --- a/gbizinfo_lod/mappers/_katsudo.py +++ b/gbizinfo_lod/mappers/_katsudo.py @@ -8,7 +8,7 @@ class GbizInfoKatsudoMapper(CSV2RDFMapper): @staticmethod def map_to_triples(row: dict[str, str]) -> list[_TripleMapType]: s = HJ_DATA[row["ID-識別値"]] - ss = HJ_EXT[f"{row['ID-識別値']}_{row['キー情報']}"] + ss = HJ_EXT[f"{row['ID-識別値']}_{row['キー情報'].strip("\ufeff\"")}"] triples = [ (s, HJ.法人活動情報, ss), diff --git a/gbizinfo_lod/mappers/chotatsu.py b/gbizinfo_lod/mappers/chotatsu.py index 9666f95..219f135 100644 --- a/gbizinfo_lod/mappers/chotatsu.py +++ b/gbizinfo_lod/mappers/chotatsu.py @@ -14,7 +14,7 @@ class GbizInfoChotatsuMapper(GbizInfoKatsudoMapper): @staticmethod def map_to_triples(row: dict[str, str]) -> list[_TripleMapType]: - ss = HJ_EXT[f"{row['ID-識別値']}_{row['キー情報']}"] + ss = HJ_EXT[f"{row['ID-識別値']}_{row['キー情報'].strip("\ufeff\"")}"] triples = GbizInfoKatsudoMapper.map_to_triples(row) triples.extend(