Remove BOM and extra quotes

This commit is contained in:
Babibubebon 2024-09-15 03:52:22 +09:00
parent 48faee8b7b
commit 1d766a0dc7
Signed by: Babibubebon
GPG key ID: 78C8FB2A2FEA1EE3
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ class GbizInfoKatsudoMapper(CSV2RDFMapper):
@staticmethod @staticmethod
def map_to_triples(row: dict[str, str]) -> list[_TripleMapType]: def map_to_triples(row: dict[str, str]) -> list[_TripleMapType]:
s = HJ_DATA[row["ID-識別値"]] s = HJ_DATA[row["ID-識別値"]]
ss = HJ_EXT[f"{row['ID-識別値']}_{row['キー情報']}"] ss = HJ_EXT[f"{row['ID-識別値']}_{row['キー情報'].strip("\ufeff\"")}"]
triples = [ triples = [
(s, HJ.法人活動情報, ss), (s, HJ.法人活動情報, ss),

View file

@ -14,7 +14,7 @@ class GbizInfoChotatsuMapper(GbizInfoKatsudoMapper):
@staticmethod @staticmethod
def map_to_triples(row: dict[str, str]) -> list[_TripleMapType]: 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 = GbizInfoKatsudoMapper.map_to_triples(row)
triples.extend( triples.extend(