URLフォーマット

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

SPARQLクエリ

#<: $param :>

prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix dcterms: <http://purl.org/dc/terms/>
prefix sio: <http://semanticscience.org/resource/>
prefix inchi: <http://glyconavi.org/inchi/>

SELECT DISTINCT ?knapsack_id  ?knapsack_inchi ?knapsack_inchikey ?Skeleton ?nikkaji_inchikey ?nikkaji_inchi ?nikkaji_s
#SELECT count(?nikkaji_s)
WHERE {

GRAPH <http://nikkaji.biosciencedbc.jp/iupac-inchi/KNApSAcK> {
   ?s sio:CHEMINF_000200 [ sio:SIO_000300 ?knapsack_inchikey ; rdf:type sio:CHEMINF_000399 ] .
   ?s sio:CHEMINF_000200 / sio:SIO_000028 [ rdf:type inchi:Skeleton ; sio:SIO_000300 ?Skeleton  ] .
   ?s sio:CHEMINF_000200 [ sio:SIO_000300 ?knapsack_inchi ; rdf:type sio:CHEMINF_000396 ] .
   ?s dcterms:identifier ?knapsack_id .
}

GRAPH <http://nikkaji.biosciencedbc.jp/InChI_Layer> {
   ?nikkaji_s sio:CHEMINF_000200 [ sio:SIO_000300 ?nikkaji_inchikey ; rdf:type sio:CHEMINF_000399 ] .
   ?nikkaji_s sio:CHEMINF_000200 / sio:SIO_000028 [ rdf:type inchi:Skeleton ; sio:SIO_000300 ?nikkaji_Skeleton  ] .
   ?nikkaji_s sio:CHEMINF_000200 [ sio:SIO_000300 ?nikkaji_inchi ; rdf:type sio:CHEMINF_000396 ] .
}

FILTER ( ?Skeleton = ?nikkaji_Skeleton )

}

説明


一覧に戻る