query-56e491a7cf01220c523c9f8a15d7ca6e

rq turtle/ttl

title: using example created by Jura for in archive dated 14:12 on 11 August 2020 (UTC) SELECT ?item ?itemLabel ?instance_of ?instance_ofLabel ?errata WHERE { VALUES (?errata ?search_string) { (wd:Q123 "Multisensory brand search: How the meaning of sounds guides consumers' visual attention.") (wd:Q223 "Moderate Stress Enhances Immediate and Delayed Retrieval of Educationally Relevant Material in Healthy Young Men" ) (wd:Q323 "The inheritance of blindness-Lorem ipsum") } SERVICE wikibase:mwapi { bd:serviceParam wikibase:api "Search" . bd:serviceParam wikibase:endpoint "www.wikidata.org" . bd:serviceParam mwapi:srnamespace "0" . bd:serviceParam mwapi:srsearch ?search_string . ?title wikibase:apiOutput mwapi:title . } BIND( URI(CONCAT(str(wd:),?title)) as ?item) ?item wdt:P31 wd:Q13442814 . filter not exists {?item wdt:P31 wd:Q1348305 . } # ?item wdt:P31 wd:Q47089 #only faults SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } }

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 bd: <http://www.bigdata.com/rdf#>
#title: using example created by Jura for in archive dated 14:12 on 11 August 2020 (UTC)
SELECT ?item ?itemLabel ?instance_of ?instance_ofLabel ?errata
WHERE
{
  VALUES (?errata ?search_string) {
    (wd:Q123 "Multisensory brand search: How the meaning of sounds guides consumers' visual attention.")
    (wd:Q223 "Moderate Stress Enhances Immediate and Delayed Retrieval of Educationally Relevant Material in Healthy Young Men" )
    (wd:Q323 "The inheritance of blindness-Lorem ipsum")
  }
  SERVICE wikibase:mwapi
  {
      bd:serviceParam wikibase:api "Search" .
      bd:serviceParam wikibase:endpoint "www.wikidata.org" .
      bd:serviceParam mwapi:srnamespace "0" .
      bd:serviceParam mwapi:srsearch ?search_string  .
      ?title wikibase:apiOutput mwapi:title .
  }
  BIND( URI(CONCAT(str(wd:),?title)) as ?item)
  ?item wdt:P31 wd:Q13442814 .
  filter not exists {?item wdt:P31 wd:Q1348305 . }
  # ?item wdt:P31 wd:Q47089 #only faults
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?errata"):::projected v5("?item"):::projected v3("?search_string") v4("?title") c8(["www.wikidata.org"]):::literal c2(["wd:Q1348305"]):::iri c10(["0"]):::literal c4(["bd:serviceParam"]):::iri c14(["wd:Q13442814"]):::iri c6(["Search"]):::literal c17(["#91;AUTO_LANGUAGE#93;,en"]):::literal c13(["mwapi:title"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P31"--> e0c2 e0v1("?item"):::projected e0c2(["wd:Q1348305"]):::iri end f0--EXISTS--> f0e0 f0 --> v5 f0 --> c1 f0 --> c2 v5 --"wdt:P31"--> c2 bind1[/VALUES ?errata ?search_string/] bind1-->v2 bind1-->v3 bind10(["wd:Q123"]) bind10 --> bind1 bind11(["Multisensory brand search: How the meaning of sounds guides consumers' visual attention."]) bind11 --> bind1 bind12(["wd:Q223"]) bind12 --> bind1 bind13(["Moderate Stress Enhances Immediate and Delayed Retrieval of Educationally Relevant Material in Healthy Young Men"]) bind13 --> bind1 bind14(["wd:Q323"]) bind14 --> bind1 bind15(["The inheritance of blindness-Lorem ipsum"]) bind15 --> bind1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c4 --"mwapi:api"--> c6 c4 --"mwapi:endpoint"--> c8 c4 --"mwapi:srnamespace"--> c10 c4 --"mwapi:srsearch"--> v3 v4 --"mwapi:apiOutput"--> c13 end bind2[/"concat(str('wd:'),?title)"/] v4 --o bind2 bind2 --as--o v5 v5 --"wdt:P31"--> c14 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"mwapi:language"--> c17 end