Working with EMMO using OSP-core¶
Follow these steps to use EMMO with OSP-core.
Clone the repo of EMMO:
git clone https://github.com/emmo-repo/EMMO.git cd EMMO
Checkout the branch of choice:
git checkout <branch_name>
Start Protege 5.2.0 with installed FaCT++ reasoner plugin
Open EMMO. For example open (File > Open…) the following file:
Run the FaCT++ reasoner (Reasoner > FaCT++ | Reasoner > Start Reasoner)
Export the inferred Axioms (File > Export inferred axioms as ontology)
Convert the resulting owl file to YAML:
owl2yml -n EMMO emmo_inferred.owl -c osp/core/tools/conversion_options/emmo.conversion_options.yml
Install the resulting YAML file:
pico install ontology.emmo.yml
Start creating cuds objects. Check the getting-started repository in the SimPhoNy group.
>>> from osp.core import emmo >>> n = emmo.Number(value=1) >>> ...