From f4e048560384660a592983f730626f3623817064 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 21 Mar 2024 14:32:24 +0100 Subject: [PATCH] add tags as items instead of strings --- mardi_importer/mardi_importer/openml/OpenMLDataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mardi_importer/mardi_importer/openml/OpenMLDataset.py b/mardi_importer/mardi_importer/openml/OpenMLDataset.py index 3c8e0da..fe64720 100644 --- a/mardi_importer/mardi_importer/openml/OpenMLDataset.py +++ b/mardi_importer/mardi_importer/openml/OpenMLDataset.py @@ -162,7 +162,8 @@ def insert_claims(self): prop_nr = self.api.get_local_id_by_label("OpenML semantic tag", "property") tag_claims = [] for vt in valid_tags: - claim = self.api.get_claim(prop_nr, vt) + vt_id = self.api.get_local_id_by_label(vt, "item") + claim = self.api.get_claim(prop_nr, vt_id) tag_claims.append(claim) self.item.add_claims(tag_claims) if self.paper_url and self.paper_url != "None":