query-6ea832a4a1fa782401a76ff5ac2b58f7
most common properties on senses SELECT ?property ?propertyLabel ?count WITH { SELECT ?property (COUNT(?statement) AS ?count) WHERE { hint:SubQuery hint:optimizer "None". ?lexeme ontolex:sense ?sense. ?sense ?p ?statement. ?property wikibase:claim ?p. } GROUP BY ?property } AS %results WHERE { INCLUDE %results. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?count)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# most common properties on senses
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