query-278739535cf862e3a96de49c82818b03
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?authLabel ?authstr ?ord
WHERE {
VALUES ?item { wd:Q56742969 }
# Run first, then comment out paragraph
?item p:P50 ?auth_st.
?auth_st ps:P50 ?auth.
OPTIONAL { ?auth_st pq:P1545 ?ord. }
# Run second, uncomment paragraph after first run is complete
#?item p:P2093 ?authstr_st.
#?authstr_st ps:P2093 ?authstr.
#OPTIONAL { ?authstr_st pq:P1545 ?ord. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
ORDER BY xsd:integer(?ord)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?auth")
v3("?auth_st")
v2("?item")
v1("?ord"):::projected
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
bind0[/VALUES ?item/]
bind0-->v2
bind00(["wd:Q56742969"])
bind00 --> bind0
v2 --"p:P50"--> v3
v3 --"p:statement/P50"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P1545".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end