简体   繁体   English

将SPARQL查询发送到Fuseki

[英]Sending SPARQL queries to Fuseki

I have queries like this. 我有这样的疑问。

SELECT * WHERE{
  SERVICE <endpoint 1>{
    SELECT ?country ?port
    WHERE {?port <country> ?country}
  }
  SERVICE <endpoint 2>{
    SELECT ?ship ?name ?country
    WHERE {?ship <flagoftheship> ?country.
      ?ship <vesselname> ?name
    }
  }
}

and i'm developing a frontend to send queries like that (can have several endpoints, the user may even provide it's own endpoint URL) to a Fuseki Server, i've been using the Fuseki frontend that hosts over port 3030 when you run the Server but i want to know how can i actually send those queries from my own app, do i need to execute a cmd command? 并且我正在开发一个前端,以向Fuseki服务器发送这样的查询(可以有多个终结点,用户甚至可以提供其自己的终结点URL),我一直在使用运行在端口3030上的Fuseki前端服务器,但是我想知道如何从我自己的应用程序实际发送那些查询,我是否需要执行cmd命令? (using a server that receives the query from the javascript app and then runs the command) (使用从javascript应用程序接收查询然后运行命令的服务器)

EDIT: pretty much i need to know what does the Fuseki frontend when you click the "play" button so that the server gets the query that you put in the textbox 编辑:几乎我需要知道当您单击“播放”按钮时Fuseki前端做什么,以便服务器获取您放入文本框中的查询

Fuseki implements the SPARQL 1.1 Protocol which gives several ways of submitting a query to a SPARQL endpoint. Fuseki实现了SPARQL 1.1协议 ,该协议提供了几种向SPARQL端点提交查询的方式。 The simplest is probably the HTTP GET with the query url-encoded as a parameter named query . 最简单的方法可能是HTTP GET其中将查询进行url编码为名为query的参数。

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

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