query-39062e3b6d3468f3263c1ad5952c105d

rq turtle/ttl

Categorie Commons precisabili

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?wikiloves ?commons WHERE {
  ?item wdt:P2186 ?wikiloves .
  ?item wdt:P17 wd:Q38 .
  ?item wdt:P373 ?commons.
  {
    SELECT ?commons2  WHERE {
    ?item2 wdt:P2186 ?wikiloves .
    ?item2 wdt:P17 wd:Q38 .
    ?item2 wdt:P373 ?commons2.
    }
    GROUP BY ?commons2
    HAVING (COUNT(?commons2) >1)
  }
  FILTER(?commons = ?commons2)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
}
ORDER BY ?commons2

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?_anon_42b5416610844a34809f33a099ae9de117649") v2("?commons"):::projected v1("?commons2") v3("?item"):::projected v5("?item2") v4("?wikiloves"):::projected a1((" ")) c3(["wd:Q38"]):::iri c7(["bd:serviceParam"]):::iri c9(["it"]):::literal f0[["?commons = ?commons2"]] f0 --> v2 f0 --> v1 v3 --"wdt:P2186"--> v4 v3 --"wdt:P17"--> c3 v3 --"wdt:P373"--> v2 f1[[" > '1^^xsd:integer'"]] f1 --> a1 v5 --"wdt:P2186"--> v4 v5 --"wdt:P17"--> c3 v5 --"wdt:P373"--> v1 bind3[/"count(?commons2)"/] v1 --o bind3 bind3 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end