在GraphDB 6.6版上,当我试图从命令行中删除存储库时,会出现此错误:
Commands end with '.' at the end of a line
Type 'help.' for help
> show r.
show r
+----------
|SYSTEM ("System configuration repository")
|knora-test ("Knora test repository")
+----------
> drop knora-test.
drop knora-test
Unable to drop repository 'knora-test': Multiple ID-statements for repository ID knora-test
>
此存储库不会显示在web工作台中。
进一步来看,错误背后的异常是:
org.openrdf.repository.config.RepositoryConfigException: Multiple ID-statements for repository ID knora-test
at org.openrdf.repository.config.RepositoryConfigUtil.getIDStatement(RepositoryConfigUtil.java:269)
at org.openrdf.repository.config.RepositoryConfigUtil.hasRepositoryConfig(RepositoryConfigUtil.java:91)
at org.openrdf.repository.manager.RemoteRepositoryManager.removeRepository(RemoteRepositoryManager.java:269)
at org.openrdf.console.Drop.dropRepository(Drop.java:99)
at org.openrdf.console.Drop.execute(Drop.java:59)
at org.openrdf.console.Console.executeCommand(Console.java:290)
at org.openrdf.console.Console.start(Console.java:271)
at org.openrdf.console.Console.main(Console.java:129)
对此的修复方法是手动删除存储库,导航到数据目录,发现有故障的存储库并将其删除。