query-7895213a7963ffe4def1362c9e754319
title:articles on English Wikipedia with "Korea" or "Korean" in title not on Korean Wikipedia SELECT DISTINCT ?item ?itemLabel ?sitelink WHERE { hint:Query hint:optimizer "None". SERVICE wikibase:mwapi { bd:serviceParam wikibase:api "Search"; wikibase:endpoint "www.wikidata.org"; mwapi:srsearch "Korea". ?item wikibase:apiOutputItem mwapi:title . } FILTER(BOUND(?item)) ?article schema:about ?item ; schema:isPartOf https://en.wikipedia.org/ ; schema:name ?sitelink . FILTER(CONTAINS(STR(?sitelink),"Korea")) FILTER NOT EXISTS { [] schema:about ?item ; schema:isPartOf https://ko.wikipedia.org/ .} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?sitelink
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#>
#title:articles on English Wikipedia with "Korea" or "Korean" in title not on Korean Wikipedia
SELECT DISTINCT ?item ?itemLabel ?sitelink
WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Search";
wikibase:endpoint "www.wikidata.org";
mwapi:srsearch "Korea".
?item wikibase:apiOutputItem mwapi:title .
}
FILTER(BOUND(?item))
?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> ;
schema:name ?sitelink .
FILTER(CONTAINS(STR(?sitelink),"Korea"))
FILTER NOT EXISTS { [] schema:about ?item ;
schema:isPartOf <https://ko.wikipedia.org/> .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?sitelink