Uzume added a comment.

  I agree that Special:WhatLinksHere is probably not the right semantics for 
this request, `haswbstatement` might be better semantics, however, those need 
to be well defined so people know if in fact they would address this request.
  
  For example, I assume this would return statements where the claim value is a 
specific item (possibly filtering by a specific property of item type), 
however, remember items can be values for properties that appear in claim 
qualifiers and statement references too.
  
  Special:WhatLinksHere would capture all such statements and more.
  
  Instead of focusing on only item values, perhaps a Lua-based statement query 
is more useful (and could cover more property types than just items). I am not 
sure how feasible it is to consider queries during page render but the general 
idea is a Lua-based query that is more restrictive than SPARQL (so it can run 
within page render).
  
  One possibility I can envision would be to take the query out of the page 
render and instead making it the result of some sort of cached value that can 
be obtained via Scribunto Lua. Perhaps we need another service, like a bot that 
runs such queries and stores/caches the results. Looking at what is available 
to Scribunto Lua, I am thinking of a service that pulls a SPARQL queries from 
Tabular Data (:Commons:Data: via Extension:JsonConfig) and returns the results 
there. The service bot could periodically patrol Tabular Data looking for and 
executing such queries and updating the results when they change. Scribunto Lua 
modules could then obtain the results of these queries. There is probably lots 
of room for optimization but that is at one vision of mine on how to generalize 
and solve this problem.

TASK DETAIL
  https://phabricator.wikimedia.org/T185313

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Uzume
Cc: Amadalvarez, alaa_wmde, hoo, lucamauri, Mahir256, Njardarlogar, Townie, 
Uzume, Aklapper, Ghuron, darthmon_wmde, Dinadineke, DannyS712, Nandana, 
tabish.shaikh91, Lahi, Gq86, GoranSMilovanovic, Soteriaspace, Jayprakash12345, 
JakeTheDeveloper, QZanden, merbst, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Wikidata-bugs, aude, TheDJ, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to