query-08806fbf27e6dc4ba503eac36e3a6e58
Count Wikidata items with Wikipedia pages
PREFIX schema: http://schema.org/
select (count(distinct ?item) as ?itemsWithWpPages) where { ?page schema:about ?item . filter(contains(str(?page), 'wikipedia')) }
Use at
- https://query.wikidata.org/sparql
# Count Wikidata items with Wikipedia pages
#
PREFIX schema: <http://schema.org/>
#
select (count(distinct ?item) as ?itemsWithWpPages)
where {
?page schema:about ?item .
filter(contains(str(?page), 'wikipedia'))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?itemsWithWpPages")
v1("?page")
f0[["contains(str(?page),'wikipedia')"]]
f0 --> v1
v1 --"schema:about"--> v2
bind2[/"count(?item)"/]
v2 --o bind2
bind2 --as--o v3