query-86b055b86e697bc19a0d5c31343d2ab7

rq turtle/ttl

Occupations par fréquence tinyurl.com/h3qeaqr

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#>
PREFIX schema: <http://schema.org/>

SELECT (COUNT(?item) AS ?count) ?occupation ?occupationLabel WHERE {
  ?item wdt:P31 wd:Q5.
  ?item wdt:P106 ?occupation.
  ?article schema:about ?item.
  ?article schema:isPartOf <https://fr.wikisource.org/>.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
} GROUP BY ?occupation ?occupationLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article") v4("?count") v1("?item"):::projected v2("?occupation"):::projected c8(["bd:serviceParam"]):::iri c6([https://fr.wikisource.org/]):::iri c2(["wd:Q5"]):::iri c10(["fr"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P106"--> v2 v3 --"schema:about"--> v1 v3 --"schema:isPartOf"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"count(?item)"/] v1 --o bind1 bind1 --as--o v4