query-8c4b6461f427c4d2c9b90246a32e6476
ItemsGeorg Mikael Leinberg (Q17382164) TODO
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 ?extract
WHERE
{
?link schema:about wd:Q17382164; schema:isPartOf <https://fi.wikipedia.org/>; schema:name ?title .
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam wikibase:endpoint "fi.wikipedia.org" .
bd:serviceParam mwapi:generator "allpages" .
bd:serviceParam mwapi:gapfrom ?title .
bd:serviceParam mwapi:gapto ?title .
bd:serviceParam mwapi:prop "pageprops|extracts" .
bd:serviceParam mwapi:exsentences "3" . # number of sententences to extract (1-10)
# bd:serviceParam mwapi:exchars "100" . # number of characters to extract (1-1200)
bd:serviceParam mwapi:explaintext "true" .
?item wikibase:apiOutputItem mwapi:item .
?extract wikibase:apiOutput "extract/text()".
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fi". }
}
Query found at
- https://www.wikidata.org/wiki/User:Susannaanas/Kuka_kuvasi
- https://www.wikidata.org/wiki/User:Susannaanas/SPARQL
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2022/08
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?extract"):::projected
v3("?item"):::projected
v1("?link")
v2("?title")
c11(["fi.wikipedia.org"]):::literal
c23(["mwapi:item"]):::iri
c7(["bd:serviceParam"]):::iri
c13(["allpages"]):::literal
c17(["pageprops|extracts"]):::literal
c28(["#91;AUTO_LANGUAGE#93;,fi"]):::literal
c4([https://fi.wikipedia.org/]):::iri
c25(["extract/text()"]):::literal
c2(["wd:Q17382164"]):::iri
c19(["3"]):::literal
c21(["true"]):::literal
c9(["Generator"]):::literal
v1 --"schema:about"--> c2
v1 --"schema:isPartOf"--> c4
v1 --"schema:name"--> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c7 --"mwapi:api"--> c9
c7 --"mwapi:endpoint"--> c11
c7 --"mwapi:generator"--> c13
c7 --"mwapi:gapfrom"--> v2
c7 --"mwapi:gapto"--> v2
c7 --"mwapi:prop"--> c17
c7 --"mwapi:exsentences"--> c19
c7 --"mwapi:explaintext"--> c21
v3 --"mwapi:apiOutputItem"--> c23
v4 --"mwapi:apiOutput"--> c25
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c7 --"mwapi:language"--> c28
end