如何访问 OntoRefine 的 API?

How can I access the API of OntoRefine?

在我们当前的项目中,我们有大量 table 形式的数据,我们希望将其转换为 RDF。 OpenRefine 提供了通过 API 创建项目或更新数据的可能性(参见:https://github.com/OpenRefine/OpenRefine/wiki/OpenRefine-API)。

是否可以将此 API 与 OntoRefine 一起使用,如果可以,我该怎么做?或者我们更好地建议使用 OpenRefine?

一年多前有人问过这个问题,但一直没有得到答复。 (How to integrate tabular data into GraphDB automatically?)

OntoRefine 是在 OpenRefine 之上的扩展和改进。 OpenRefine 提供的功能,包括 API,应该都出现在 GraphDB 版本中。在实施方面,您只需要一个简单的 HTTP 客户端即可。

这是一个使用之前创建的 OntoRefine 项目的示例。

public static void main(String[] args) throws URISyntaxException, IOException {
    CloseableHttpClient client = HttpClientBuilder.create().build();
    HttpGet post = new HttpGet(new URI("http://localhost:7200/orefine/command/core/get-models?project=1987845723285"));
    HttpEntity entity = client.execute(post).getEntity();
    System.out.println(EntityUtils.toString(entity));
}

当然你也可以使用OpenRefine库,比如refine-java,比如