query-7fb31771775d32b6b3beccee86e620ca
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:api "Search" .
bd:serviceParam wikibase:endpoint "sv.wikipedia.org" .
bd:serviceParam mwapi:srnamespace "0" .
bd:serviceParam mwapi:srsearch 'deepcat:"Pargas (kommun)"' .
?title wikibase:apiOutput mwapi:title .
}
BIND (STRLANG(?title, "sv") AS ?title_sv)
?article_sv schema:name ?title_sv.
?article_sv schema:about ?item.
?article_sv schema:isPartOf <https://sv.wikipedia.org/>.
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article_sv")
v4("?item"):::projected
v1("?title")
v2("?title_sv")
c19(["sv"]):::literal
c10(["deepcat:"Pargas (kommun)""]):::literal
c6(["sv.wikipedia.org"]):::literal
c8(["0"]):::literal
c2(["bd:serviceParam"]):::iri
c4(["Search"]):::literal
c12(["mwapi:title"]):::iri
c16([https://sv.wikipedia.org/]):::iri
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:api"--> c4
c2 --"mwapi:endpoint"--> c6
c2 --"mwapi:srnamespace"--> c8
c2 --"mwapi:srsearch"--> c10
v1 --"mwapi:apiOutput"--> c12
end
bind0[/"STRLANG(?title,'sv')"/]
v1 --o bind0
bind0 --as--o v2
v3 --"schema:name"--> v2
v3 --"schema:about"--> v4
v3 --"schema:isPartOf"--> c16
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c2 --"mwapi:language"--> c19
end