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

Ontologies cannot have relationships from different ontologies as default relationships #665

Closed kysrpex closed 3 years ago

kysrpex commented 3 years ago

When such a default relationship is set, the Ontology class raises a ValueError:

ontology.py#L183

                                 f"Specified relationship {iri} as "
                                 f"active relationship, which is not "
                                 f"a valid object property in the ontology."

This is unnecessary as the namespace registry is responsible for enforcing this check.