Dreams:taxon-index: Difference between revisions

Jump to navigation Jump to search
 
Line 5: Line 5:


SELECT  
SELECT  
  ?mønstre
   ?rapporter
   ?rapporter
   ?takson ?taksonLabel
   ?takson ?taksonLabel
Line 10: Line 11:
WITH {
WITH {
   SELECT
   SELECT
     (COUNT(DISTINCT ?report) AS ?rapporter)
     (COUNT(DISTINCT ?mønster) AS ?mønstre)
    (COUNT(DISTINCT ?rapport) AS ?rapporter)
     ?takson
     ?takson
   WHERE {
   WHERE {
     ?takson dreamst:P2 dreams:Q215 .
     ?takson dreamst:P2 dreams:Q215 .
     OPTIONAL { ?report dreamst:P28 ?takson . }
     OPTIONAL { ?rapport dreamst:P28 ?takson . }
    OPTIONAL { ?mønster dreamst:P55 ?takson . }
   }
   }
   GROUP BY ?takson
   GROUP BY ?takson
Line 22: Line 25:
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da,en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da,en". }
}
}
ORDER BY DESC(?rapporter)
ORDER BY DESC(?mønstre) DESC(?rapporter)
}}
}}

Navigation menu