query-171021e56c8a62aec81dd10d23997652

rq turtle/ttl

2: Selecting items with articles in cawiki and counting how many interwikis they have:

Use at

PREFIX schema: <http://schema.org/>
SELECT ?item (COUNT(DISTINCT(?article)) AS ?totiw) 
  WHERE {
   {SELECT ?item  WHERE {
   ?articlecat schema:about ?item.
  ?articlecat schema:isPartOf <https://ca.wikipedia.org/>.
} }
   ?article schema:about ?item.
}
GROUP BY ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article"):::projected v1("?articlecat") v2("?item"):::projected v4("?totiw") c3([https://ca.wikipedia.org/]):::iri v1 --"schema:about"--> v2 v1 --"schema:isPartOf"--> c3 v3 --"schema:about"--> v2 bind1[/"count(?article)"/] v3 --o bind1 bind1 --as--o v4