A set of SPARQL examples that are used in different TGX resources
License: https://www.gnu.org/licenses/gpl-3.0
Uses method in: https://github.com/WDscholia/scholia/tree/master/scholia/app/templates/taxon_proteome.sparql
Taxon aspect: proteome
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX target: <http://www.wikidata.org/entity/Q12024>
SELECT
?protein ?proteinLabel ?proteinDescription
?gene ?geneLabel
WITH {
SELECT ?protein ?gene ?chromosome WHERE {
?protein wdt:P31 wd:Q8054 ;
wdt:P703 target: .
}
} AS %results {
INCLUDE %results
?protein wdt:P702 ?gene .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
graph TD