Skip to content

Instantly share code, notes, and snippets.

@andrawaag
Created July 3, 2017 12:47
Show Gist options
  • Save andrawaag/5657f0c72fb6c269d3a87921c53e1b9c to your computer and use it in GitHub Desktop.
Save andrawaag/5657f0c72fb6c269d3a87921c53e1b9c to your computer and use it in GitHub Desktop.
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX prv: <http://www.wikidata.org/prop/reference/value/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
<wikidata-human_gene> {
p:P31 @<P31_instance_of_gene> ; # must be instance of gene (only one)
p:P31 @<P31_instance_of_protein>{0} ; NOT instance of protein
p:P279 @<P279_subclass_of_gene>+ ; # subclass of (one or more)
p:P353 @<P353_hgnc_gene_symbol> ; # HGNC symbol (only one)
p:P688 @<P688_encodes>* ; # encodes (zero or more)
p:P352 @<P352_uniprot_id>{0} ; # NOT uniprot ID
}
<P31_instance_of_gene> {
ps:P31 [wd:Q7187] ; # Instance of [P31] gene [wd:Q7187]
}
<P279_subclass_of_gene> {
ps:P279 @<gene_types> ; # Subclass of [P279] gene types <gene_types>
}
<P353_hgnc_gene_symbol> {
ps:P353 LITERAL ; # The gene symbol [P353] for the applicable gene item.
}
<P688_encodes> {
ps:P688 IRI ; # gene encodes [688] for a gene product.
}
<P352_uniprot_id_wor> {
ps:P352 LITERAL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment