Skip to content

Commit

Permalink
Merge pull request #133 from MaRDI4NFDI/openml_tags
Browse files Browse the repository at this point in the history
add tags as items instead of strings
  • Loading branch information
LizzAlice authored Mar 21, 2024
2 parents 9e2e975 + f4e0485 commit c090252
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mardi_importer/mardi_importer/openml/OpenMLDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit c090252

Please sign in to comment.