Skip to content

Commit

Permalink
Merge pull request #156 from MaRDI4NFDI/corrections
Browse files Browse the repository at this point in the history
Corrections
  • Loading branch information
LizzAlice authored Nov 5, 2024
2 parents 62b1bb2 + 2842a5a commit e1b5e18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mardi_importer/mardi_importer/zbmath/ZBMathAuthor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def __init__(self, integrator, name, zbmath_author_id, label_id_dict,):
self.name = None
self.QID = None
self.zbmath_author_id = zbmath_author_id.strip()
self.item = self.init_item()
self.label_id_dict = label_id_dict
self.item = self.init_item()

def init_item(self):
item = self.api.item.new()
Expand Down
9 changes: 5 additions & 4 deletions mardi_importer/mardi_importer/zbmath/ZBMathSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ def setup(self):
self.label_id_dict["keyword_prop"] = self.integrator.get_local_id_by_label( #keyword_prop
"zbMATH Keywords", "property"
)
self.label_id_dict["review_prop"] = self.api.get_local_id_by_label("review text", "property")
self.label_id_dict["mardi_profile_type_prop"] = self.api.get_local_id_by_label("MaRDI profile type", "property")
self.label_id_dict["mardi_publication_profile_item"] = self.api.get_local_id_by_label(
self.label_id_dict["review_prop"] = self.integrator.get_local_id_by_label("review text", "property")
self.label_id_dict["mardi_profile_type_prop"] = self.integrator.get_local_id_by_label("MaRDI profile type", "property")
self.label_id_dict["mardi_publication_profile_item"] = self.integrator.get_local_id_by_label(
"MaRDI publication profile", "item"
)[0]
self.label_id_dict["mardi_person_profile_item"] = self.api.get_local_id_by_label("MaRDI person profile", "item")[0]
self.label_id_dict["mardi_person_profile_item"] = self.integrator.get_local_id_by_label("MaRDI person profile", "item")[0]



Expand Down Expand Up @@ -498,6 +498,7 @@ def push(self):
integrator=self.integrator,
name=a,
zbmath_author_id=a_id,
label_id_dict=self.label_id_dict,
)
local_author_id = author.create()
except Exception as e:
Expand Down

0 comments on commit e1b5e18

Please sign in to comment.