query-ffdad8bfc917ea12bdf2403438efeac8
PropertiesEntrez Gene ID (P351)found in taxon (P703)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?cid ?entrez_id ?label ?article WHERE {
?cid wdt:P351 ?entrez_id .
?cid wdt:P703 wd:Q15978631 .
OPTIONAL { ?cid rdfs:label ?label filter (lang(?label) = "en") .}
?article schema:about ?cid .
?article schema:inLanguage "en" .
FILTER REGEX(STR(?article), "Template", "i")
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?article"):::projected
v3("?cid"):::projected
v4("?entrez_id"):::projected
v2("?label"):::projected
c3(["en"]):::literal
c6(["wd:Q15978631"]):::iri
f0[["regex(str(?article),'Template','i')"]]
f0 --> v1
v3 --"wdt:P351"--> v4
v3 --"wdt:P703"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v2
end
v1 --"schema:about"--> v3
v1 --"schema:inLanguage"--> c3