hoo added a comment. |
Just to re-explain this, because I think it might not have been clear enough before:
Currently we join the wb_entity_per_page table against the wb_terms table (term_entity_id = epp_entity_id AND term_entity_type = epp_entity_type).
After this change, we will join the page table against the wb_terms table. Given the wb_terms table only has the entity type and the numeric entity id, we will need to use REPLACE() in SQL for this join (term_entity_type = "known-entity-type" AND term_entity_id = REPLACE(page_title, 'known-entity-prefix', '')). Due to this we can only provide this functionality for entity types where we know how to programmatically construct the entity id serialization from the entity-type and the numeric entity id.
Cc: Izno, Lydia_Pintscher, gerritbot, hoo, Aklapper, Zppix, daniel, Lewizho99, Maathavan, D3r1ck01, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs