dpriskorn / LexUse

Scripts related to Wikidata Lexemes and getting usage examples from different CC0 data sources.
GNU General Public License v3.0
1 stars 4 forks source link

Enhancement: Improved references #19

Open Ainali opened 3 years ago

Ainali commented 3 years ago

Right now a reference is recorded as:

stated in                              open data portal of the Swedish Parliament
Swedish Riksdag document ID            G8022779
retrieved                              12 February 2021
publication date                       1 January 1984
type of reference                      written work

Which is top-notch for external references. However, G8022779 is available on Wikidata as Q98037849. In case a reference is (and it can easily be tested with http://hub.toolforge.org/P8433:G8022779 or a query like https://w.wiki/zHv ), a better reference would be simple like this:

stated in                              Q98037849
retrieved                              12 February 2021

I am explicitly suggesting omitting publication date and type of reference even though they would be trivial to fetch to avoid data duplication.

dpriskorn commented 3 years ago

pseudo code for this is before adding usage example: new function: result = check_riksdagen_id(id) if riksdagen id exist: call add_usage_example with it else: do as now