query-c364f8282d54d711684b53944e7dacf4

rq turtle/ttl

This query is limited to 50 results among all items, so will only give 1 human in total. SELECT ?item ?itemLabel WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "www.wikidata.org"; wikibase:api "EntitySearch"; mwapi:type "item"; mwapi:search "Beaupre"; mwapi:language "en". ?item wikibase:apiOutputItem mwapi:item. } ?item wdt:P31 wd:Q5 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#>
# This query is limited to 50 results among all items, so will only give 1 human in total.
SELECT ?item ?itemLabel
WHERE
{
  SERVICE wikibase:mwapi
  {
    bd:serviceParam wikibase:endpoint "www.wikidata.org";
    wikibase:api "EntitySearch";
    mwapi:type "item";
    mwapi:search "Beaupre";
    mwapi:language "en".
    ?item wikibase:apiOutputItem mwapi:item.
  }
  ?item wdt:P31 wd:Q5
  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; v1("?item"):::projected c4(["www.wikidata.org"]):::literal c8(["item"]):::literal c14(["mwapi:item"]):::iri c12(["en"]):::literal c10(["Beaupre"]):::literal c2(["bd:serviceParam"]):::iri c6(["EntitySearch"]):::literal c16(["wd:Q5"]):::iri c18(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:type"--> c8 c2 --"mwapi:search"--> c10 c2 --"mwapi:language"--> c12 v1 --"mwapi:apiOutputItem"--> c14 end v1 --"wdt:P31"--> c16 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c2 --"mwapi:language"--> c18 end