URLフォーマット

http:///quary26/< param >/[offset,limit][.format]

SPARQLクエリ

prefix dcterms: <http://purl.org/dc/terms/>
prefix sio: <http://semanticscience.org/resource/>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix subject: <http://purl.jp/bio/4/subject/>
prefix xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>
SELECT distinct ?chem ?label_chem ?event ?label_event ?disease ?label_disease
{
graph <http://nikkaji.biosciencedbc.jp/IOBC_1_2_0.ttl> {
   {?event xkos:precedes ?disease .} UNION {?event sio:SIO_000062 ?disease .} #finding pre-biological events of diseases
   {?chem sio:SIO_000062 ?event .} UNION {?chem sio:SIO_000225 ?event .}#finding chemicals regulating bi-ological events
       ?disease dcterms:subject subject:LS51 . #diseases
       {?chem dcterms:subject subject:CA06 .} #organic compounds
       UNION 
       {?chem dcterms:subject subject:CA05 .} #inorganic compounds
       UNION 
       {?chem dcterms:subject subject:LS44 .} #drugs
       ?chem skos:prefLabel ?label_chem. 
       ?event skos:prefLabel ?label_event. 
       ?disease skos:prefLabel ?label_disease. 
  }
}

説明


一覧に戻る