Skip to content

Instantly share code, notes, and snippets.

@andrawaag
Created July 3, 2017 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrawaag/bd91a0fea17d97753dd68c7f76d91037 to your computer and use it in GitHub Desktop.
Save andrawaag/bd91a0fea17d97753dd68c7f76d91037 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_wor>{0} ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment