query-b956e6d50c0e40c541c2c17ff7942976
Literature query
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 DISTINCT ?item ?title ?pdate ?pmid ?pmcid ?doi ?protLabel
{
VALUES ?pw { wd:Q82069695 }
VALUES ?top { wd:Q7202 wd:Q128406 wd:Q908902 }
?item p:P921 [ ps:P921 ?pw].
?item p:P921 [ ps:P921 ?top].
?item wdt:P1476 ?title.
?item wdt:P577 ?pdate.
OPTIONAL {
{
?item wdt:P921 ?prot.
?prot wdt:P31 wd:Q8054.
?prot wdt:P703 wd:Q85438966
}
UNION
{
?item wdt:P921 ?prot.
FILTER (?prot = wd:Q89747233)
}
}
OPTIONAL {
?item wdt:P698 ?pmid.
}
OPTIONAL {
?item wdt:P932 ?pmcid.
}
OPTIONAL {
?item wdt:P356 ?doi.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?doi"):::projected
v3("?item"):::projected
v5("?pdate"):::projected
v8("?pmcid"):::projected
v7("?pmid"):::projected
v6("?prot")
v1("?pw")
v4("?title"):::projected
v2("?top")
a1((" "))
a2((" "))
c9(["wd:Q85438966"]):::iri
c17(["en"]):::literal
c15(["bd:serviceParam"]):::iri
c7(["wd:Q8054"]):::iri
bind0[/VALUES ?pw/]
bind0-->v1
bind00(["wd:Q82069695"])
bind00 --> bind0
bind1[/VALUES ?top/]
bind1-->v2
bind10(["wd:Q7202"])
bind10 --> bind1
bind11(["wd:Q128406"])
bind11 --> bind1
bind12(["wd:Q908902"])
bind12 --> bind1
a1 --"p:statement/P921"--> v1
v3 --"p:P921"--> a1
a2 --"p:statement/P921"--> v2
v3 --"p:P921"--> a2
v3 --"p:direct/P1476"--> v4
v3 --"p:direct/P577"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
f2[["?prot = 'wd:Q89747233'"]]
f2 --> v6
v3 -."p:direct/P921".-> v6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P921"--> v6
v6 --"p:direct/P31"--> c7
v6 --"p:direct/P703"--> c9
end
union0r <== or ==> union0l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P698".-> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P932".-> v8
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P356".-> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end