query-57ef94e15f619b50beee4e6c33228946

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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?operator ?operatorLabel ?P31 ?P31Label (count(?wiki) as ?count) WHERE {
  ?item wdt:P31/wdt:P279* wd:Q213283.
  ?item wdt:P137 wd:Q145.
  ?item wdt:P31 ?P31. 
  ?item wdt:P137 ?operator.
  ?article schema:about ?item ;
  schema:isPartOf ?wiki. 
  FILTER(contains(str(?wiki),"wikipedia.org"))
  SERVICE wikibase:label {bd:serviceParam wikibase:language "en" .}
} group by ?item ?itemLabel ?operator ?operatorLabel ?P31 ?P31Label

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?P31"):::projected v5("?article") v6("?count") v2("?item"):::projected v4("?operator"):::projected v1("?wiki"):::projected a1((" ")) c10(["bd:serviceParam"]):::iri c12(["en"]):::literal c4(["wd:Q213283"]):::iri c6(["wd:Q145"]):::iri f0[["contains(str(?wiki),'wikipedia.org')"]] f0 --> v1 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v2 --"wdt:P137"--> c6 v2 --"wdt:P31"--> v3 v2 --"wdt:P137"--> v4 v5 --"schema:about"--> v2 v5 --"schema:isPartOf"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end bind2[/"count(?wiki)"/] v1 --o bind2 bind2 --as--o v6