query-7ecc6a7a55c1f518542a1c0139e078da

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?l ?lang
{

  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:endpoint "www.wikidata.org" .
    bd:serviceParam wikibase:api "Generator" .
    bd:serviceParam mwapi:generator "search" .
    bd:serviceParam mwapi:gsrsearch 'inlabel:or haswbstatement:P31=Q5' .
    bd:serviceParam mwapi:gsrlimit "max" .    
    bd:serviceParam mwapi:gsrnamespace "0" .    
    ?item wikibase:apiOutputItem mwapi:title  .    
  }
  ?item rdfs:label ?l.
  bind(lang(?l) as ?lang)
  FILTER(contains(?l, "(or ") || contains(?l, " or ")).  
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?l"):::projected v3("?lang"):::projected c6(["www.wikidata.org"]):::literal c14(["max"]):::literal c16(["0"]):::literal c10(["search"]):::literal c4(["bd:serviceParam"]):::iri c18(["mwapi:title"]):::iri c8(["Generator"]):::literal c12(["inlabel:or haswbstatement:P31=Q5"]):::literal f0[["(contains(?l,'(or ') || contains(?l,' or '))"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c4 --"mwapi:endpoint"--> c6 c4 --"mwapi:api"--> c8 c4 --"mwapi:generator"--> c10 c4 --"mwapi:gsrsearch"--> c12 c4 --"mwapi:gsrlimit"--> c14 c4 --"mwapi:gsrnamespace"--> c16 v2 --"mwapi:apiOutputItem"--> c18 end v2 --"rdfs:label"--> v1 bind1[/"?l"/] v1 --o bind1 bind1 --as--o v3