query-c0f872506fcf19202a6974ac0b059f2b
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
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#>
SELECT DISTINCT ?item ?itemLabel
WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Search";
wikibase:endpoint "www.wikidata.org";
mwapi:srsearch "Errata haswbstatement:P31=Q13442814".
?title wikibase:apiOutput mwapi:title.
}
BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
FILTER NOT EXISTS { ?item wdt:P921 wd:Q1348305. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
# LIMIT 10000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v2("?title")
c8(["www.wikidata.org"]):::literal
c2(["wd:Q1348305"]):::iri
c4(["bd:serviceParam"]):::iri
c10(["Errata haswbstatement:P31=Q13442814"]):::literal
c6(["Search"]):::literal
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c12(["mwapi:title"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P921"--> e0c2
e0v1("?item"):::projected
e0c2(["wd:Q1348305"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v3
f0 --> c1
f0 --> c2
v3 --"wdt:P921"--> c2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c4 --"mwapi:api"--> c6
c4 --"mwapi:endpoint"--> c8
c4 --"mwapi:srsearch"--> c10
v2 --"mwapi:apiOutput"--> c12
end
bind1[/"concat(str('wd:'),?title)"/]
v2 --o bind1
bind1 --as--o v3
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"mwapi:language"--> c15
end