Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple attributes/associations of the same name in Interactive Configuration API #8

Open
rtaupe opened this issue Jan 16, 2023 · 1 comment

Comments

@rtaupe
Copy link
Collaborator

rtaupe commented Jan 16, 2023

In the Interactive Configuration API, there are several reasons why multiple attributes or associations of the same name but in different classes are not supported.

A (not necessarily exhaustive) list of these reasons:

  • The cv no_instance_for_attribute in ooasp_check.lp may be wrongly produced if attributes of the same name appear in two different classes.
  • There is a similar issue with the cv wrongtypeinassoc.
  • The calculation of association arities (predicate ooasp_arity in ooasp_arity.lp includes only the association name, but not the names of the involved class names, in the heads of rules.

Attention: Many of these ASP snippets also occur in asp_interactive_configuration/DOC.md!

@gschennersie
Copy link
Collaborator

In OOASP it is assumed (but not checked) that the "name" of an attribute/association is actual an unique id within the knowledge base i.e. "frame_position" instead just "position". This way attribute/association/names are unambigous. Otherwise we would have to add an additional class parameter to every attribute and 2 class parameters to every association. Also association names denote the whole association/relation e.g. "frame_modules" and not the role of an association (as typically used in an object oriented setting). Roles are not modelled in OOASP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants