On 15/10/2017 05:39, Michael Reichert wrote:
And even if detecting disambiguation pages in Wikipedia would miss too
much of them, you could use Wikidata to check if the Wikipedia page the
Wikidata item points to is a disambiguation page according to Wikidata?
While wroting the paragraph above, I wondered how the status of a
Wikipedia page a Wikidata item links to is maintained. Is there a bot
updating them every hour in Wikidata? If there is no such bot (or it is
not running every minute or hour), there is no need for wikidata=* tags
in OSM to find wikipedia=* tags pointing to disambiguation pages because
you could get the status of a Wikipedia page by parsing the Wikipedia
page itself.
When a Wikidata item is modified to link to a Wikipedia article (or
Wikivoyage article etc.), the Wikipedia article automatically links back
to the Wikidata item. This is a software feature made possible because
Wikipedia and Wikidata are colocated in the same database cluster. No
bots are involved; this is unlike the process by which interwiki links
used to be maintained before Wikidata was introduced.
When a Wikipedia article is renamed, it does temporarily get detached
from the Wikidata item because the task of updating the Wikidata item
falls to a process that runs asynchronously on a job queue. It isn't
possible for OpenStreetMap, as an external site, to automatically update
its wikipedia tags via the same mechanism. However, in principle, one
could write a bot that consumes Wikipedia's or Wikidata's recent changes
feed, looking for features to update. I'm not personally proposing to
run such a bot, to be clear. And one of the benefits of wikidata tags is
that such a bot would decrease in necessity over time, since Wikidata
QIDs are more stable.
--
m...@nguyen.cincinnati.oh.us
_______________________________________________
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk