在Virtuoso中定义端点 [英] Defining endpoints in Virtuoso

查看:164
本文介绍了在Virtuoso中定义端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Virtuoso中为本体定义新的端点?我能够通过RDF商店上载选项卡中的Virtuoso Conductor上载我的本体.现在,我需要定义一组端点,以便能够通过HTTP在我的应用程序中使用它们. Virtuoso Conductor中是否有任何选项卡可实现用于创建终点的用户友好界面,我该怎么做?我需要使用一些外部工具吗?

How can I define a new endpoints for my ontology in Virtuoso? I was able to upload my ontology via Virtuoso Conductor in the RDF Store Upload tab. Now I need to define a set of endpoints to be able to use them in my application via HTTP. Is there any tab in Virtuoso Conductor that implements a user friendly interface for creating an end point, and how can I do it? Do I need to use some external tool?

推荐答案

Virtuoso的Web服务器可以创建额外的侦听器 使用此处记录的导体接口:

Virtuoso's web server has the capability to create extra listeners using the conductor interface which is documented here:

http://docs.openlinksw.com/virtuoso/htmlconductorbar.html# admui.internetdomains

在安装时,您的virtuoso.ini中具有HTTP Server端口 设置为8890,您希望将其保留在本地网络中 包含您在Virtuoso中注册的所有端点.这样 只要您没有在防火墙中打开此端口,您就只能 在本地计算机上进行操作.

At install time you have your HTTP Server port in your virtuoso.ini set to 8890, which you want to keep in your local network as this contains ALL the endpoints that you have registered in Virtuoso. So as long as you do not open this port in your firewall, you can only get at it from the local machine.

接下来,您将使用您的EXTERNAL名称创建一个新的虚拟主机条目. 机器并使用端口80(如果您不想以更高的速度运行,则使用更高的端口 根),例如:

Next you create a new vhost entry using the EXTERNAL name of your machine and use port 80 (or a higher port if you do not want to run as root) e.g:

接口:0.0.0.0 端口:8080 Http主机:my.example.com

Interface: 0.0.0.0 Port: 8080 Http Host: my.example.com

接下来,您添加此目录的新目录",单击类型"单选 按钮,然后从下拉列表中选择"Sparql访问点",然后 按下一步按钮.将路径"设置为/sparql,然后按保存更改" 按钮进行存储.

Next you add a "New directory to this line", click on "Type" radio button and choose "Sparql access point" from the dropdown list and press Next button. Set "Path" to /sparql and press the "Save Changes" button to store.

至此,您已经创建:

http://my.example.com:8080/sparql

其功能与内部 http://localhost:8890/sparql 完全相同.现在,您可以打开防火墙并允许外部计算机连接 到端口8080,以便人们可以使用您的sparql端点而无需访问 您的virtuoso安装上的任何其他端点.

which functions exactly the same as your internal http://localhost:8890/sparql . You can now open your firewall and allow outside machines to connect to port 8080 so people can use your sparql endpoint without access to any other endpoint on your virtuoso installation.

您可能还应该更改virtuoso.ini,以便:

You should probably also change your virtuoso.ini so:

[URIQA] DefaultHost = my.example.com:8080

[URIQA] DefaultHost = my.example.com:8080

如果使用端口80,则不必在此末尾添加:80 设置,尽管应该没有任何区别.

If you use port 80, you do not have to add :80 at the end of this setting, although it should not make any difference.

您现在可以将其他目录/端点添加到新目录中 您刚刚创建的my.example.com界面,例​​如一个不错的/目录 指向描述您的网站等的index.html.

You can now add other directories / endpoints to the new my.example.com interface you just created e.g. a nice / directory that points to a index.html which describes your site etc.

这篇关于在Virtuoso中定义端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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