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.
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
Right now a reference is recorded as:
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:
I am explicitly suggesting omitting publication date and type of reference even though they would be trivial to fetch to avoid data duplication.