| Multichill added a comment. |
In T114617#3115238, @Ladsgroup wrote:I've looked into this a little and it seems it's not easily doable. Item->getStatements() returns StatementList which without doing several SQL lookups we can not distinguish statements which their property is of a certain data type.
Link? Why several lookups? Looking at MariaDB [wikidatawiki_p]> SELECT * from wb_property_info LIMIT 1000,100; I get things back like:
| 1392 | external-id | {"type":"external-id","formatterURL":"http:\/\/www.comicbookdb.com\/creator.php?ID=$1"} |
for https://www.wikidata.org/wiki/Property:P1392 . This could be cached so you don't have to hit the database each time and if it's getting parsed anyway, Could also populate the externallinks table if it gets parsed anyway. I wonder how the imagelinks table gets populated. Solution is probably similar.
TASK DETAIL
EMAIL PREFERENCES
To: Multichill
Cc: Ladsgroup, Lydia_Pintscher, daniel, aude, Esc3300, StudiesWorld, hoo, Aklapper, Multichill, QZanden, D3r1ck01, Izno, Wikidata-bugs, Mbch331
Cc: Ladsgroup, Lydia_Pintscher, daniel, aude, Esc3300, StudiesWorld, hoo, Aklapper, Multichill, QZanden, D3r1ck01, Izno, Wikidata-bugs, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
