query-6fb67c653f7544fb7183e91d68e2c4ff

rq turtle/ttl

ceb & sv wikiThere are some 60 items where is necessary to switch the site links for ceb & sv wiki:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?page_titleCEB ?page_titleSV
WHERE {
  ?item wdt:P31 wd:Q2074737 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "es" . } .
  ?article schema:about ?item ; schema:isPartOf <https://es.wikipedia.org/> .
  ?article1 schema:about ?item ; schema:isPartOf <https://ceb.wikipedia.org/> ; schema:name ?page_titleCEB ; 
            FILTER(contains(?page_titleCEB, "kapital")) .
  ?article2 schema:about ?item ; schema:isPartOf <https://sv.wikipedia.org/> ; schema:name ?page_titleSV ; 
            FILTER(contains(?page_titleSV, "huvudort")) .
}
GROUP BY ?item ?itemLabel ?page_titleCEB ?page_titleSV

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?article") v5("?article1") v6("?article2") v3("?item"):::projected v2("?page_titleCEB"):::projected v1("?page_titleSV"):::projected c4(["wd:Q2074737"]):::iri c8(["es"]):::literal c6(["bd:serviceParam"]):::iri c12([https://ceb.wikipedia.org/]):::iri c11([https://es.wikipedia.org/]):::iri c14([https://sv.wikipedia.org/]):::iri f0[["contains(?page_titleSV,'huvudort')"]] f0 --> v1 f1[["contains(?page_titleCEB,'kapital')"]] f1 --> v2 v3 --"wdt:P31"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end v4 --"schema:about"--> v3 v4 --"schema:isPartOf"--> c11 v5 --"schema:about"--> v3 v5 --"schema:isPartOf"--> c12 v5 --"schema:name"--> v2 v6 --"schema:about"--> v3 v6 --"schema:isPartOf"--> c14 v6 --"schema:name"--> v1