CLAIM seems to expect that the target is an item number, rather than a
text string. For string properties, I think the correct query is:

STRING[486:"D008180"]

http://tools.wmflabs.org/autolist/index.php?language=en&project=wikipedia&category=&depth=12&wdq=STRING[486%3A%22D008180%22]&mode=undefined&statementlist=&run=Run&label_contains=&label_contains_not=&chunk_size=10000

Andrew.

On 24 October 2014 18:13, Benjamin Good <ben.mcgee.g...@gmail.com> wrote:
> Using the autolist 2 tool (http://tools.wmflabs.org/autolist/index.php), I
> enter the WDQ query:
> CLAIM[486:"D008180"]
>
> which I think means "Give me the items that have MeSH id = "D008180" ".  It
> does indeed return an item with that claim Q1495661
>
> but also returns items that have an no value as the object of that
> relationship, such as
> http://www.wikidata.org/wiki/Q3377653
> http://www.wikidata.org/wiki/Q7796109
> http://www.wikidata.org/wiki/Q1598365
>
> Is this a bug in the query API or a bug in my query ?



-- 
- Andrew Gray
  andrew.g...@dunelm.org.uk

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

Reply via email to