diff --git a/mardi_importer/mardi_importer/zbmath/ZBMathAuthor.py b/mardi_importer/mardi_importer/zbmath/ZBMathAuthor.py index 6af6cec..40574c0 100644 --- a/mardi_importer/mardi_importer/zbmath/ZBMathAuthor.py +++ b/mardi_importer/mardi_importer/zbmath/ZBMathAuthor.py @@ -30,6 +30,11 @@ def init_item(self): item.labels.set(language="en", value=self.name) # instance of: human item.add_claim("wdt:P31", "wd:Q5") + profile_prop = self.api.get_local_id_by_label("MaRDI profile type", "property") + profile_target = self.api.get_local_id_by_label("MaRDI person profile", "item")[ + 0 + ] + item.add_claim(profile_prop, profile_target) if self.zbmath_author_id: # if self.name: # # is there a human with zbmath author ID = zbmath_author_id diff --git a/mardi_importer/mardi_importer/zbmath/ZBMathPublication.py b/mardi_importer/mardi_importer/zbmath/ZBMathPublication.py index 8e00327..68c0970 100644 --- a/mardi_importer/mardi_importer/zbmath/ZBMathPublication.py +++ b/mardi_importer/mardi_importer/zbmath/ZBMathPublication.py @@ -80,7 +80,10 @@ def __init__( def init_item(self): item = self.api.item.new() item.labels.set(language="en", value=self.title) - item.descriptions.set(language="en", value=f"scientific article; zbMATH DE number {self.de_number}") + item.descriptions.set( + language="en", + value=f"scientific article; zbMATH DE number {self.de_number}", + ) return item def create(self): @@ -137,6 +140,11 @@ def insert_claims(self): claim = self.api.get_claim(self.keyword_prop, k) kw_claims.append(claim) self.item.add_claims(kw_claims) + profile_prop = self.api.get_local_id_by_label("MaRDI profile type", "property") + profile_target = self.api.get_local_id_by_label( + "MaRDI publication profile", "item" + )[0] + self.item.add_claim(profile_prop, profile_target) def exists(self): """Checks if a WB item corresponding to the publication already exists.