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

Using superclass relations overrides specialised ones #856

Open adhamhashibon opened 1 year ago

adhamhashibon commented 1 year ago

If using the foo_individual[namespace.relation ] = bar_individual form, overrides any other relation made with any subclass of namespace.relation.

example, if we refer to city, define and add a Major, then add a neighbourhood part, the relation to major (has major is subclass of has part) is gone. One needs to remember to use the += form, even though logically adding elements at a different level should be independent.

proposal: make the [ ] notation act the same as the one using connect, or discourage using it, or issue clear note in the documentation.

@yoavnash @pablo-de-andres do you know anything about this so far?

yoavnash commented 1 year ago

Nope.