query-4c87559b129dbf7839aa0f8b50470f04
title: Cell types related to breast cancer via markers
SELECT ?cellTypeLabel ?geneLabel ?diseaseLabel WHERE { VALUES ?disease {wd:Q128581} # breast cancer ?disease wdt:P2293 ?diseaseGene ; # Glioblastoma --> genetic association --> gene rdfs:label ?diseaseLabel. ?cellType wdt:P8872 ?diseaseGene ; # Cell type --> has marker --> gene rdfs:label ?cellTypeLabel.
?diseaseGene rdfs:label ?geneLabel.
FILTER(LANG(?cellTypeLabel) = "en") FILTER(LANG(?diseaseLabel) = "en") FILTER(LANG(?geneLabel) = "en")
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#title: Cell types related to breast cancer via markers
SELECT ?cellTypeLabel ?geneLabel ?diseaseLabel
WHERE
{
VALUES ?disease {wd:Q128581} # breast cancer
?disease wdt:P2293 ?diseaseGene ; # Glioblastoma --> genetic association --> gene
rdfs:label ?diseaseLabel.
?cellType wdt:P8872 ?diseaseGene ; # Cell type --> has marker --> gene
rdfs:label ?cellTypeLabel.
?diseaseGene rdfs:label ?geneLabel.
FILTER(LANG(?cellTypeLabel) = "en")
FILTER(LANG(?diseaseLabel) = "en")
FILTER(LANG(?geneLabel) = "en")