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

Error in SadlUtils.classIsSubclassOf #840

Open
crapo opened this issue Dec 17, 2021 · 0 comments
Open

Error in SadlUtils.classIsSubclassOf #840

crapo opened this issue Dec 17, 2021 · 0 comments

Comments

@crapo
Copy link
Collaborator

crapo commented Dec 17, 2021

Model:

 Location is a class.
 LegalEntity is a class.
 GeoPoliticalEntity is a type of {LegalEntity and Location}.
 Nation is a type of GeoPoliticalEntity.
 
 Commitment is a class, described by committer with values of type LegalEntity, described by commitee with values of type LegalEntity.
 Guarantee is a type of Commitment.
 
 China is a Nation.
 
 a Guarantee with committer China.

has warning on last statement, "committer, an object property with range http://sadl.org/classIsSubclassOfBug.sadl#LegalEntity, cannot be compared (is) with China, an instance of type http://sadl.org/classIsSubclassOfBug.sadl#Nation.".
Since Nation is a subclass of GeoPoliticalEntity and GeoPoliticalEntity is a subclass of the intersection of LegalEntity and Location, an instance of Nation must be an instance of LegalEntity and the warning is wrong.

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

1 participant