Dreams:taxon-index: Difference between revisions

From DREAMS
Jump to navigation Jump to search
(Created page with "== Taxons == {{SPARQL | query= PREFIX dreams: <https://dreams.wikibase.cloud/entity/> PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/> SELECT ?reports ?taxon WITH { SELECT (COUNT(DISTINCT ?report) AS ?reports) ?taxon WHERE { ?report dreamst:P28 ?taxon . } GROUP BY ?taxon } AS %result WHERE { INCLUDE %result SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da,en". } } ORDER BY DESC(?reports) }}")
 
Line 6: Line 6:
SELECT  
SELECT  
   ?reports
   ?reports
   ?taxon
   ?taxon ?taxonLabel
WITH {
WITH {
   SELECT
   SELECT

Revision as of 13:58, 26 August 2022

Taxons

PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>

SELECT 
  ?reports
  ?taxon ?taxonLabel
WITH {
  SELECT
    (COUNT(DISTINCT ?report) AS ?reports)
    ?taxon
  WHERE {
    ?report dreamst:P28 ?taxon .
  }
  GROUP BY ?taxon
} AS %result
WHERE {
  INCLUDE %result
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da,en". }
}
ORDER BY DESC(?reports)