使用 GraphDB 的 Lucene 连接器时,如何直接访问 Lucene 而不是通过 SPARQL?

When using GraphDB's Lucene connector, how can I access Lucene directly instead of going through SPARQL?

我一直在玩 GraphDB 的 Lucene connector as a way to perform full-text search over a large amount of data, via SPARQL queries. I got the example working.1 除了通过 SPARQL 之外,还有其他方法可以 read/write Lucene 的数据吗?对于大量大型文档,我担心通过 SPARQL 加载它们可能效率低下,而不是直接将某种批量加载到 Lucene 中。

有没有一种方法可以更直接地访问 Lucene,而不是通过 SPARQL?

你有两个选择:

  • 切换到 GraphDB SOLR 或 Elasticsearch 连接器 - 这两种服务都公开其他客户端可访问的服务器 API。遗憾的是,此功能仅在 GraphDB 企业版中可用。

  • 实现您的 Lucene 服务器,它与 GraphDB 在同一台机器上工作运行,并以只读模式共享由 GraphDB 管理的 Lucene 索引。