3 ms·
Are you sure there are more than 2410 universities in France? Running the SPARQL query below at https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%3Fsc
by yorwba 7y ago
Are you sure there are more than 2410 universities in France? Running the SPARQL query below at https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%3Fschool%29%20AS%20%3Fcount%29%0AWHERE%0A%7B%0A%20%20%20%20%23%20find%20instances%20of%20subclasses%20of%20university%20Q3918%20%28use%20Q38723%20for%20higher%20education%20institution%29%0A%09%3Fschool%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ3918%20.%0A%0A%20%20%20%20%23%20in%20France%0A%09%3Fschool%20wdt%3AP17%20wd%3AQ142%20.%0A%7D https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%... , I get 218 French universities with a Wikidata item (which usually means there's a corresponding Wikipedia article) but for "higher education institution" I get 675: https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%3Fschool%29%20AS%20%3Fcount%29%0AWHERE%0A%7B%0A%20%20%20%20%23%20find%20instances%20of%20subclasses%20of%20higher%20education%20institution%20%28use%20Q3918%20for%20university%29%0A%09%3Fschool%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ38723%20.%0A%0A%20%20%20%20%23%20in%20France%0A%09%3Fschool%20wdt%3AP17%20wd%3AQ142%20.%0A%7D https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%...
Query:
SELECT (count(DISTINCT ?school) AS ?count)
WHERE
{
# find instances of subclasses of university Q3918 (use Q38723 for higher education institution)
?school wdt:P31/wdt:P279* wd:Q3918 .
# in France
?school wdt:P17 wd:Q142 .
}