Hoi, Magnus does use subcategories extensively in his tools. It is not WDQS but it is data. Be warned, many of the "lists" and "categories" in Wikidata are not only this but are reused for other purposes. Thanks, GerardM
On 6 October 2016 at 20:57, Thad Guidry thadguidry@gmail.com wrote:
Hello team :)
So while I'm helping with the Wikidata - Schema.org mappings, a request came in to expose subcategories of an existing Wikipedia category.
For example, say I start with this topic: https://www.wikidata. org/wiki/Q27119725 Parking facilities
The topic's main category is shown as "Category:Parking facilities" and that has links to Wikipedia, specifically a Wikipedia category link, and where the WP category page has subcategories that I would like to expose somehow in whichever way is *easiest* currently with our tools, apis, etc.
Can it all be done in SPARQL against some services that already expose WP subcategories given a specific category ? Or is there an API that does this already ? other tools that might expose WP categories ?
The IDEAL GOAL is to query 'equivalent class' = schema.org/ParkingFacility and get back the WP categories *in one shot or query or api call.*
http://schema.org/ParkingFacility
Parking facilities in India https://en.wikipedia.org/wiki/Category:Parking_facilities_in_India
- Parking facilities in the United States
https://en.wikipedia.org/wiki/Category:Parking_facilities_in_the_United_States
- Aircraft hangars
https://en.wikipedia.org/wiki/Category:Aircraft_hangars
- Garages (parking)
https://en.wikipedia.org/wiki/Category:Garages_(parking)
- Railway depots
https://en.wikipedia.org/wiki/Category:Railway_depots
Any gurus ?
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata