query: embed.html## Usage chart for several WikiCite-relevant Wikidata properties
  # Note: this chart is based on https://www.wikidata.org/wiki/Template:Property_uses
  # which is updated once a day by PLbot
  
  #defaultView:LineChart
  SELECT ?day ?count ?PID {
    values (?property) {("921") ("50") ("2093") ("577") ("2860") ("1476")} #("108")  ("496")
    bind (concat("|", ?property, "=") as ?p)
    bind (concat(".+\\", ?p, "(\\d+).+") as ?r)
    service wikibase:mwapi {
        bd:serviceParam wikibase:api "Generator" ; wikibase:endpoint "www.wikidata.org" ; mwapi:generator "allpages" ; 
        mwapi:gapfrom "Property_uses" ; mwapi:gapto "Property_uses" ; mwapi:gapnamespace "10" ; 
        mwapi:prop "revisions" ; mwapi:rvprop "content|timestamp" ; mwapi:rvlimit "50" ; mwapi:rvuser "PLbot" .
        ?t1 wikibase:apiOutput "revisions/rev[1]/@timestamp" . ?r1 wikibase:apiOutput "revisions/rev[1]/text()" .
    }
    bind (if(contains(?r1, ?p), xsd:integer(replace(?r1, ?r, "$1")), -1) as ?count)
    filter (?count != -1)
    bind (xsd:dateTime(?t1) as ?day)
    bind (concat("P", ?property) as ?PID)
  }