You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@marmotta.apache.org by Rob Atkinson <ro...@metalinkage.com.au> on 2016/05/17 12:49:09 UTC

SPARQL endpoint

Hi
I can run a SPARQL query from the embedded client at
http://192.168.56.151:8080/marmotta/sparql/admin/squebi.html

but I can't get a SPARQL client to access what the docs suggest is the
sparql endpoint
http://192.168.56.151:8080/marmotta/sparql/select

hitting this in a browser gives me a HTML dump of stuff.

tried Sesame Web Client and python sparql-client

What am i missing?

Rob Atkinson

Re: SPARQL endpoint

Posted by Sergio Fernández <wi...@apache.org>.
On Thu, May 19, 2016 at 9:18 AM, Rob Atkinson <ro...@metalinkage.com.au>
wrote:

>
> That curl approach worked.
>
> I'll try some other clients and see how they behave...
>

Then the issue was in the client/s... give a try to the SPARQLWrapper ;-)



-- 
Sergio Fernández
Partner Technology Manager
Redlink GmbH
m: +43 6602747925
e: sergio.fernandez@redlink.co
w: http://redlink.co

Re: SPARQL endpoint

Posted by Rob Atkinson <ro...@metalinkage.com.au>.
That curl approach worked.

I'll try some other clients and see how they behave...

Ta



On Thu, 19 May 2016 at 16:49 Sergio Fernández <wi...@apache.org> wrote:

> Hi Rob,
>
>
> On Tue, May 17, 2016 at 2:49 PM, Rob Atkinson <ro...@metalinkage.com.au>
> wrote:
>>
>> I can run a SPARQL query from the embedded client at
>> http://192.168.56.151:8080/marmotta/sparql/admin/squebi.html
>>
>> but I can't get a SPARQL client to access what the docs suggest is the
>> sparql endpoint
>> http://192.168.56.151:8080/marmotta/sparql/select
>>
>> hitting this in a browser gives me a HTML dump of stuff.
>>
>> tried Sesame Web Client and python sparql-client
>>
>> What am i missing?
>>
>
> Wrong headers?
>
> I always use Marmotta to test the SPARQLWrapper <
> https://rdflib.github.io/sparqlwrapper/>
>
> Or try manually:
>
> curl -H "Accept: application/sparql-results+json"
> http://192.168.56.151:8080/marmotta/sparql/select -H 'Content-Type:
> text/plain' --data 'SELECT * WHERE { ?s ?p ?o } limit 10'
>
>
> --
> Sergio Fernández
> Partner Technology Manager
> Redlink GmbH
> m: +43 6602747925
> e: sergio.fernandez@redlink.co
> w: http://redlink.co
>

Re: SPARQL endpoint

Posted by Sergio Fernández <wi...@apache.org>.
Hi Rob,


On Tue, May 17, 2016 at 2:49 PM, Rob Atkinson <ro...@metalinkage.com.au>
wrote:
>
> I can run a SPARQL query from the embedded client at
> http://192.168.56.151:8080/marmotta/sparql/admin/squebi.html
>
> but I can't get a SPARQL client to access what the docs suggest is the
> sparql endpoint
> http://192.168.56.151:8080/marmotta/sparql/select
>
> hitting this in a browser gives me a HTML dump of stuff.
>
> tried Sesame Web Client and python sparql-client
>
> What am i missing?
>

Wrong headers?

I always use Marmotta to test the SPARQLWrapper <
https://rdflib.github.io/sparqlwrapper/>

Or try manually:

curl -H "Accept: application/sparql-results+json"
http://192.168.56.151:8080/marmotta/sparql/select -H 'Content-Type:
text/plain' --data 'SELECT * WHERE { ?s ?p ?o } limit 10'


-- 
Sergio Fernández
Partner Technology Manager
Redlink GmbH
m: +43 6602747925
e: sergio.fernandez@redlink.co
w: http://redlink.co