我基于图数据库文档在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#>支持哪些选项来删除索引
发布于 2018-10-22 07:32:34
删除索引的唯一方法是从文件系统中实际删除索引。索引位于$GDB_HOME/data/repositories/<repositoryId>/storage/lucene/<indexId>中。重新启动数据库后,所有插件信息都将消失。
请注意,插件不会占用任何资源,除非你刷新它!尽管如此,我强烈建议您检查Lucene连接器,它支持数据库更新和删除索引的自动数据同步:
http://graphdb.ontotext.com/documentation/standard/lucene-graphdb-connector.html
https://stackoverflow.com/questions/52899734
复制相似问题