query-a77ced2179fb6da042cc5ab30093ccff
21:24, 25 March 2021 (UTC)) talk (TagishsimonBut, you know, I've been wrong before. --
Use at
- https://query.wikidata.org/sparql
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:"e* (" haswbstatement:P31=Q5' .
bd:serviceParam mwapi:gsrlimit "max" .
bd:serviceParam mwapi:gsrnamespace "0" .
?item wikibase:apiOutputItem mwapi:title .
}
?item rdfs:label ?l.
FILTER( REGEX(?l, "\\)$") ).
bind(lang(?l) as ?lang)
}
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
c5(["www.wikidata.org"]):::literal
c13(["max"]):::literal
c15(["0"]):::literal
c9(["search"]):::literal
c3(["bd:serviceParam"]):::iri
c11(["inlabel:"e* (" haswbstatement:P31=Q5"]):::literal
c17(["mwapi:title"]):::iri
c7(["Generator"]):::literal
f0[["regex(?l,'\)$')"]]
f0 --> v1
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:endpoint"--> c5
c3 --"mwapi:api"--> c7
c3 --"mwapi:generator"--> c9
c3 --"mwapi:gsrsearch"--> c11
c3 --"mwapi:gsrlimit"--> c13
c3 --"mwapi:gsrnamespace"--> c15
v2 --"mwapi:apiOutputItem"--> c17
end
v2 --"rdfs:label"--> v1
bind1[/"?l"/]
v1 --o bind1
bind1 --as--o v3