Skip to content

Instantly share code, notes, and snippets.

@andrawaag
Created July 3, 2017 13:06
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/8ed123e0d7d4e50e88bc3e0f111cd6ea to your computer and use it in GitHub Desktop.
Save andrawaag/8ed123e0d7d4e50e88bc3e0f111cd6ea to your computer and use it in GitHub Desktop.
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
<wikidata-human_gene> {
p:P31 { ps:P31 [wd:Q7187]; }; # must be instance of [P31] gene [wd:Q7187] (only one)
p:P31 { ps:P31 [wd:Q8054]; }{0} ; # NOT instance of protein [wd:Q8054]
p:P279 { ps:P279 [wd:Q7187 wd:Q20747295 ]; }+ ; # subclass of (one or more) gene = wd:Q7187, protein-coding gene = wd:Q20747295
p:P353 { ps:P353 LITERAL ; } ; # HGNC symbol [P353] (only one)
p:P688 { ps:P688 IRI ;}* ; # encodes [P688] (zero or more)
p:P352 { ps:P352 LITERAL;}{0} ; # NOT a uniprot ID
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment