query-24a2de3f5e6bf7aac6345a2b302f9e46
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?bibcode ?seriesord ?statedas WHERE
{
?item p:P50 ?stat.
?stat ps:P50 wd:Q58171141 .
OPTIONAL { ?stat pq:P1932 ?statedas . }
OPTIONAL { ?stat pq:P1545 ?seriesord . }
OPTIONAL { ?item wdt:P819 ?bibcode . }
?item wdt:P31 wd:Q13442814.
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;
v5("?bibcode"):::projected
v1("?item"):::projected
v4("?seriesord"):::projected
v2("?stat")
v3("?statedas"):::projected
c8(["wd:Q13442814"]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q58171141"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:P50"--> v2
v2 --"p:statement/P50"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1932".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1545".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P819".-> v5
end
v1 --"p:direct/P31"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end