简体   繁体   English

SPARQL联合查询不起作用

[英]SPARQL federated query not working

My basic issue is: I have two computers A and B with Virtuoso installed and I am trying to query from one computer to the next. 我的基本问题是:我有两台安装了Virtuoso的计算机A和B,并且我正在尝试从一台计算机查询到另一台计算机。 I created an RDF graph on machine A and executed a query on A to see the locally stored data. 我在机器A上创建了RDF图,并在A上执行了查询以查看本地存储的数据。

sparql SELECT ?a ?b ?c
FROM <http://localhost:8890/test>
OPTION (get:soft "soft", get:method "GET")
WHERE {?a ?b ?c};

It returned the data correctly. 它正确返回了数据。 I run the following query on machine B 我在机器B上运行以下查询

sparql SELECT ?a ?b ?c
FROM <http://ipAddressOfA:8890/test>
OPTION (get:soft "soft", get:method "GET")
WHERE {?a ?b ?c};

I get a long pause and eventually get the following error 我停顿了很长时间,最终出现以下错误
"Error HTCLI: [OpenLink][Virtuoso ODBC Driver][Virtuoso Server]HC001: Connection Error in HTTP Client" “错误HTCLI:[OpenLink] [Virtuoso ODBC驱动程序] [Virtuoso服务器] HC001:HTTP客户端中的连接错误”
Do I have to set up permissions for the other computer or something? 我是否必须设置另一台计算机的权限? Excuse me I am new to this. 不好意思,我是新手。

There might be a problem in your choice of the graph-name http://localhost:8890/test on your machine B. 您在计算机B上选择的图形名称http:// localhost:8890 / test可能存在问题。

Since the graph is not necessarily a valid Internet-resource you can not just exchange localhost with your ip-address. 由于该图不一定是有效的Internet资源,因此您不能仅将localhost与您的IP地址交换。

Example: you could also choose a graph-name like <htw.my.own.graph> -> your graph-name is not relative to your ip-address. 例如:您还可以选择一个图形名称,例如<htw.my.own.graph> ->您的图形名称与您的IP地址无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM