query-3bdd895b97d3e82c2d77bcff6c7d8f02

rq turtle/ttl

Sample queries from "50 things"The sample queries below can have their archives at (P485) changed to any repository. The canned queries are querying against archives at for University of Toronto Archives & Records Management Services (Q64825166) and are shared from utl_awong: Querying University of Toronto Archives & Records Management Services "archives at" for instance of

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 distinct ?instanceofLabel (COUNT(?item) AS ?count) 
WHERE {
    ?item wdt:P485 wd:Q64825166;
          wdt:P31 ?instanceof;
            wikibase:sitelinks ?sitelinks.

    SERVICE wikibase:label { bd:serviceParam wikibase:language "en,nl" }
}
GROUP BY ?instanceofLabel
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count") v3("?instanceof") v2("?item"):::projected v4("?sitelinks") c8(["en,nl"]):::literal c6(["bd:serviceParam"]):::iri c2(["wd:Q64825166"]):::iri v2 --"wdt:P485"--> c2 v2 --"wdt:P31"--> v3 v2 --"wikibase:sitelinks"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v5