query-bf187dc7762e10c7ff7d1d3e3add1201
Page deleted queries
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item WHERE {
{
SELECT DISTINCT ?item WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api 'Generator';
wikibase:endpoint 'www.wikidata.org';
mwapi:generator 'links';
mwapi:titles 'User:Pasleim/Items_for_deletion/Page_deleted/Archive/2019' .
?title wikibase:apiOutput mwapi:title .
?ns wikibase:apiOutput '@ns' .
?pageId wikibase:apiOutput mwapi:pageid .
}
FILTER(BOUND(?pageId)) .
FILTER(STR(?ns) = '0') .
BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item) .
}
}.
# further filtering here
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?item"):::projected
v1("?ns")
v2("?pageId")
v3("?title")
c7(["www.wikidata.org"]):::literal
c14(["@ns"]):::literal
c15(["mwapi:pageid"]):::iri
c11(["User:Pasleim/Items_for_deletion/Page_deleted/Archive/2019"]):::literal
c3(["bd:serviceParam"]):::iri
c9(["links"]):::literal
c13(["mwapi:title"]):::iri
c5(["Generator"]):::literal
f0[["str(?ns) = '0'"]]
f0 --> v1
f1[["bound(?pageId)"]]
f1 --> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:api"--> c5
c3 --"mwapi:endpoint"--> c7
c3 --"mwapi:generator"--> c9
c3 --"mwapi:titles"--> c11
v3 --"mwapi:apiOutput"--> c13
v1 --"mwapi:apiOutput"--> c14
v2 --"mwapi:apiOutput"--> c15
end
bind2[/"concat(str('wd:'),?title)"/]
v3 --o bind2
bind2 --as--o v4