query-290ccea8a49c9afe448d44067928e173

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 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 "HMS Castleton".
    ?item wikibase:apiOutputItem mwapi:title .
  }
   ?item wdt:P2561 ?name .
   FILTER CONTAINS(str(?name), "HMS Castleton")
  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("?name") c7(["www.wikidata.org"]):::literal c1(["HMS Castleton"]):::literal c3(["bd:serviceParam"]):::iri c5(["Search"]):::literal c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal c10(["mwapi:title"]):::iri f0[["contains(str(?name),'HMS Castleton')"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c3 --"mwapi:api"--> c5 c3 --"mwapi:endpoint"--> c7 c3 --"mwapi:srsearch"--> c1 v2 --"mwapi:apiOutputItem"--> c10 end v2 --"wdt:P2561"--> v1 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c3 --"mwapi:language"--> c14 end