データセット一覧

ChEBI RDF

ChEBI(Chemical Entities of Biological Interest) は、「小分子化合物」を対象とした、自由にアクセス可能なオントロジーベースのデータベースです。化学構造、名称、定義、機能的役割、生物学的な関係性などを含む手作業でキュレーションされた非専有データを提供し、外部リソースへのリンクも備えており、ケミカルバイオロジーやバイオインフォマティクス分野で広く利用されています

データセット仕様

タグ
Drug/Chemical
提供元 Original
登録区分 Added by RDF portal
データ提供者
  • European Bioinformatics Institute
作成者
  • European Bioinformatics Institute
公開日 2026-11-11
ライセンス
  • Creative Commons License (CC BY 4.0), and governed by EMBL-EBI’s terms of use and Long-term data preservation policy.
バージョン Release 257
ダウンロード /website/ja/download/#chebi
SPARQLエンドポイント https://rdfportal.org/ebi/sparql

データセット統計

Triples
9947012
Subjects
1396057
Properties
40
Objects
2423981
Classes
7

SPARQLクエリ例

例 1

エンドポイントで実行
# Search for chemical entities by name or synonym.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX oboinowl: <http://www.geneontology.org/formats/oboInOwl#>

SELECT DISTINCT ?compound ?label ?matched_name
FROM <http://rdf.ebi.ac.uk/dataset/chebi>
WHERE {
  VALUES ?keyword { "glucose" }

  ?compound a owl:Class ;
            rdfs:label ?label ;
            (rdfs:label|oboinowl:hasExactSynonym|oboinowl:hasRelatedSynonym)
              ?matched_name .

  FILTER(CONTAINS(LCASE(STR(?matched_name)), LCASE(?keyword)))
  FILTER NOT EXISTS { ?compound owl:deprecated true }
}
ORDER BY ?label ?compound
LIMIT 100

例 2

エンドポイントで実行
# Retrieve all descendant classes of a specified ChEBI class.

PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT DISTINCT ?compound ?label
FROM <http://rdf.ebi.ac.uk/dataset/chebi>
WHERE {
  VALUES ?parent { obo:CHEBI_33709 }

  ?compound rdfs:subClassOf+ ?parent ;
            rdfs:label ?label .

  FILTER(isIRI(?compound))
  FILTER(?compound != ?parent)
  FILTER NOT EXISTS { ?compound owl:deprecated true }
}
ORDER BY ?label ?compound
LIMIT 100

例 3

エンドポイントで実行
# Retrieve roles explicitly assigned to a specified chemical entity.

PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT DISTINCT ?compound ?label ?role ?role_label
FROM <http://rdf.ebi.ac.uk/dataset/chebi>
WHERE {
  VALUES ?compound { obo:CHEBI_17234 }

  ?compound rdfs:label ?label ;
            rdfs:subClassOf ?restriction .

  ?restriction a owl:Restriction ;
               owl:onProperty obo:RO_0000087 ;
               owl:someValuesFrom ?role .

  ?role rdfs:label ?role_label .
}
ORDER BY ?role_label

例 4

エンドポイントで実行
# Retrieve external database cross-references for a specified ChEBI entry.

PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX oboinowl: <http://www.geneontology.org/formats/oboInOwl#>

SELECT DISTINCT ?compound ?label ?xref
FROM <http://rdf.ebi.ac.uk/dataset/chebi>
WHERE {
  VALUES ?compound { obo:CHEBI_17234 }

  ?compound rdfs:label ?label ;
            oboinowl:hasDbXref ?xref .
}
ORDER BY ?xref

例 5

エンドポイントで実行
# Retrieve the definition, molecular formula, charge, mass, and structure identifiers for a specified ChEBI entry.

PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX chemrof: <https://w3id.org/chemrof/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?compound ?label ?definition
                ?formula ?charge ?mass ?smiles ?inchi ?inchikey
FROM <http://rdf.ebi.ac.uk/dataset/chebi>
WHERE {
  VALUES ?compound { obo:CHEBI_17234 }

  ?compound rdfs:label ?label .

  OPTIONAL { ?compound obo:IAO_0000115 ?definition . }
  OPTIONAL { ?compound chemrof:generalized_empirical_formula ?formula . }
  OPTIONAL { ?compound chemrof:charge ?charge . }
  OPTIONAL { ?compound chemrof:mass ?mass . }
  OPTIONAL { ?compound chemrof:smiles_string ?smiles . }
  OPTIONAL { ?compound chemrof:inchi_string ?inchi . }
  OPTIONAL { ?compound chemrof:inchi_key_string ?inchikey . }
}

スキーマ図

Schema diagram for chebi
Schema diagram for chebi