query-09f4a4eee9f584506caae5070e1b6926

rq turtle/ttl

.on Mastodon and on TwitterOriginally posted

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?propertyLabel ?count WHERE {
   {
  SELECT ?property (COUNT(?statement) AS ?count) WHERE {

    ?lexeme ontolex:sense ?sense.
    ?sense ?p ?statement.
    ?property wikibase:claim ?p.
  }
  GROUP BY ?property
}
  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; v7("?count"):::projected v2("?lexeme") v4("?p") v6("?property"):::projected v3("?sense") v5("?statement") c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"ontolex:sense"--> v3 v3 -->v4--> v5 v6 --"wikibase:claim"--> v4 bind1[/"count(?statement)"/] v5 --o bind1 bind1 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end