query-94eddab671acf800d2c993842a55010d
Asteroids on multiple languages
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 bd: <http://www.bigdata.com/rdf#>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item ?itemLabel ?page_titleEN ?page_titleES ?page_titleEO ?page_titleFR ?page_titleRO ?Minor_Planet_Center_body_ID WHERE {
?item wdt:P31 wd:Q3863.
OPTIONAL {?item wdt:P5736 ?Minor_Planet_Center_body_ID.}
OPTIONAL {
?article schema:about ?item.
?article schema:inLanguage "en".
?article schema:isPartOf <https://en.wikipedia.org/>.
?article schema:name ?page_titleEN.
}
OPTIONAL {
?article schema:about ?item.
?article schema:inLanguage "es".
?article schema:isPartOf <https://es.wikipedia.org/>.
?article schema:name ?page_titleES.
}
OPTIONAL {
?article schema:about ?item.
?article schema:inLanguage "eo".
?article schema:isPartOf <https://eo.wikipedia.org/>.
?article schema:name ?page_titleEO.
}
OPTIONAL {
?article schema:about ?item.
?article schema:inLanguage "fr".
?article schema:isPartOf <https://fr.wikipedia.org/>.
?article schema:name ?page_titleFR.
}
OPTIONAL {
?article schema:about ?item.
?article schema:inLanguage "ro".
?article schema:isPartOf <https://ro.wikipedia.org/>.
?article schema:name ?page_titleRO.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ?Minor_Planet_Center_body_ID
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?Minor_Planet_Center_body_ID"):::projected
v3("?article")
v2("?item"):::projected
v4("?page_titleEN"):::projected
v6("?page_titleEO"):::projected
v5("?page_titleES"):::projected
v7("?page_titleFR"):::projected
v8("?page_titleRO"):::projected
c6(["en"]):::literal
c15([https://fr.wikipedia.org/]):::iri
c12(["eo"]):::literal
c13([https://eo.wikipedia.org/]):::iri
c14(["fr"]):::literal
c10(["es"]):::literal
c8([https://en.wikipedia.org/]):::iri
c19(["bd:serviceParam"]):::iri
c21(["#91;AUTO_LANGUAGE#93;"]):::literal
c11([https://es.wikipedia.org/]):::iri
c17([https://ro.wikipedia.org/]):::iri
c16(["ro"]):::literal
c2(["wd:Q3863"]):::iri
v2 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P5736".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v2
v3 --"schema:inLanguage"--> c6
v3 --"schema:isPartOf"--> c8
v3 --"schema:name"--> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v2
v3 --"schema:inLanguage"--> c10
v3 --"schema:isPartOf"--> c11
v3 --"schema:name"--> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v2
v3 --"schema:inLanguage"--> c12
v3 --"schema:isPartOf"--> c13
v3 --"schema:name"--> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v2
v3 --"schema:inLanguage"--> c14
v3 --"schema:isPartOf"--> c15
v3 --"schema:name"--> v7
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v2
v3 --"schema:inLanguage"--> c16
v3 --"schema:isPartOf"--> c17
v3 --"schema:name"--> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c19 --"wikibase:language"--> c21
end