mirror of
https://github.com/Babibubebon/gbizinfo-lod.git
synced 2024-09-22 22:54:21 +09:00
23 lines
569 B
Python
23 lines
569 B
Python
|
from ..namespace import *
|
||
|
from . import _TripleMapType, bpo
|
||
|
from ._katsudo import GbizInfoKatsudoMapper
|
||
|
|
||
|
|
||
|
class GbizInfoChotatsuMapper(GbizInfoKatsudoMapper):
|
||
|
"""調達情報"""
|
||
|
|
||
|
@staticmethod
|
||
|
def map_to_triples(row: dict[str, str]) -> list[_TripleMapType]:
|
||
|
ss = HJ_EXT[f"{row['ID-識別値']}_{row['キー情報']}"]
|
||
|
|
||
|
triples = GbizInfoKatsudoMapper.map_to_triples(row)
|
||
|
triples.extend(
|
||
|
[
|
||
|
(ss, RDF.type, HJ.調達型),
|
||
|
]
|
||
|
)
|
||
|
return triples
|
||
|
|
||
|
|
||
|
__all__ = ["GbizInfoChotatsuMapper"]
|