query-d4a1a31d3a2b9a88a4d2627cd31c16e1
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?praenomen ?praenomenLabel ?native_label ?rank
WHERE {
VALUES ?praenomen {wd:Q1414058}
?praenomen wdt:P31 wd:Q1240901 .
OPTIONAL { ?praenomen p:P1705 ?statement .
?statement ps:P1705 ?native_label .
?statement wikibase:rank ?rank . }
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;
v3("?native_label"):::projected
v1("?praenomen"):::projected
v4("?rank"):::projected
v2("?statement")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q1240901"]):::iri
bind0[/VALUES ?praenomen/]
bind0-->v1
bind00(["wd:Q1414058"])
bind00 --> bind0
v1 --"p:direct/P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P1705".-> v2
v2 --"p:statement/P1705"--> v3
v2 --"wikibase:rank"--> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end