query-cc3fb06fff916de63e68a822a860475d

rq turtle/ttl

Trilotat(Q13442814)scholarly article

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#>
SELECT ?article ?title
WHERE
{
  SERVICE wikibase:mwapi
  {
    bd:serviceParam wikibase:endpoint "www.wikidata.org".
    bd:serviceParam wikibase:api "Generator".
    bd:serviceParam mwapi:generator "search".
    bd:serviceParam mwapi:gsrsearch "haswbstatement:P31=Q13442814 inlabel:formation@en".
    bd:serviceParam mwapi:gsrlimit "max".
    ?article wikibase:apiOutputItem mwapi:title.
  }
  ?article wdt:P31 wd:Q13442814.
  ?article wdt:P1476 ?title.
  FILTER REGEX(?title, "\\bformation\\b")
#  FILTER REGEX(?title, "\\bU\\.S\\.A\\.\\b")
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article"):::projected v1("?title"):::projected c5(["www.wikidata.org"]):::literal c11(["haswbstatement:P31=Q13442814 inlabel:formation@en"]):::literal c13(["max"]):::literal c9(["search"]):::literal c3(["bd:serviceParam"]):::iri c17(["wd:Q13442814"]):::iri c15(["mwapi:title"]):::iri c7(["Generator"]):::literal f0[["regex(?title,'\bformation\b')"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c3 --"mwapi:endpoint"--> c5 c3 --"mwapi:api"--> c7 c3 --"mwapi:generator"--> c9 c3 --"mwapi:gsrsearch"--> c11 c3 --"mwapi:gsrlimit"--> c13 v2 --"mwapi:apiOutputItem"--> c15 end v2 --"wdt:P31"--> c17 v2 --"wdt:P1476"--> v1