query-fb0be896e8b1f147a0b6d7b6a6ca30e5
risk factor (P5642),  symptoms and signs (P780),  medical condition (P1050)Properties:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?disease ?diseaseLabel ?riskfactor ?riskfactorlabel ?symptoms ?symptomslabel
WHERE {
?disease wdt:P1050* ?disease.
?disease wdt:P780* ?symptoms.
?disease wdt:P5642* ?riskfactor.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
GROUP BY ?disease ?diseaseLabel ?riskfactor ?riskfactorlabel ?symptoms ?symptomslabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?disease"):::projected
v3("?riskfactor"):::projected
v2("?symptoms"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
f0[["sameterm(?disease,)"]]
f0 --> v1
f0 --> a1
v1 --"wdt:P1050"--> a1
v1 --"wdt:P780"--> v2
v1 --"wdt:P5642"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end