ChemicalElement instances

Dear all,

I am in the process of linking an ontology to some of the chemical compounds and elements in DBPedia. This is particularly useful since DBPedia records the INCHI numbers of these instances (International Chemical key by the IUAPC). However, I am unable to retrieve that information concerning chemical elements. The SPARQL endpoint returns empty results whenever I query for dbo:ChemicalElement instances, for example:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dbo: <http://dbpedia.org/ontology/>

SELECT * WHERE { ?y a dbo:ChemicalElement . }

Are these absent from the knowledge graph? Or should they be queried in a different way?

Thank you.

1 Like

Hi @ldesousa,

You can use the following SPARQL query to retrieve chemical compounds along with their InChI identifiers:

SELECT ?entity ?inchi WHERE {
?entity dbo:inchi ?inchi .
}

However, it’s worth noting that there seems to be limited data available, as only one chemical substance containing an InChI identifier is currently linked in the DBpedia dataset. Additionally, while there is also an InChIKey property available, it doesn’t appear to be linked to any entities:

SELECT ?entity ?inchiKey WHERE {
?entity dbp:inchiKey ?inchiKey .
}