query-7ae739dc838568a5d4b1338daca31c30

rq turtle/ttl

TODO

Use at

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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 "Retraction haswbstatement:P31=Q13442814".
    ?title wikibase:apiOutput mwapi:title.
  }
  BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
  values ?retract {wd:Q45203135 wd:Q7316896 wd:Q45182324}
  minus { ?item wdt:P31 ?retract. }
  ?item rdfs:label ?itemLabel . filter(lang(?itemLabel)="en")
  filter(strstarts(str(?itemLabel),"Retraction"))
} order by ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v1("?itemLabel"):::projected v4("?retract") v2("?title") c8(["www.wikidata.org"]):::literal c10(["Retraction haswbstatement:P31=Q13442814"]):::literal c4(["bd:serviceParam"]):::iri c6(["Search"]):::literal c12(["mwapi:title"]):::iri f0[["starts-with(str(?itemLabel),'Retraction')"]] f0 --> v1 f1[["?itemLabel = 'en'"]] f1 --> v1 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 bind2[/"concat(str('wd:'),?title)"/] v2 --o bind2 bind2 --as--o v3 bind3[/VALUES ?retract/] bind3-->v4 bind30(["wd:Q45203135"]) bind30 --> bind3 bind31(["wd:Q7316896"]) bind31 --> bind3 bind32(["wd:Q45182324"]) bind32 --> bind3 subgraph minus4["MINUS"] style minus4 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P31"--> v4 end v3 --"rdfs:label"--> v1