query-1f314b862e750b820fc85003221e675c
All Properties associated with Items related to Wikiproject Looted heritage (Q124538244)
Use at
- https://query.wikidata.org/sparql
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 DISTINCT ?property ?propertyLabel ?count ?report
WHERE {
{
SELECT ?property (COUNT(DISTINCT ?item) AS ?count)
WHERE {
?item wdt:P5008 wd:Q124538244 . # On the focus list of Wikiproject Looted Heritage
?item ?predicate ?value .
?property wikibase:directClaim ?predicate .
}
GROUP BY ?property
} SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
BIND(IRI(CONCAT("https://query.wikidata.org/#SELECT%20%3Fitem%20%3FitemLabel%20%3Fvalue%20%3FvalueLabel%20WHERE%20%7B%0A%20%20%20%20%3Fitem%20wdt%3AP31%20wd%3AQ124538244%20.%20%0A%20%20%20%20%3Fitem%20%3Fpredicate%20%3Fvalue%20.%20%0A%20%20%20%20%3Fproperty%20wikibase%3AdirectClaim%20%3Fpredicate%20.%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%7D%0A%7D%0A")) AS ?report)
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count"):::projected
v2("?item")
v3("?predicate")
v5("?property"):::projected
v6("?report"):::projected
v4("?value")
c2(["wd:Q124538244"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
v2 --"wdt:P5008"--> c2
v2 -->v3--> v4
v5 --"wikibase:directClaim"--> v3
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"concat('https://query.wikidata.org/#SELECT%20%3Fitem%20%3FitemLabel%20%3Fvalue%20%3FvalueLabel%20WHERE%20%7B%0A%20%20%20%20%3Fitem%20wdt%3AP31%20wd%3AQ124538244%20.%20%0A%20%20%20%20%3Fitem%20%3Fpredicate%20%3Fvalue%20.%20%0A%20%20%20%20%3Fproperty%20wikibase%3AdirectClaim%20%3Fpredicate%20.%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%7D%0A%7D%0A')"/]
bind2 --as--o v6