SuLab / scheduled-bots

GeneWiki Scheduled Bots
MIT License
9 stars 15 forks source link

Possible broken items #22

Open floatingpurr opened 6 years ago

floatingpurr commented 6 years ago

Excuse me if the title is not much informative but it seems like something weird is going on in some items annotated with Ensembl Gene ID (P594).

According to Wikidata data model, we should have this kind of graph pattern:

wd:item wdt:property ?value .
wd:item p:property ?statement .
?statement ps:property ?value .

Sometimes it seems like such a pattern does not exists at all. E.g.,

ASK WHERE
{
  wd:Q18047295 wdt:P594 ?ensembl.
  wd:Q18047295 p:P594 ?statement .
  ?statement ps:P594 ?ensembl .
}

# False

Try it!

Indeed, if I try:

SELECT * WHERE
{
  wd:Q18047295 p:P594 ?statement .
  ?statement ps:P594 ?ensembl . 
}

Try it!

I get no matching records found. Interestingly, If I try the same queries after a copule of minutes, the result does change. It seems like the result depends on the server node I'm actually hitting (or on its caching system), therefore if the query hits the one(s) with broken items, I get no data.

Could it be a kind of problem like the one discussed in https://github.com/SuLab/WikidataIntegrator/issues/65?

stuppie commented 6 years ago

Probably same issue as in 65. I edited the statement manually, waited 5 min, and now it shows up. I'd say make a new phabricator issue and notify stan?

floatingpurr commented 6 years ago

Did it: https://phabricator.wikimedia.org/T207675