query-3acc34a20767138402b1b9d642e3bad9
Miraclepine
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 ?page ?volume ?subject ?subjectLabel
WHERE
{
?item wdt:P31 wd:Q19389637.
?item p:P1433 ?published_in_statement.
?published_in_statement ps:P1433 wd:Q19588619.
?published_in_statement a wikibase:BestRank.
OPTIONAL { ?published_in_statement pq:P304 ?page. }
OPTIONAL { ?published_in_statement pq:P478 ?volume. }
OPTIONAL { ?item wdt:P921 ?subject. }
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;
v1("?item"):::projected
v3("?page"):::projected
v2("?published_in_statement")
v5("?subject"):::projected
v4("?volume"):::projected
c5(["wd:Q19588619"]):::iri
c2(["wd:Q19389637"]):::iri
c7(["wikibase:BestRank"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:P1433"--> v2
v2 --"p:statement/P1433"--> c5
v2 --"a"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P304".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P478".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P921".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end