SPARQL federated query not working

放肆的年华 提交于 2019-12-08 08:30:35

问题


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. I created an RDF graph on machine A and executed a query on A to see the locally stored data.

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

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"
Do I have to set up permissions for the other computer or something? Excuse me I am new to this.


回答1:


There might be a problem in your choice of the graph-name http://localhost:8890/test on your machine B.

Since the graph is not necessarily a valid Internet-resource you can not just exchange localhost with your ip-address.

Example: you could also choose a graph-name like <htw.my.own.graph> -> your graph-name is not relative to your ip-address.



来源:https://stackoverflow.com/questions/22409110/sparql-federated-query-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!