Skip to content

Commit df59d8e

Browse files
authored
fix #154
1 parent f8df187 commit df59d8e

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,26 @@ information, a server (server) if the Wikibase instance is not Wikidata and a fl
172172
The last parameter will do a partial merge for all statements which do not conflict. This should generally be avoided because it
173173
leaves a crippled item in Wikidata. Before a merge, any potential conflicts should be resolved first.
174174

175-
## Pubmed Articles ##
176-
The class wdi_core.wdi_helpers.PubmedItem allows you to create article items. Given a PMID, it will create an item representing this journal article. It can also retrieve existing items. This is useful for quickly creating items to use in reference statements.
175+
## Adding publication records ##
176+
The class wdi_core.wdi_helpers. PublicationHelper allows you to create article items. This helper function supports extracting publication records from the following resources:
177+
* crossref
178+
* europepmc
179+
* arxiv
180+
* biorxiv
181+
* chemrxiv
182+
183+
Given an identifier from above-mentioned resources an item representing this journal article will either be created or fetched.
184+
185+
Below is an example snippet to create an item from a DOI:
186+
187+
```
188+
from wikidataintegrator import wdi_core, wdi_login, wdi_helpers
189+
DOI = "<DOI>"
190+
WDUSER = "<wikidata user>"
191+
WDPASS = "<wikidata password>"
192+
login = wdi_login.WDLogin(WDUSER, WDPASS)
193+
print(wdi_helpers.PublicationHelper(DOI, id_type="doi", source="crossref").get_or_create(login))
194+
```
177195

178196
## Database Release ##
179197
The class wdi_core.wdi_helpers.Release allows you to create an item for a database release. These should be used in reference statements. See [here](https://www.wikidata.org/wiki/User:ProteinBoxBot/evidence#Guidelines_for_Referencing_Databases.2C_Ontologies_and_similar_Web-native_information_entities.)

0 commit comments

Comments
 (0)