query-02e5084238c80950766ae57ee2df1ccd
Thomas.lumenSmalyshev (WMF)MWApiServiceCall.parseContinue()//api/continueaction=wbsearchentitiescontinuesearch-wbsearch
Use at
- https://query.wikidata.org/sparql
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 DISTINCT ?ordinal ?item ?itemLabel ?itemDescription ?image WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "Generator";
mwapi:generator "wbsearch";
mwapi:gwbssearch "Fellowship";
mwapi:gwbslanguage "en";
mwapi:gwbslimit "max".
?item wikibase:apiOutputItem mwapi:title.
?ordinal wikibase:apiOrdinal true.
}
?item wdt:P31/wdt:P279* ?type.
OPTIONAL{ ?item wdt:P18 ?image. }
FILTER(?type IN (wd:Q5, wd:Q17537576, wd:Q12973014))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ASC(?ordinal)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?image"):::projected
v3("?item"):::projected
v1("?ordinal"):::projected
v2("?type")
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["www.wikidata.org"]):::literal
c13(["Fellowship"]):::literal
c17(["max"]):::literal
c15(["en"]):::literal
c21(["true^^xsd:boolean"]):::literal
c27(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c11(["wbsearch"]):::literal
c19(["mwapi:title"]):::iri
c9(["Generator"]):::literal
list0c1(["wd:Q5"]):::iri
list0c3(["wd:Q12973014"]):::iri
list0c2(["wd:Q17537576"]):::iri
list0c1 --o f0
list0c2 --o f0
list0c3 --o f0
f0[[" in "]]
f0 --> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c5 --"mwapi:endpoint"--> c7
c5 --"mwapi:api"--> c9
c5 --"mwapi:generator"--> c11
c5 --"mwapi:gwbssearch"--> c13
c5 --"mwapi:gwbslanguage"--> c15
c5 --"mwapi:gwbslimit"--> c17
v3 --"mwapi:apiOutputItem"--> c19
v1 --"mwapi:apiOrdinal"--> c21
end
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v4
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c5 --"mwapi:language"--> c27
end