Hi Sebastian,

There was a rank on https://www.wikidata.org/wiki/Q14565723#P31 third value. By default, SPARQL query only give the best ranked values. It is useful for series of values, like for population to give only the more cent one by default.
Here I see no reason why the rank was used, I removed it. Now there is 4 results, including K9-Mail.

That said, maybe a better way to request would be with P275 (license).

Cheers, ~nicolas

2018-06-04 13:50 GMT+02:00 Sebastian Kürten <sebastian.kuerten@fu-berlin.de>:
Hello,

I'm trying to retrieve a list of open source mobile applications using
the Wikidata Query Service. After identifying the item for K9-Mail
(Q14565723), I can see that it has "instance of" (P31) set to both
"free software" (Q341) and "mobile app" (Q620615). I hence derived the
following SPARQL query, to retrieve similar items:

    SELECT ?software ?softwareLabel
    WHERE
    {
      ?software wdt:P31 wd:Q341, wd:Q620615.
      SERVICE wikibase:label { bd:serviceParam wikibase:language
        "[AUTO_LANGUAGE]". }
    }

It returns three results, but to my suprise, it does not return the
item for K9-Mail. Given that the query is such a simple one, I'm
wondering what I am doing wrong here? Or is something else possibly not
working correctly?

Thanks for your help,
Sebastian

_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata