query-e723b72b66a980118c65c622f83fc57c

rq turtle/ttl

title:Memory of the World inscriptions and their properties SELECT ?prop ?propLabel ?count ?missing WHERE { { SELECT ?prop (COUNT(DISTINCT ?item) AS ?count) (2787 - COUNT(DISTINCT ?item) AS ?missing) WHERE { hint:Query hint:optimizer "None" . ?item wdt:P1435 wd:Q473858 . ?item ?p ?id . ?prop wikibase:directClaim ?p FILTER(?prop != wd:P1435) } GROUP BY ?prop } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } } ORDER BY DESC (?count)

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#>
#title:Memory of the World inscriptions and their properties
SELECT ?prop ?propLabel ?count ?missing WHERE {
    {
        SELECT ?prop (COUNT(DISTINCT ?item) AS ?count) (2787 - COUNT(DISTINCT ?item) AS ?missing) WHERE {

           ?item wdt:P1435 wd:Q473858 .
           ?item ?p ?id .
           ?prop wikibase:directClaim ?p FILTER(?prop != wd:P1435)
        }  GROUP BY ?prop
    }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?_anon_42b5416610844a34809f33a099ae9de171117") v7("?count"):::projected v5("?id") v3("?item") v7("?missing"):::projected v4("?p") v2("?prop"):::projected c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q473858"]):::iri f0[["?prop != 'wd:P1435'"]] f0 --> v2 v3 --"wdt:P1435"--> c3 v3 -->v4--> v5 v2 --"wikibase:directClaim"--> v4 bind3[/"count(?item)"/] v3 --o bind3 bind3 --as--o v6 bind4[/"count(?item)"/] v3 --o bind4 bind4 --as--o v7 bind5[/"'2787^^xsd:integer' - "/] null --o bind5 bind5 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end