0

I tried to find the states of USA with Wikidata API but there is no results.

For example: http://wdq.wmflabs.org/api?q=claim[150:30]

What am I doing wrong?

Termininja
  • 6,620
  • 12
  • 48
  • 49
Enstl
  • 15
  • 3

2 Answers2

0

You need all Wikidata items which have P31 with value Q35657: claim[31:35657]

Termininja
  • 6,620
  • 12
  • 48
  • 49
0

With SPARQL, you can do that

SELECT ?state ?stateLabel
WHERE { 
   ?state wdt:P31 wd:Q35657.
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

try it here

innovimax
  • 440
  • 5
  • 8