query-a23b3be15c5570a0f4511f8900deb8ee

rq turtle/ttl

title:The most popular Memory of the World inscriptions by number of Wikipedia articles SELECT ?item ?itemLabel ?itemDescription (COUNT(?site) AS ?count) WHERE { ?item p:P1435 ?s. ?s ps:P1435 wd:Q473858. # Heritage designation: MotW ?site schema:about ?item . FILTER(CONTAINS(str(?site), ".wikipedia.org/") ) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?item ?itemLabel ?itemDescription ORDER BY DESC(?count)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:The most popular Memory of the World inscriptions by number of Wikipedia articles 
SELECT ?item ?itemLabel ?itemDescription (COUNT(?site) AS ?count) WHERE {
  ?item p:P1435 ?s. ?s ps:P1435 wd:Q473858. # Heritage designation: MotW
 ?site schema:about ?item .
  FILTER(CONTAINS(str(?site), ".wikipedia.org/") )
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?item ?itemLabel ?itemDescription 
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count") v3("?item"):::projected v4("?s") v2("?site"):::projected c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q473858"]):::iri f0[["contains(str(?site),'.wikipedia.org/')"]] f0 --> v2 v3 --"p:P1435"--> v4 v4 --"p:statement/P1435"--> c4 v2 --"schema:about"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind2[/"count(?site)"/] v2 --o bind2 bind2 --as--o v5