query-876caaa3ee04cde6f94cef970d068ec2
ItemsGeorg Mikael Leinberg (Q17382164)
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
?link schema:about wd:Q17382164;schema:isPartOf <https://fi.wikipedia.org/>;schema:name ?title . #point to the wiki you are searching, remove line if no QID
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam wikibase:endpoint "fi.wikipedia.org" . #point to the wiki you are searching
bd:serviceParam mwapi:titles ?title . #replace here if no QID
bd:serviceParam mwapi:generator "links" .
?item wikibase:apiOutputItem mwapi:item .
?ns wikibase:apiOutput "@ns" .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fi". }
FILTER (?ns = "0"). #showing only articles
}
Query found at
- https://www.wikidata.org/wiki/User:Susannaanas/Kuka_kuvasi
- https://www.wikidata.org/wiki/User:Susannaanas/SPARQL
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?item"):::projected
v2("?link")
v1("?ns")
v3("?title")
c12(["fi.wikipedia.org"]):::literal
c22(["#91;AUTO_LANGUAGE#93;,fi"]):::literal
c17(["mwapi:item"]):::iri
c5([https://fi.wikipedia.org/]):::iri
c19(["@ns"]):::literal
c3(["wd:Q17382164"]):::iri
c8(["bd:serviceParam"]):::iri
c15(["links"]):::literal
c10(["Generator"]):::literal
f0[["?ns = '0'"]]
f0 --> v1
v2 --"schema:about"--> c3
v2 --"schema:isPartOf"--> c5
v2 --"schema:name"--> v3
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c8 --"mwapi:api"--> c10
c8 --"mwapi:endpoint"--> c12
c8 --"mwapi:titles"--> v3
c8 --"mwapi:generator"--> c15
v4 --"mwapi:apiOutputItem"--> c17
v1 --"mwapi:apiOutput"--> c19
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c8 --"mwapi:language"--> c22
end