Skip to content

Releases: simphony/simphony-osp

v3.4.2-beta

10 Sep 12:30
2824724
Compare
Choose a tag to compare

Bugfixes when working with EMMO

v3.4.1-beta

13 Aug 09:42
5a75f6a
Compare
Choose a tag to compare
  • Added the yaml2camelcase to convert the entity names of yaml ontologies to camel case.
  • Fixed ontology2dot
  • Updated an example with postgresql
  • Fixed a bug when trying to clear an empty database
  • Improved error messages of pico
  • Add easy way to serialize CUDS objects: osp.core.utils.serialize / desierialize
  • added method to delete cuds objects recursively and fixed a bug that made this impossible
  • Cleaned up source code files
  • Fixed utils.getrdfgraph
  • default relationship can now refer to different namespace

v3.4.0-beta

04 Aug 13:16
0da7b0c
Compare
Choose a tag to compare

OWL is now integrated in osp-core.

Use pico install emmo to install EMMO. To integrate your own owl ontology create a file similar to osp/core/ontology/docs/emmo.yml.

Small example:

>>> from osp.core.namespaces import math
>>> math.Numerical.attributes
{<OntologyAttribute math.hasNumericalData>: None}
>>> x = math.Numerical(hasNumericalData=12)
>>> x
<math.Numerical: c11cc272-cdcf-421a-8838-5f177b065746,  CoreSession: @0x7f1987173190>
>>> x.hasNumericalData
12

The changes are mostly backwards compatible, although you will probably get some warnings. To get rid of the warnings:

  • from osp.core import namespace is now from osp.core.namespaces import namespace
  • In the YAML ontology, the entity names need no longer be ALL_CAPS
  • If you reference entities from code, you have to match the case of the entities as defined in the ontology.