Martaannaj added a comment.

  In T285098#7212186 <https://phabricator.wikimedia.org/T285098#7212186>, 
@Lucas_Werkmeister_WMDE wrote:
  
  > I noticed something strange while testing the wmcloud suggester:
  >
  >   $ curl -s --data-raw '{"Properties":[],"Types":[]}' 
'https://recommender.wmcloud.org/recommender' | jq '.recommendations | .[] | 
select(.property | contains("entity"))' | head -25
  >   {
  >     "property": "t#http://www.wikidata.org/entity/Q13442814";,
  >     "probability": 0.3913980623938509
  >   }
  >   {
  >     "property": "t#http://www.wikidata.org/entity/Q5";,
  >     "probability": 0.095606796510795
  >   }
  >   {
  >     "property": "t#http://www.wikidata.org/entity/Q4167836";,
  >     "probability": 0.05041456380639843
  >   }
  >   {
  >     "property": "t#http://www.wikidata.org/entity/Q523";,
  >     "probability": 0.03463687290548014
  >   }
  >   {
  >     "property": "t#http://www.wikidata.org/entity/Q16521";,
  >     "probability": 0.030493683112935314
  >   }
  >   {
  >     "property": "t#http://www.wikidata.org/entity/Q318";,
  >     "probability": 0.022078375242171346
  >   }
  >   {
  >
  > Some of the suggestions are entity URIs instead of property URIs… and they 
start with a random `t#`?
  
  The  `t#` is used as a way how to recognise the entities (types) when 
building/serving the tree. They definitely shouldn't be included in the 
response, I just pushed the fix (the service running on wmcloud also has the 
updated version) so now the response should contain only properties.

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

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

To: Martaannaj
Cc: Lucas_Werkmeister_WMDE, Martaannaj, Michaelcochez, Michael, Addshore, 
Aklapper, Biggs657, Invadibot, Lalamarie69, maantietaja, Juan90264, 
Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, Iflorez, Kent7301, 
alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, 
Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, 
Lewizho99, Maathavan, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, 
Lydia_Pintscher, Sjoerddebruin, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to