gene (E75)

language codelabeldescriptionaliasesedit
engenebasic schema for genes represented in Wikidataedit
bsgenedit
deGenedit
eogenoedit
frgèneedit
ja遺伝子遺伝子を記述するための基本的なスキーマedit
nlgenedit
ptgeneedit
# Shape Expression for Human genes in Wikidata
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/>

start = @<#wikidata-gene>

# Query with results
# SELECT * WHERE {?item wdt:P31 wd:Q7187 .} LIMIT 10

# Indicates which shape to use to start iterating over the graph if none is provided.

# wikidata-human gene is the main shape for a human gene data model in Wikidata. Each line between the brackets
# represents the structure that can be enforced to validate human gene annotations in Wikidata
#
# We distinguish between value statements, identifier statements, and erroneous statements.
# Value statements contain either actual values or pointers to other Wikidata items. Identifier statements capture
# external identifiers, erroneous statements are those that are errors.
#

<#wikidata-gene> EXTRA p:P31  {
    # VALUE STATEMENTS
    p:P31 @<#P31_instance_of_gene> ; 
}

<#P31_instance_of_gene> { 
   ps:P31 @<#gene_types> ;     # Instance of [P31] gene types
   prov:wasDerivedFrom @E265:reference+;
}

<#gene_types> [
  wd:Q7187  # gene
  wd:Q20747295 # protein-coding gene
  wd:Q427087 # ncRNA
  wd:Q284578 # snRNA
  wd:Q284416 # snoRNA
  wd:Q215980 # rRNA
  wd:Q201448 # tRNA
  wd:Q277338 # pseudo
  wd:Q11053 # miscRNA
  wd:Q25323710 # scRNA
]