On 19/11/12 14:12, David Perez-Lopez wrote:
Hello,
I've set-up a SPARQL endpoint with fuseki with the following options:
$ java -Xmx1200M -jar fuseki-server.jar --update --mem /ds
14:02:23 INFO Server :: Dataset: in-memory
14:02:23 INFO Server :: Dataset path = /ds
14:02:23 INFO Server :: Fuseki 0.2.5
2012-10-20T17:03:29+0100
14:02:23 INFO Server :: Started 2012/11/19 14:02:23 CET
on port 3030
then I've added some data to it `/s-put http://localhost:3030/ds/datadefault
/Users/david/desarrollo/proyectos/trunk-pom/pom-sparql/src/test/resources/ontologies/democomiccon2011.owl`
after that I could query easily the dataset through the web interface, and
get some results for example:
http://localhost:3030/ds/query?query=select+*+where+{%3Fx+%3Fd+%3Fx}&output=xml&stylesheet=%2Fxml-to-html.xsl<http://localhost:3030/ds/query?query=select+*+where+%7B%3Fx+%3Fd+%3Fx%7D&output=xml&stylesheet=%2Fxml-to-html.xsl>
My next step was to try to connect with the endpoint through a Sesame
connector (2.6.0) using the URL
`http://localhost:3030/ds/sparql`<http://localhost:3030/ds/sparql>but
I got a 404 error.
And the log shows something like:
15:41:22 INFO [1] 404 Service Description: /ds/sparql
?
If a request is sent without a query, it's a service description request
(which you can't set yet).
Try in a browser you get:
[[
Error 404: Service Description: /ds/sparql
]]
You need a query.
In a browser try:
http://localhost:3030/ds/sparql?query=ASK{}&output=text
(a simple query - force output to text)
This is the SPARQL protocol which sesame supports (it's not chnaged for
SPARQL 1.1). There needs to be ?query or the POSTed form equivalent.
Previously, I had been able to connect successfully to a Virtuoso server
through the same connector, namely to
`http://aemet.linkeddata.es/sparql`<http://aemet.linkeddata.es/sparql>
I debugged both connections the one with virtuoso [virtuoso connection
debug][1] and the one with fuseki [fuseki connection debug][2] trying to
find differences, but without success. Feel free to check both text files
attached
I also tried to simulate the call with Poster extension for firefox and as
you can see in the image the GET request works but the POST doesn't
![Poster extension get/post requests to fuseki server][3]
Any clues of how could I connect to fuseki through a sesame connector? Does
it only supports GET requests? Thanks in advance
GET and POST
Andy
----------
[1]:
https://dl.dropbox.com/u/9437566/fuseki_bug/virtuoso_sesame_connector_aemet.txt
[2]:
https://dl.dropbox.com/u/9437566/fuseki_bug/fuseki_sesame_connector_localhost.txt
[3]:
https://dl.dropbox.com/u/9437566/fuseki_bug/fuseki_poster_get_post_firefox.PNG