2

I am trying to query Wikidata to find out the capacities of all event venues in specific geographic regions (US urban centers). They have this service for querying: Wikidata Query Service

The answer in the related question below gave this query as an example for getting the capacities of arenas:

SELECT ?arena ?arenaLabel ?maximum_capacity WHERE {

  SERVICE wikibase:label { bd:serviceParam wikibase:language " 
   [AUTO_LANGUAGE],en". }

  ?arena wdt:P31 wd:Q641226.
  OPTIONAL { ?arena wdt:P1083 ?maximum_capacity. }
}

I tried to modify it a bit to get the capacities of event venues, not just arenas, but I don't get any results:

SELECT ?venue ?maximum_capacity WHERE {

  SERVICE wikibase:label { bd:serviceParam wikibase:language " 
   [AUTO_LANGUAGE],en". }

  ?venue wdt:P31 wd:Q7463935.

  OPTIONAL { ?venue wdt:P1083 ?maximum_capacity. }
}

I think the issue partly is that wd:Q7463935 says 'Category' so maybe 'wdt:P31' = 'is instance of' is not the correct way to phrase this.

Any ideas are much appreciated.

Related Question: Capacity/attendance information for US event venues

  • 3
    Basically, like this: w.wiki/4GX – Stanislav Kralin May 23 at 21:08
  • @StanislavKralin Thanks, that's perfect! So far I've been looping over the names of the venues I'm interested in and getting their capacity, this is very helpful. If you post this as an answer I'll accept it. If you post as an answer I'll accept it. – Mike May 24 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.