This section introduces how to update a GraphSearch PoolParty 7.0 or higher plugin to GraphSearch PoolParty 8.0 plugin.
PoolParty 8.0 is a major release and contains architectural changes. This time it affects the GraphSearch plugin backend API. Plugins developed for GraphSearch 7.0 or higher will no longer work with GraphSearch 8.0 and need to be rebuilt with new dependencies after some minor code changes.
1. Code migration for the access to repository connection
If the plugin accesses to the storage backend of the search data via RDF4J repository connection, this migration step is necessary.
The entrypoint method of the plugin is
The connection details to the underlying data source is passed in by argument
Prior to PoolParty 8.0, this class has the following fields:
Since PoolParty 8.0, this class has the following fields:
Particularly, Generic Typed
searchServerDatabase is introduced to replace
repository and also encapsulate other type of storage backends. In the case of a search space configured on top of an RDF repository, the object needs to be casted to type
Repository before accessing to the connection object:
2. Rebuild the plugin with new dependencies
The following architectural changes are introduced in PoolParty 8.0:
- Java from 8 to 11
- RDF4J from 2 to 3
- Spring from 4 to 5
Dependency hierarchy is also reworked. For example, the dependency to Spring Context is moved out from GraphSearch API artifact, which is a dependency for plugins.
Accordingly, the plugin needs to be rebuilt with updated dependencies. The following configuration is a snippet of the updated project configuration in the form of Maven POM. You need to add to the POM configuration of the plugin project.
Finally, the plugin can be built again with Maven via
PoolParty 8.0 uses Java 11. Make sure the plugin is built with JDK 11.