mirror of
https://github.com/Babibubebon/gbizinfo-lod.git
synced 2024-09-22 22:54:21 +09:00
Compare commits
2 commits
48faee8b7b
...
e744e08bee
Author | SHA1 | Date | |
---|---|---|---|
e744e08bee | |||
1d766a0dc7 |
3 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "gbizinfo-lod"
|
name = "gbizinfo-lod"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
description = "A tool to generate LOD datasets for gBizINFO"
|
description = "A tool to generate LOD datasets for gBizINFO"
|
||||||
authors = ["Babibubebon <babibubebon@babibubebo.org>"]
|
authors = ["Babibubebon <babibubebon@babibubebo.org>"]
|
||||||
homepage = "https://github.com/Babibubebon/gbizinfo-lod"
|
homepage = "https://github.com/Babibubebon/gbizinfo-lod"
|
||||||
|
|
Loading…
Reference in a new issue