2024-06-19 00:39:00 +09:00
|
|
|
from rdflib import URIRef
|
2024-06-19 01:29:40 +09:00
|
|
|
|
2024-06-18 03:09:22 +09:00
|
|
|
from ..namespace import *
|
2024-06-19 00:39:00 +09:00
|
|
|
from . import _TripleMapType
|
2024-06-18 03:09:22 +09:00
|
|
|
from ._katsudo import GbizInfoKatsudoMapper
|
|
|
|
|
|
|
|
|
|
|
|
class GbizInfoChotatsuMapper(GbizInfoKatsudoMapper):
|
|
|
|
"""調達情報"""
|
|
|
|
|
2024-06-19 00:39:00 +09:00
|
|
|
@property
|
|
|
|
def graph(self) -> URIRef:
|
|
|
|
return URIRef("http://hojin-info.go.jp/graph/chotatsu")
|
|
|
|
|
2024-06-18 03:09:22 +09:00
|
|
|
@staticmethod
|
|
|
|
def map_to_triples(row: dict[str, str]) -> list[_TripleMapType]:
|
2024-09-15 03:52:22 +09:00
|
|
|
ss = HJ_EXT[f"{row['ID-識別値']}_{row['キー情報'].strip("\ufeff\"")}"]
|
2024-06-18 03:09:22 +09:00
|
|
|
|
|
|
|
triples = GbizInfoKatsudoMapper.map_to_triples(row)
|
|
|
|
triples.extend(
|
|
|
|
[
|
|
|
|
(ss, RDF.type, HJ.調達型),
|
|
|
|
]
|
|
|
|
)
|
|
|
|
return triples
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["GbizInfoChotatsuMapper"]
|