Closed davetrig closed 8 years ago
Hi davetrig,
I think your problem is in the new role chain definition. You need to include the role group. Replacing the role chain definition with something like this should do it:
axioms.add(Factory.createRoleInclusion(new Role[]{locatedIn, roleGroup, partOf}, locatedIn));
Hope this works.
That did the trick. I figured I had to get roleGroup in there somewhere, but just couldn't figure out where.
Thanks again for all your help!
Yes, that should work.
On Tue, Jun 14, 2016 at 12:46 PM, davetrig notifications@github.com wrote:
One more question: how would that work for subtyping of roles? For example, in SNOMED CT, there's:
Due to (attribute) ⊑ Associated with (attribute)
Without the roleGroup, it would be
Role dueTo = new NamedRole("Due to (attribute)"); Role assocWith = new NamedRole("Associated with (attribute)"); axioms.add(Factory.createRoleInclusion(new Role[]{dueTo}, assocWith);
Is it just a matter of adding the roleGroup to the chain, making it a composition? Like:
axioms.add(Factory.createRoleInclusion(new Role[]{dueTo, roleGroup}, assocWith);
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aehrc/snorocket/issues/6#issuecomment-225765740, or mute the thread https://github.com/notifications/unsubscribe/AAV3dKvZtIufRxPaXtJYu1NS4moDSHt1ks5qLhX5gaJpZM4I0cx0 .
Hi again, I'm having an issue trying to model a role inclusion while implementing the implicit role group that was discussed in issue #4. I have an example that has a role locatedIn and a right identity role partOf:
As expected in this example, Heart Valve Disease is subsumed by Heart Disease. However, when I add the implicit role groups discussed in issue #4, it no longer works (code below). I can see how adding the role group would affect this, but how do I model the role inclusion and role group such that Heart Valve Disease gets subsumed by Heart Disease? Do I need to add axioms both with and without the implicit role group, or is there something else I'm missing?
Thanks, Dave