Page MenuHomePhabricator

Store hints about entities in page_props table
Closed, ResolvedPublic

Description

We need an easy way to list all empty entities, and perhaps also other "kinds" of entities, on special pages etc. This could easily be done via the page_props table, we just need to start using it. The page_props table is fed from the ParserOutput object (via LinksUpdate).

So, EntityContent::getParserOutput() should just add the desired info to the ParserOutput - it could be provided by a getPageProps() method or some such.

Initially supported "hints" or "kinds" could be:

  • empty: contains nothing at all
  • stub: consists only of label(s) and description(s) (and maybe also aliases).

There could be more, like "unlinked" for items with no sitelinks.


Version: unspecified
Severity: enhancement
Whiteboard: u=dev c=backend p=2
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=58032

Details

Reference
bz40157

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 12:47 AM
bzimport set Reference to bz40157.
bzimport added a subscriber: Unknown Object (MLST).
daniel created this task.Sep 11 2012, 8:07 AM

quick note: I think items should be marked as empty based on EntiyObject::isEmpty(). There should probably a similar EntiyObject::isStub() method, though that one would have to be overridden in the ItemObject subclass.

we could also put the number of sitelinks and claims into page_props, to make it easy to search for entities with no or many sitelinks/claims.

To allow efficient queries over page_props, it would need new indexes, see bug 58032.

Change 99385 had a related patch set uploaded by Daniel Kinzler:
(bug 40157) store entity status in page_props.

https://gerrit.wikimedia.org/r/99385

Change 99385 merged by Jeroen De Dauw:
(bug 40157) store entity status in page_props

https://gerrit.wikimedia.org/r/99385

thiemowmde assigned this task to daniel.Jan 5 2017, 9:00 AM
thiemowmde added a project: Wikidata.