Skip to content

#4931 - Support for GraphDB knowledge bases - #4932

Merged
reckart merged 6 commits into
mainfrom
feature/4931-Support-for-GraphDB-knowledge-bases
Mar 5, 2026
Merged

reckart merged 6 commits into
mainfrom
feature/4931-Support-for-GraphDB-knowledge-bases

Conversation

@reckart

@reckart reckart commented Jul 6, 2024 •

Copy link
Copy Markdown
Member

What's in the PR

  • Adds GraphDB support including FTS support

How to test manually

  • No specific test procedure

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

@reckart reckart self-assigned this Jul 6, 2024
@reckart
reckart force-pushed the feature/4931-Support-for-GraphDB-knowledge-bases branch from eaec460 to 574a4db Compare July 6, 2024 20:09
- Tentative support - fails many tests
@reckart
reckart force-pushed the feature/4931-Support-for-GraphDB-knowledge-bases branch from a26a723 to 0755e24 Compare March 24, 2025 20:30
reckart added 3 commits March 3, 2026 17:25
…ases

* main: (537 commits)
  #5903 - Decompose assistant panel into multiple components
  No issue. Adjust egress whitelist
  #2389 - Prevent curation until ANNOTATION_FINISHED
  #2389 - Prevent curation until ANNOTATION_FINISHED
  #5793 - Upgrade dependencies
  #2389 - Prevent curation until ANNOTATION_FINISHED
  #4941 - Mapping OIDC groups to INCEpTION's internal roles
  #5716 - Multiple no-label suggestions if there are multiple recommenders for different features on one layer
  #5716 - Multiple no-label suggestions if there are multiple recommenders for different features on one layer
  #2389 - Prevent curation until ANNOTATION_FINISHED
  #5716 - Multiple no-label suggestions if there are multiple recommenders for different features on one layer
  #4941 - Mapping OIDC groups to INCEpTION's internal roles
  #5775 - Cleaning up
  #4941 - Mapping OIDC groups to INCEpTION's internal roles
  #4941 - Mapping OIDC groups to INCEpTION's internal roles
  #5793 - Upgrade dependencies
  #4941 - Mapping OIDC groups to INCEpTION's internal roles
  #4941 - Mapping OIDC groups to INCEpTION's internal roles
  #4941 - Mapping OIDC groups to INCEpTION's internal roles
  #4941 - Mapping OIDC groups to INCEpTION's internal roles
  ...
- Use bsaic GraphDB configuration without inference to fix most tests
- Upload license into test container if license is available - otherwise skip tests
- Pre-resolve label properties for more stable tests (and fixing some problems with "*" path resolution in GraphDB)
- Fix GraphDB FTS
- Fix tests
- Pin GraphDB version
- Pin Keycloak version
@reckart reckart added this to Kanban Mar 4, 2026
@github-project-automation github-project-automation Bot moved this to 🔖 To do in Kanban Mar 4, 2026
@reckart reckart added this to the 40.0 milestone Mar 4, 2026
@reckart
reckart marked this pull request as ready for review March 4, 2026 20:28
@reckart
reckart requested a review from Copilot March 4, 2026 20:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds GraphDB as a supported remote knowledge base backend (including full-text search integration) and updates tests and documentation to accommodate the new backend and newer Keycloak behavior.

Changes:

  • Add a GraphDB full-text-search adapter and supporting SPARQL query building utilities.
  • Add/adjust tests to resolve effective label properties up-front and to validate GraphDB/Keycloak behavior.
  • Update user documentation and supporting configuration (IRIs, gitignore, Maven deps).

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
inception/inception-ui-kb/src/main/resources/META-INF/asciidoc/user-guide/projects_knowledge-base.adoc Documents GraphDB FTS configuration and inference disabling.
inception/inception-security/src/test/resources/keycloak/inception-security-test-realm.json Adjusts Keycloak test realm to allow non-SSL HTTP access.
inception/inception-security/src/test/java/de/tudarmstadt/ukp/inception/security/oauth/OAuth2AdapterImplKeycloakTest.java Updates Keycloak testcontainer image usage and replaces admin-client check with OIDC discovery validation.
inception/inception-security/pom.xml Removes Keycloak admin client test dependencies no longer needed by tests.
inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/SPARQLQueryBuilderRemoteServicesTest.java Updates remote-service tests to pre-resolve preferred label properties.
inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/SPARQLQueryBuilderLocalTestScenarios.java Adds helper to resolve preferred label properties and updates scenarios accordingly.
inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/SPARQLQueryBuilderGenericTest.java Updates generic query-safety tests to pre-resolve preferred label properties.
inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/querybuilder/GraphDbRepositoryTest.java Adds GraphDB docker-based integration test coverage.
inception/inception-kb/src/test/java/de/tudarmstadt/ukp/inception/kb/FullTextIndexUpgradeTest.java Updates upgrade tests to pre-resolve preferred label properties before label matching.
inception/inception-kb/src/main/java/de/tudarmstadt/ukp/inception/kb/querybuilder/SPARQLQueryBuilder.java Introduces GraphDB adapter selection and enforces pre-resolved preferred label properties for label-matching operations.
inception/inception-kb/src/main/java/de/tudarmstadt/ukp/inception/kb/querybuilder/GraphDbFtsQuery.java Adds GraphDB-specific FTS query pattern builder.
inception/inception-kb/src/main/java/de/tudarmstadt/ukp/inception/kb/querybuilder/FtsAdapterGraphDb.java Implements GraphDB FTS behavior (language-index unioning, wildcard/prefix handling).
inception/inception-kb/src/main/java/de/tudarmstadt/ukp/inception/kb/IriConstants.java Adds GraphDB namespace + FTS IRI and exposes backend name.
inception/inception-kb/pom.xml Adjusts Apache HttpComponents dependencies to support new GraphDB test code.
.gitignore Ignores *.license files (e.g. GraphDB license).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread inception/inception-kb/pom.xml Outdated
…ases#4931 - Support for GraphDB knowledge bases

- Cleaning up
@reckart
reckart merged commit c349211 into main Mar 5, 2026
3 checks passed
@reckart
reckart deleted the feature/4931-Support-for-GraphDB-knowledge-bases branch March 5, 2026 18:45
@github-project-automation github-project-automation Bot moved this from 🔖 To do to 🍹 Done in Kanban Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants