query-4a48668c9fae9264b56182921215e9f9

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription
WHERE {

  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "church".
    ?item wikibase:apiOutputItem mwapi:title .
  }
  ?item schema:description ?itemDescription . filter(lang(?itemDescription)="en") 

#  FILTER (lcase(str(?itemDescription)) ="church") # - just find lower case church
  FILTER (contains(?itemDescription,"church")) # - any case of church, somewhere in the description
  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("?item"):::projected v1("?itemDescription"):::projected c8(["www.wikidata.org"]):::literal c1(["church"]):::literal c4(["bd:serviceParam"]):::iri c6(["Search"]):::literal c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal c11(["mwapi:title"]):::iri f0[["contains(?itemDescription,'church')"]] f0 --> v1 f1[["?itemDescription = '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"--> c1 v2 --"mwapi:apiOutputItem"--> c11 end v2 --"schema:description"--> v1 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"mwapi:language"--> c15 end