query-5f264d0ab4a5b30b1a9f5b7b21baab4d
TODO
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#>
SELECT ?item ?itemLabel ?sitelink_en ?article_en ?sitelink_fr ?article_fr ?sitelink_ar ?article_ar
WHERE
{
?item wdt:P31 wd:Q146.
?sitelink_en ^schema:name ?article_en .
?article_en schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> .
OPTIONAL {
?sitelink_fr ^schema:name ?article_fr .
?article_fr schema:about ?item ;
schema:isPartOf <https://fr.wikipedia.org/> .
}
OPTIONAL {
?sitelink_ar ^schema:name ?article_ar .
?article_ar schema:about ?item ;
schema:isPartOf <https://ar.wikipedia.org/> .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?article_ar"):::projected
v2("?article_en"):::projected
v4("?article_fr"):::projected
v1("?item"):::projected
v7("?sitelink_ar"):::projected
v3("?sitelink_en"):::projected
v5("?sitelink_fr"):::projected
c6([https://en.wikipedia.org/]):::iri
c2(["wd:Q146"]):::iri
c10(["bd:serviceParam"]):::iri
c7([https://fr.wikipedia.org/]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c8([https://ar.wikipedia.org/]):::iri
v1 --"wdt:P31"--> c2
v2 --"schema:name"--> v3
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:name".-> v5
v4 --"schema:about"--> v1
v4 --"schema:isPartOf"--> c7
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v6 -."schema:name".-> v7
v6 --"schema:about"--> v1
v6 --"schema:isPartOf"--> c8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end