This package is based on Owlready2 and provides an intuitive representation of EMMO in Python.
EMMO is an ongoing effort to create an ontology that takes into account fundamental concepts of physics, chemistry and materials science and is designed to pave the road for semantic interoperability. The aim of EMMO is to be generic and provide a common ground for describing materials, models and data that can be adapted by all domains.
EMMO is formulated using OWL. emmo
makes it easier to use EMMO for
solving real problems, by providing a natural representation of it in
Python. No knowledge of OWL is required to use emmo
. In emmo
,
entities in EMMO are represented as Python classes, while individuals
are represented as instances of these. Relations are represented as
class properties.
Below is a basic example showing how to access an entity using emmo
:
>>> from emmo import get_ontology
>>> emmo = get_ontology()
>>> emmo.load()
>>> emmo.sync_reasoner()
>>> emmo.matter
emmo.matter
>>> emmo.matter.is_a
[emmo-core.physical, emmo-core.is_part_of.only(emmo-material.matter)]