query-0433262dd33f4e987c5fecf258138ca0
HYanWong
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?gene ?geneLabel ?geneSitelink ?product ?productLabel ?productSitelink WHERE {
BIND("RELN" AS ?symbol)
?gene wdt:P353 ?symbol;
wdt:P688 ?product.
OPTIONAL {
?geneSitelink schema:isPartOf <https://en.wikipedia.org/>;
schema:about ?gene.
}
OPTIONAL {
?productSitelink schema:isPartOf <https://en.wikipedia.org/>;
schema:about ?product.
}
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;
v2("?gene"):::projected
v4("?geneSitelink"):::projected
v3("?product"):::projected
v5("?productSitelink"):::projected
v1("?symbol")
c4([https://en.wikipedia.org/]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/"'RELN'"/]
bind0 --as--o v1
v2 --"wdt:P353"--> v1
v2 --"wdt:P688"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:isPartOf".-> c4
v4 --"schema:about"--> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:isPartOf".-> c4
v5 --"schema:about"--> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end