User:Marsupium/Module:Sandbox/Technique/testcases

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

color qualifier examples found with this query:

  • >1 color, found with this query:
    SELECT DISTINCT ?item ?value ?valueLabel (COUNT(?color) AS ?colorNum) ?instance_of ?instance_ofLabel ?image WHERE {
      ?item p:P186 ?st.
      ?st ps:P186 ?value;
        pq:P462 ?color.
    #  ?item wdt:P31 wd:Q860861. # wd:Q3305213.
      OPTIONAL { ?item wdt:P31 ?instance_of. }
      OPTIONAL { ?item wdt:P18 ?image. }
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    }
    GROUP BY ?item ?itemLabel ?value ?valueLabel ?instance_of ?instance_ofLabel ?image
    ORDER BY DESC (?colorNum)
    #LIMIT 10000
    
    Try it!
  • {{#invoke:Sandbox/Marsupium/Technique|get_medium|item=Q50345879|lang=en}}
    acrylic on board Edit this at Wikidata