问题描述
如何在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 listenersusing 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.iniset to 8890, which you want to keep in your local network as thiscontains ALL the endpoints that you have registered in Virtuoso. So aslong as you do not open this port in your firewall, you can only getat it from the local machine.
接下来,您将使用您的EXTERNAL名称创建一个新的虚拟主机条目.机器并使用端口80(如果您不想以更高的速度运行,则使用更高的端口根),例如:
Next you create a new vhost entry using the EXTERNAL name of yourmachine and use port 80 (or a higher port if you do not want to run asroot) e.g:
接口:0.0.0.0端口:8080Http主机:my.example.com
Interface: 0.0.0.0Port: 8080Http Host: my.example.com
接下来,您添加此目录的新目录",单击类型"单选按钮,然后从下拉列表中选择"Sparql访问点",然后按下一步按钮.将路径"设置为/sparql,然后按保存更改"按钮进行存储.
Next you add a "New directory to this line", click on "Type" radiobutton and choose "Sparql access point" from the dropdown list andpress 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 connectto port 8080 so people can use your sparql endpoint without access toany 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 thissetting, although it should not make any difference.
您现在可以将其他目录/端点添加到新目录中您刚刚创建的my.example.com界面,例如一个不错的/目录指向描述您的网站等的index.html.
You can now add other directories / endpoints to the newmy.example.com interface you just created e.g. a nice / directory thatpoints to a index.html which describes your site etc.
这篇关于在Virtuoso中定义端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!