Migrating GraphDB configurations

To migrate from one GraphDB version to another, follow the instructions in the last column of the table below, and then the steps described further down in this page.

Compatibility between the versions of GraphDB, Connectors, and third-party connectors

GraphDB

RDF4J

Connectors

Elasticsearch

OpenSearch

Lucene

Solr

Kafka

11.1.x

5.1.4

16.4.0

9.0.2

3.1.0

9.12.0

9.4.1

3.9.1

GraphDB 11.1 enhances the Talk to Your Graph feature and other mechanisms that use Large Language Models (LLMs) to support alternatives to OpenAI LLMs. As a result, several configuration properties related to those mechanisms have been deprecated and replaced with new properties:

  • graphdb.llm.api is a new property that configures the LLM API that will be used by GraphDB.

  • graphdb.openai.api-key has been replaced by graphdb.llm.api-key.

  • graphdb.openai.url has been replaced by graphdb.llm.url.

  • graphdb.openai.auth has been replaced by graphdb.llm.auth.

  • graphdb.llm.model is a new property that configures the default LLM model for TTYG and GPT functions and SPARQL explain.

While we strongly suggest updating your configuration properties to reflect those changes, the deprecated properties are still supported. For more information, check the configuration properties documentation section in Talk to Your Graph and LLM properties.

GraphDB no longer supports non-global cache. As a result, graphdb.global.page.cache has been deprecated and has no effect.

The verificationTimeout configuration property used by the cluster mechanism has a new default value of 300 (it was previously 1500). This does not affect already existing cluster configurations.

GraphDB 11.1.1 fixes a bug which caused a fingerprint mismatch when using connectors. Since the issue can leave invalid data in dynamic_settings.json, it is advised to recreate and reindex the connector instances to the indexing of unrelated documents.

11.0.x

5.1.2

16.3.1

8.14.3

2.18.0

9.12.0

9.4.1

3.9.0

GraphDB 11 comes with a higher Java version requirement (Java 21). You need to upgrade your version of Java to Java 21.

GraphQL support is now part of GraphDB 11. It was previously supported in Semantic Objects. If you want to migrate from Semantic Objects to GraphDB 11, check the Migrating GraphQL configurations from Semantic Objects to GraphDB documentation.

GraphDB 11 now uses Logback 1.5, which affects the format of the logback.xml file:

  • In configuration files, <if> elements can no longer be nested within an <appender>, <logger> or <root> elements.

  • <jmxConfigurator /> was removed from Logback and is no longer supported in GraphDB.

Some GraphDB configuration properties have been deprecated and replaced with new ones:

  • default.min.distinct.threshold has been deprecated and replaced by graphdb.query.memory.threshold.

  • Due to the migration to Tomcat 11.0.5, some network configuration properties have been renamed. Check the Network properties documentation for full information on those properties.

  • SSL can now be enabled with a single property graphdb.connector.ssl.enabled. Setting this property to true is equal to this configuration used in versions prior to GraphDB 11:

    graphdb.connector.SSLEnabled = true
    graphdb.connector.scheme = https
    graphdb.connector.secure = true
    

Starting with GraphDB 11, subtree search is available and enabled by default for both users and roles. Previously, subtree search was available by default only for users, without an option to control it. For more information, check the LDAP user database documentation.

The following licensing and feature changes affect GraphDB Free:

  • License requirement: The built-in license for GraphDB Free has been removed. Users upgrading to GraphDB Free 11 must request a free license from the Ontotext website and manually install it before use.

  • Repository limit: GraphDB Free now supports up to 5 repositories.

  • Authentication and Authorization: LDAP, OpenID/OAuth, Kerberos, and X.509 authentication and authorization methods are no longer available in GraphDB Free.

  • Entity ID restriction: Support for 40-bit entity IDs has been removed.

All these features remain available in GraphDB Enterprise and GraphDB Standard.

If you are upgrading from GraphDB 10.x or older, please upgrade to GraphDB 10.8 before you upgrade to GraphDB 11.0.

See compatibility for GraphDB versions 10.x and older.

Migrating GraphDB

To migrate your GraphDB configuration and data, follow the steps below.

Warning

Keep in mind that after that, you cannot automatically revert to GraphDB 10.x.

  1. Stop the GraphDB 10.x instance.

  2. Back up your repositories and configuration — this will ensure you can revert safely if something goes wrong during the upgrade.

    1. To back up all repositories, copy the data directory. See also Backing up and Restoring a Repository for additional ways to backup repository data.

    2. To back up all configuration, copy the work and conf directories.

  3. Your existing GraphDB 10.x home directory (containing the conf, data, and work directories) can be used directly as the GraphDB 11.0 home directory.

    Tip

    You can also copy the conf, data, and work directories from the GraphDB 10.x home directory to a new directory to use as the GraphDB 11.0 home directory. In this case, your GraphDB 10.x home directory is also the backup so you may skip the backup steps.

    The various directories are described in detail in the Structure of the distribution package section.

  4. Start GraphDB 11.0.

Migrating plugins in a cluster

When upgrading to a newer GraphDB version, it might contain plugins that are not present in the older version. In this case, and when using a cluster, the Plugin Manager disables the newly detected plugins, so you need to enable them by executing the following SPARQL query:

insert data {
    [] <http://www.ontotext.com/owlim/system#startplugin> "plugin-name"
}

Then create your plugin following the steps described in the corresponding documentation, and also make sure to not delete the database in the plugin you are using.

You can also stop a plugin before the migration in case you deem it necessary:

insert data {
    [] <http://www.ontotext.com/owlim/system#stopplugin> "plugin_name"
}