如何将SPARQL查询结果分享为数据源

huangapple go评论60阅读模式
英文:

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

我会列举三种可能性。

  1. 您可以尝试使用Drill的HTTP存储插件针对提供JSON或XML格式响应的Fuseki API。
  2. 付出更多努力,您可以为Drill编写一个新的TDB或Fuseki存储插件。
  3. 正如在评论中提到的,您可以将数据导出为Drill已经可以查询的文件格式。看起来JSON、XML和分隔文本是这方面的选项之一。
英文:

I'll list three possibilities.

  1. You can try to use Drill's HTTP storage plugin against the Fuseki API serving JSON or XML formatted responses.
  2. With more effort you can write a new TDB or Fuseki storage plugin for Drill.
  3. 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.

huangapple
  • 本文由 发表于 2023年6月12日 17:09:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76455118.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定