query-20517cb0513f0cb018ca1320dbd21b06
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?DOI ?rank ?DOI2 ?rank2 WHERE
{
{?item p:P356/prov:wasDerivedFrom/pr:P248 wd:Q30068043 .}
?stat2 pr:P248 wd:Q30068043 .
?stat prov:wasDerivedFrom ?stat2.
?item p:P356 ?stat .
?stat ps:P356 ?DOI.
?stat wikibase:rank ?rank.
?item p:P356 ?stat3.
?stat3 ps:P356 ?DOI2.
filter (str(?stat3) != str (?stat))
?stat3 wikibase:rank ?rank2.
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("?DOI"):::projected
v7("?DOI2"):::projected
v3("?item"):::projected
v6("?rank"):::projected
v8("?rank2"):::projected
v2("?stat")
v4("?stat2")
v1("?stat3")
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c4(["wd:Q30068043"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["str(?stat3) != str(?stat)"]]
f0 --> v1
f0 --> v2
v3 --"p:P356"--> a1
a1 --"prov:wasDerivedFrom"--> a2
a2 --"p:reference/P248"--> c4
v4 --"p:reference/P248"--> c4
v2 --"prov:wasDerivedFrom"--> v4
v3 --"p:P356"--> v2
v2 --"p:statement/P356"--> v5
v2 --"wikibase:rank"--> v6
v3 --"p:P356"--> v1
v1 --"p:statement/P356"--> v7
v1 --"wikibase:rank"--> v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end