gbizinfo-lod/gbizinfo_lod/mappers/chotatsu.py

23 lines
569 B
Python
Raw Normal View History

2024-06-18 03:09:22 +09:00
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"]