query-178260b1018eaa01ded902d43558647f

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?predicate ?count ?propertyLabel ?propertyDescription
WHERE {
  { SELECT ?property ?predicate (COUNT(?item) as ?count) WHERE {
    ?property rdf:type wikibase:Property ;       # ?property is a property
              wdt:P31/wdt:P279* wd:Q55452870 ;   # ?property is an instance or subclass of a property related to encyclopedias
              wikibase:directClaim ?predicate .  # ?predicate is a wdt: predicate of the property
    ?item ?predicate [] .                        # an item uses the wdt: predicate of the property
  } GROUP BY ?property ?predicate }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count"):::projected v3("?item") v2("?predicate"):::projected v1("?property"):::projected a2((" ")) a1((" ")) c8(["bd:serviceParam"]):::iri c2(["wikibase:Property"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q55452870"]):::iri v1 --"a"--> c2 v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c5 v1 --"wikibase:directClaim"--> v2 v3 -->v2--> a2 bind1[/"count(?item)"/] v3 --o bind1 bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end