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

Trying to add a subclass on the knowledge base page creates an error #4519

Closed
reckart opened this issue Feb 16, 2024 · 0 comments
Closed

Trying to add a subclass on the knowledge base page creates an error #4519

reckart opened this issue Feb 16, 2024 · 0 comments
Assignees
Labels
🐛Bug Something isn't working Module: Knowledge Base
Milestone

Comments

@reckart
Copy link
Member

reckart commented Feb 16, 2024

Describe the bug
I wanted to add 'Ischemic Nephropathy' as a subclass of 'Nephropathy' in my HPO Knowledgebase. I searched for 'Nephropathy' in the Knowledge Base, then clicked on the 'New Subclass" button and entered 'Ischemic Nephropathy'. When I click 'Create' I get a 'Whoops' error (see screenshot below). Strangely, when I go back to the Knowledge Base and search for 'Ischemic Nephropathy', the term is now there (see screenshot below).

To Reproduce
Steps to reproduce the behavior:

  1. Create a local knowledge base using the HPO profile
  2. Go to the knowledge base page
  3. Search for Nephropathy and select it
  4. Click on New Subclass and create one called Ischemic Nephropathy
  5. See the "Whoops..." page

Expected behavior
No error.

Screenshots

Caused by: java.lang.NullPointerException: Cannot invoke "de.tudarmstadt.ukp.inception.kb.model.KnowledgeBase.getClassIri()" because "this.kb" is null
	at de.tudarmstadt.ukp.inception.kb.querybuilder.SPARQLQueryBuilder.limitToClasses(SPARQLQueryBuilder.java:1962) ~[classes/:?]
	at de.tudarmstadt.ukp.inception.kb.querybuilder.SPARQLQueryBuilder.forClasses(SPARQLQueryBuilder.java:537) ~[classes/:?]
	at de.tudarmstadt.ukp.inception.kb.KnowledgeBaseServiceImpl.getParentConceptList(KnowledgeBaseServiceImpl.java:1177) ~[classes/:?]
	at de.tudarmstadt.ukp.inception.kb.KnowledgeBaseServiceImpl$$FastClassBySpringCGLIB$$77259834.invoke(<generated>) ~[classes/:?]
        ...

Please complete the following information:

  • Version and build ID: 31.0
@reckart reckart added 🐛Bug Something isn't working Module: Knowledge Base labels Feb 16, 2024
@reckart reckart added this to the 31.1 milestone Feb 16, 2024
@reckart reckart self-assigned this Feb 16, 2024
reckart added a commit that referenced this issue Feb 16, 2024
…n error

- Fix issue by setting the knowledge base on KB items (concepts, properties, instances) when creating them in a KB.
reckart added a commit that referenced this issue Feb 16, 2024
…-add-a-subclass-on-the-knowledge-base-page-creates-an-error

#4519 - Trying to add a subclass on the knowledge base page creates an error
@reckart reckart closed this as completed Feb 16, 2024
reckart added a commit that referenced this issue Feb 16, 2024
* release/31.x:
  #4518 - Wrong feature type shown in dropdown when scope is set in concept feature settings
  #4519 - Trying to add a subclass on the knowledge base page creates an error
  #2879 - Improve multi-value features
  #2879 - Improve multi-value features
  #2879 - Improve multi-value features
  #2879 - Improve multi-value features
@reckart reckart added this to Kanban Aug 7, 2024
@reckart reckart moved this to 🍹 Done in Kanban Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Something isn't working Module: Knowledge Base
Projects
Archived in project
Development

No branches or pull requests

1 participant