URLフォーマット

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

SPARQLクエリ

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 ?id ?Skeleton ?nikkaji_id ?nikkaji_inchikey str
(?inchikey) AS ?knapsackinchikey
FROM NAMED <http://nikkaji.biosciencedbc.jp/iupac-inchi/KNApSAcK>
FROM NAMED <http://nikkaji.biosciencedbc.jp/InChI>
WHERE {

GRAPH <http://nikkaji.biosciencedbc.jp/iupac-inchi/KNApSAcK> {
  ?s dcterms:identifier ?id .
  ?s sio:CHEMINF_000200 / sio:SIO_000028 [ rdf:type inchi:Skeleton ;
sio:SIO_000300 ?Skeleton  ] .
  ?Skeleton bif:contains "<: $param :>".
  ?s sio:CHEMINF_000200 [ sio:SIO_000300 ?inchikey ; rdf:type
sio:CHEMINF_000399 ] .
}

GRAPH <http://nikkaji.biosciencedbc.jp/InChI> {
 ?nikkaji_s <http://vocab.jst.go.jp/terms/sti#InChIKey> ?nikkaji_inchikey .
 ?nikkaji_inchikey bif:contains "<: $param :>".
 ?nikkaji_s <http://purl.org/dc/terms/identifier> ?nikkaji_id .
}

FILTER ( ?inchikey != ?nikkaji_inchikey )
}

説明


一覧に戻る