query-d1e078195ac99e425abd40defaf6b5cf
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?en_label ?de_label ?en_article ?de_article
WHERE
{
?item wdt:P597 ?value.
filter(?value="321846")
optional {?en_article ^schema:name ?sitelink_en . ?sitelink_en schema:about ?item ; schema:isPartOf <https://en.wikipedia.org/> .}
optional {?de_article ^schema:name ?sitelink_de . ?sitelink_de schema:about ?item ; schema:isPartOf <https://de.wikipedia.org/> .}
optional {?item rdfs:label ?en_label. filter(lang(?en_label)="en")}
optional {?item rdfs:label ?de_label. filter(lang(?de_label)="de")}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?de_article"):::projected
v1("?de_label"):::projected
v6("?en_article"):::projected
v2("?en_label"):::projected
v4("?item"):::projected
v7("?sitelink_de")
v5("?sitelink_en")
v3("?value")
c9([https://de.wikipedia.org/]):::iri
c8([https://en.wikipedia.org/]):::iri
f0[["?value = '321846'"]]
f0 --> v3
v4 --"wdt:P597"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:name".-> v6
v5 --"schema:about"--> v4
v5 --"schema:isPartOf"--> c8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:name".-> v8
v7 --"schema:about"--> v4
v7 --"schema:isPartOf"--> c9
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."rdfs:label".-> v2
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."rdfs:label".-> v1
end