Commit 7208cb2
committed
refactor: improve concept resolution from NidTextRecord
- Add entity type validation using EntityHandle.get() with Optional handling
- Handle both ConceptEntity and SemanticEntity cases with proper type checking
- Add error handling for semantics not pointing to concepts
- Remove incomplete EntityHandle check that was left in code
- Keep backward compatibility with existing Entity.getFast() logic1 parent d86ca70 commit 7208cb2
1 file changed
Lines changed: 15 additions & 1 deletion
File tree
- rules/src/main/java/dev/ikm/komet/rules/actions/axiom
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
| |||
0 commit comments