query-49afe225825f31feaebf865fa74d9d24
Montenegro to merge SELECT ?item ?itemLabel ?page_title WHERE { ?item wdt:P17 wd:Q236 . ?item wdt:P31 wd:Q486972 . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } . ?article schema:about ?item ; schema:isPartOf https://ceb.wikipedia.org/ ; schema:name ?page_title . MINUS { ?article1 schema:about ?item ; schema:isPartOf https://ro.wikipedia.org/ .} }
Use at
- https://query.wikidata.org/sparql
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#>
#Montenegro to merge
SELECT ?item ?itemLabel ?page_title
WHERE {
?item wdt:P17 wd:Q236 .
?item wdt:P31 wd:Q486972 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } .
?article schema:about ?item ; schema:isPartOf <https://ceb.wikipedia.org/> ; schema:name ?page_title .
MINUS { ?article1 schema:about ?item ; schema:isPartOf <https://ro.wikipedia.org/> .}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article")
v4("?article1")
v1("?item"):::projected
v3("?page_title"):::projected
c8(["en"]):::literal
c2(["wd:Q236"]):::iri
c4(["wd:Q486972"]):::iri
c6(["bd:serviceParam"]):::iri
c11([https://ceb.wikipedia.org/]):::iri
c13([https://ro.wikipedia.org/]):::iri
v1 --"wdt:P17"--> c2
v1 --"wdt:P31"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c11
v2 --"schema:name"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"schema:about"--> v1
v4 --"schema:isPartOf"--> c13
end