如何使用Virtuoso创建SPARQL端点? [英] How to create a SPARQL endpoint using Virtuoso?

查看:274
本文介绍了如何使用Virtuoso创建SPARQL端点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚设置了Virtuoso,并使用以下代码将本地计算机上存在的OWL文件(使用Protege软件创建)加载到Virtuoso中:

I have just setup Virtuoso and I have loaded an OWL file (created with Protege software) present on my local machine in to Virtuoso using the following code:

SQL> DB.DBA.RDF_LOAD_RDFXML_MT (file_to_string_output ('antibiotics.owl'), '', 'http://myexample.com');

现在,我的问题是如何访问URI myexample.com?如何在Virtuoso中创建SPARQL端点,以便对其进行查询?

Now, my question is how do I access the URI myexample.com ? How do I create a SPARQL endpoint in Virtuoso so that I can query it?

推荐答案

无需创建sparql端点,因为它已经存在. 检查Virtuoso实例sparql端点 http://cname:port/sparql 上插入的RDF数据(通常: http://localhost:8890/sparql ).要进行一些测试查询,请使用Virtuoso(指挥)的Web界面 http://localhost:8890/conductor 并转到链接的数据"标签. 输入查询,例如:

No need to create a sparql endpoint, since it's already there. Check the inserted RDF data on your Virtuoso instance sparql endpoint http://cname:port/sparql (usually: http://localhost:8890/sparql). To do some test queries, use the web interface of Virtuoso (the conductor) http://localhost:8890/conductor and go to the 'Linked Data' tab. Enter a query like:

SELECT ?s ?p ?o
FROM <http://myexample.com>
WHERE {?s ?p ?o}
LIMIT 1000

开始.

您还可以通过在sparql查询前面添加'SPARQL',直接从vsql命令行进行查询. 要直接通过html获取请求以特定格式获取结果,请执行以下操作:

You can also query directly from the vsql command line by adding 'SPARQL ' in front of your sparql query. To get results in a specific format directly via html get request:

http://localhost:8890/sparql?query=(YourQueryUriEncodedWithout())&format=json

有关更详细的答案,请参阅此处的文档: http://docs.openlinksw.com/virtuoso/rdfsparql.html

For a more detailed answer, consult the documentation here: http://docs.openlinksw.com/virtuoso/rdfsparql.html

景点:

16.2.3.15. SPARQL Endpoint with JSON/P Output Option: Curl Example
16.2.5. SPARQL Inline in SQL

如果您仍然想要自己的端点:

If you still want your own endpoint:

16.2.3.4.6. Creating and Using a SPARQL-WebID based Endpoint

最诚挚的问候...

这篇关于如何使用Virtuoso创建SPARQL端点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆