Page MenuHomePhabricator

Handle URL formatting
Open, Needs TriagePublic

Description

To format snak values with a link, the URL formatter (P1630) is retrieved and $1 is replaced by the snak value. For some properties (P213, P345, P502, P628, P882, P1323) this simple approach fails because further formatting has to be done to produce valid links. The rules of the additional formatting can be looked up in https://www.wikidata.org/wiki/MediaWiki:Gadget-AuthorityControl.js

Event Timeline

Hjfocs renamed this task from special cases for URL formatting to Handle URL formatting.May 23 2018, 2:12 PM

A folk from my team is developing a script that enriches plain URL references of a dataset serialized in QuickStatements: https://github.com/EdoardoLenzi9/Wikipedia.StrepHit
It does take care of URL formatting, too.