query-66cd4b262bf0aa72ac4790aa4389f732
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?article ?sitelink ?article2 ?sitelink2 where
{
?article2 ^schema:name ?sitelink2 .
?sitelink2 schema:about ?item ;
schema:isPartOf <https://it.wikiquote.org/> .
?article ^schema:name ?sitelink .
?sitelink schema:about ?item ;
schema:isPartOf <https://it.wikipedia.org/> .
filter(?article!=?article2)
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?article"):::projected
v2("?article2"):::projected
v4("?item"):::projected
v5("?sitelink"):::projected
v3("?sitelink2"):::projected
c4([https://it.wikiquote.org/]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c5([https://it.wikipedia.org/]):::iri
f0[["?article != ?article2"]]
f0 --> v1
f0 --> v2
v3 --"schema:name"--> v2
v3 --"schema:about"--> v4
v3 --"schema:isPartOf"--> c4
v5 --"schema:name"--> v1
v5 --"schema:about"--> v4
v5 --"schema:isPartOf"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end