csisc / OpenCitations-Bot

A bot to add citation data from OpenCitations to Wikidata
8 stars 2 forks source link

Add "reference URL" and "retrieved" statements in reference field #12

Closed diegodlh closed 3 years ago

diegodlh commented 3 years ago

The OpenCitations bot now adds a "stated in: CITO" statement in the reference field of the statements it creates. I think it may be useful to also add "reference URL" and "retrieved" statements.

See for example what another bot (LargeDatasetBot) did in Q93088591.

So, for example, item Q107998450 created by the OpenCitations bot could have had "https://opencitations.net/index/api/v1/metadata/10.1017/s0031182098003400" as "reference URL".

"cites work" statements, on the other hand, could have "reference URL" starting with "https://opencitations.net/index/api/v1/references/", I guess.

csisc commented 3 years ago

Of course, this can be done. I will work on this now.

csisc commented 3 years ago

Done. Solved. I added "https://opencitations.net/index/coci/api/v1/" as a reference URL as generating a new reference URL for every new statement is time-consuming. I also added the current date to all the references.