simphony / simphony-osp

A framework that aims to achieve interoperability between software such as simulation engines, databases and data repositories using a knowledge graph as the common language.
https://simphony.readthedocs.io
Other
16 stars 12 forks source link

Allow to reference owl entities by the indentifier in the yml file #457

Open urbanmatthias opened 4 years ago

urbanmatthias commented 4 years ago

See https://gitlab.cc-asp.fraunhofer.de/ontology/applications/reaxpro/co2-activation/-/issues/3#note_310092

urbanmatthias commented 3 years ago

Summary:

In a YAML file that acts as a configuration of an OWL ontology, there is:

For example:

idenfier: emmo
namespaces:
    math: ...
    physical: ...
    ...

then

from osp.core.namespaces import math
math.Number

This issue wants to allow something like:

from osp.core.packages import emmo
emmo.Number

Here the one issue is that multiple Numbers could be defined in multiple namespaces (of EMMO in this case).

For EMMO, this has been fixed on the ontology level in the latest versions. Nevertheless, this might become necessary for other ontologies.