The Chemical Substance Domain Ontology is a domain of the Elementary Multiperspective Materials Ontology (EMMO), for describing chemical substances. Its primary objective is to support the creation of FAIR, Linked Data. This ontology serves as a foundational resource for harmonizing knowledge representation, enhancing data interoperability, and accelerating progress in materials research and development.
Reference documentation is available here.
Here is some information to help you get started working with the ontology in python and creating you own instances of Linked Data. For more information, please see the Getting Started and Examples section of the documentation.
The table below contains a quick cheat sheet of IRIs for accessing different files from the ontology The import structure is summarized in the following table:
IRI | Description |
---|---|
https://w3id.org/emmo/domain/chemical-substance |
Base Asserted Ontology* |
https://w3id.org/emmo/domain/chemical-substance/inferred |
Base Pre-Inferred Ontology* |
https://w3id.org/emmo/domain/chemical-substance/latest |
Latest Asserted Ontology* |
https://w3id.org/emmo/domain/chemical-substance/source |
Source of Asserted Ontology* |
https://w3id.org/emmo/domain/chemical-substance/context |
Latest JSON-LD Context File |
https://w3id.org/emmo/domain/chemical-substance/{VERSION} |
Version of Asserted Ontology* |
https://w3id.org/emmo/domain/chemical-substance/{VERSION}/... |
... follows same logic above |
*IRI directs to human readable documentation if called from the web browser and to the source .ttl file if called from an application
There are two common ways to work with the ontology in python: loading the ontology as a graph using rdflib or exploring the content of the ontology using EMMOntoPy. Examples of both are provided below.
In rdflib, you can import the ontology as a graph, e.g. to run SPARQL queries:
from rdflib import Graph
# Define the IRI of the ontology
echo = "https://w3id.org/emmo/domain/chemical-substance"
# Create an empty graph
g = Graph()
# Load the ontology from the IRI
g.parse(echo, format="ttl")
# Print the number of triples in the graph
print(f"Graph has {len(g)} triples.")
In EMMOntoPy, you can choose to import the ontology directly from the web:
from ontopy import get_ontology
# Loading from web
echo = get_ontology('https://w3id.org/emmo/domain/chemical-substance').load()
This domain ontology supports the creation of Linked Data in any RDF-supported format. Below is an example using JSON-LD to desecribe ... . Please see the documentation for more examples.
{
"@context": "https://w3id.org/emmo/domain/chemical-substance/context"
}
This project has received support from European Union research and innovation programs, under grant agreement numbers:
- 957189 - BIG-MAP
The Electrochemistry Domain Ontology is released under the Creative Commons Attribution 4.0 International license (CC BY 4.0).