英文:
How to share a SPARQL query result as a datasource
问题
我构建了一个Apache Jena Fuseki TDB并在其中创建了一些三元组。我使用SPARQL创建了一些查询。查询的结果看起来像一个表,类似于关系型数据库中的表。现在我想通过SQL操作这些结果,或者将结果共享为一个数据源,类似于Apache Drill中的表或视图。这是否可能?如果可能,我该如何实现这个想法。
英文:
i built a Apache Jena fuseki tdb and create some triples in it. i create some queries by sparql. the results of the queries seem like a table which is like a table in RDBMS. now i want to operate these results by SQL, or share the results as a data source that is like a table or a view in Apache Drill. Is it possible? if it's possible, how can I realize this thought.
答案1
得分: 2
我会列举三种可能性。
- 您可以尝试使用Drill的HTTP存储插件针对提供JSON或XML格式响应的Fuseki API。
- 付出更多努力,您可以为Drill编写一个新的TDB或Fuseki存储插件。
- 正如在评论中提到的,您可以将数据导出为Drill已经可以查询的文件格式。看起来JSON、XML和分隔文本是这方面的选项之一。
英文:
I'll list three possibilities.
- You can try to use Drill's HTTP storage plugin against the Fuseki API serving JSON or XML formatted responses.
- With more effort you can write a new TDB or Fuseki storage plugin for Drill.
- As noted in a comment, you can export your data to a file format already queryable by Drill. It looks like JSON, XML and delimited text are options in this vein.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论