删除 ontotext graphdb 中的 lucene 索引

delete lucene index in ontotext graphdb

我基于graphdb documentation在ontotext graphdb中创建了一个lucene索引。 但是我不知道如何用sparql删除索引。

Sparql 创建索引

PREFIX luc: <http://www.ontotext.com/owlim/lucene#>
 INSERT DATA {
 luc:analyzer luc:setParam "com.example.CustomAnalyzerFactory" .
 luc:index luc:setParam "uris".
 luc:moleculeSize luc:setParam "1".
 luc:myIndex luc:createIndex "true".
}

<http://www.ontotext.com/owlim/lucene#>支持哪些选项删除索引

删除索引的唯一方法是从文件系统中物理删除它。该索引位于 $GDB_HOME/data/repositories/<repositoryId>/storage/lucene/<indexId>。数据库重启后,所有插件信息都会消失。

请注意,除非您刷新插件,否则它不会占用任何资源!话虽如此,我强烈建议您检查 Lucene 连接器,它支持与数据库更新和删除索引自动同步数据:

http://graphdb.ontotext.com/documentation/standard/lucene-graphdb-connector.html