query-cf9adb35e27ddff8242644a3fcf53cac
Number of species names that are not synonyms 22:28, 7 February 2018 (UTC)) talk (HYanWongI'm looking for a rough estimate of the number of "biological species" in wikidata (i.e. not including synonyms etc). At the risk of starting an argument, can anyone help me with an SparQL query which doesn't simply count the number of names/concepts? 14:15, 8 February 2018 (UTC)) talk (HYanWong homotypic synonym (Q42310380), but I presume that in general, I can't rely on all synonymous names being marked with Q1040689 - they might just have one of the subtypes set. So is there a list somewhere of all the different types of synonym that might be applied to a taxon? And how misleading would the end result be anyway? and. Also, I see that some names are marked e.g. as both synonym (Q1040689) WD:RAQMany thanks. I have asked at 12:42, 8 February 2018 (UTC) Andy's edits; Talk to Andy); Pigsonthewing (Andy Mabbett for a suitable SPARQL query. WD:RAQYes, you can easily get this. You can ask at 08:55, 8 February 2018 (UTC)) talk (HYanWongOh, thanks. So can I not get a count of all instances with "taxon rank"="species" that do not have "instance of":"synonym" set? Or is that misleading in some way? 22:34, 7 February 2018 (UTC)) talk (SuccuUnfortunately due to a lack of data here there is no way to get this. -- Follow-up:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
select (count(?taxon) as ?count){ ?taxon wdt:P105 wd:Q7432 filter not exists { ?taxon wdt:P31/wdt:P279* wd:Q42310380 }