You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by judy <jh...@gmail.com> on 2011/03/07 22:05:30 UTC

endpoint URL question

Sorry for the basic question, I'm new to SPARQL servers.

I'm having trouble connecting to my fuseki server as a public endpoint 
-- I'm sure I'm not using the correct endpoint/default graph URLs.

My tdb2.ttl:
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .

[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
[] ja:loadClass "org.openjena.fuseki.BackwardForwardDescribeFactory" .

tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
tdb:GraphTDB    rdfs:subClassOf  ja:Model .

<#dataset> rdf:type      tdb:DatasetTDB ;
      tdb:location "DB" ;
       tdb:unionDefaultGraph true ;
      .

Fuseki starts: ./fuseki-server --desc tdb2.ttl /dataset

Get gets: ./s-get --verbose http://mydomain.com:3030/dataset/data default

Given these defaults, how can I use a query to connect to my fuseki 
server as a (remote) public endpoint?

TIA -judy




Re: endpoint URL question

Posted by Andy Seaborne <an...@epimorphics.com>.
Yes - Fuseki checks parameters.  One reason is because there are all 
sorts of extensions and presumably the additional parameters are 
supposed to affect the query execution in some so seeing a parameter 
from another system (which is does not understand) looks like a 
potential area for problems.

Fuseki could issue a warning ... done (in SVN).

What's "endpoint" supposed to do?

default-graph-uri=default
is illegal by the way.

The value of default-graph-uri should be a URI.

Can we get the page fixed?

	Andy

On 08/03/11 00:51, judy wrote:
> On 3/7/11 7:14 PM, Damian Steer wrote:
>> Sounds like Fuseki is being picky -- most services will ignore
>> unrecognised parameters -- however I've never heard of 'endpoint'.
>> It sounds a odd (why send that to an endpoint?), do you know what
>> its value is?
>>
>> Damian
>
> From the page source, form action is:
> /drupal/sparql?endpoint=http%3A%2F%2Fmydomain.com%3A3030%2Fdataset%2Fquery&amp;default-graph-uri=default&amp;query=SELECT+%2A+WHERE+%7B%3Fs+%3Fp+%3Fo+.%7D"
>
>
>
> ...hence the 'endpoint' error, huh? This particular SPARQL UI doesn't
> do anything but effect a query; I just tested the Fuseki endpoint URL
> with the SPARQL query tool that imports query results into Drupal as
> content and that worked successfully.
>
> thanks again for taking time to help --judy
>
>

Re: endpoint URL question

Posted by judy <jh...@gmail.com>.
On 3/7/11 7:14 PM, Damian Steer wrote:
> Sounds like Fuseki is being picky -- most services will ignore unrecognised parameters -- however I've never heard of 'endpoint'. It sounds a odd (why send that to an endpoint?), do you know what its value is?
>
> Damian

 From the page source, form action is:
/drupal/sparql?endpoint=http%3A%2F%2Fmydomain.com%3A3030%2Fdataset%2Fquery&amp;default-graph-uri=default&amp;query=SELECT+%2A+WHERE+%7B%3Fs+%3Fp+%3Fo+.%7D"

...hence the 'endpoint' error, huh? This particular SPARQL UI doesn't do 
anything but effect a query; I just tested the Fuseki endpoint URL with 
the SPARQL query tool that imports query results into Drupal as content 
and that worked successfully.

thanks again for taking time to help --judy



Re: endpoint URL question

Posted by Damian Steer <d....@bristol.ac.uk>.
On 7 Mar 2011, at 23:58, judy wrote:

> Thanks Damian. This works as expected at the command line:
> ./s-query --service http://mydomain.com:3030/dataset/query 'SELECT * WHERE {?s ?p ?o .}'
> 
> but when I try it in a web UI SPARQL query:
> SELECT * WHERE {?s ?p ?o .}
> 
> and Endpoint URL:
> http://mydomain.com:3030/dataset/query
> 
> I get an error from the interface: "Remote SPARQL endpoint returned error: /Error 400: SPARQL Query: Unrecognize request parameter: endpoint Fuseki - version 0.2.0-SNAPSHOT (Date: 2011-03-06T12:24:37-0500)"
> 
> and from the Fuseki server: "18:57:31 INFO  Fuseki   :: [8] 400 SPARQL Query: Unrecognize request parameter: endpoint"

Sounds like Fuseki is being picky -- most services will ignore unrecognised parameters -- however I've never heard of 'endpoint'. It sounds a odd (why send that to an endpoint?), do you know what its value is?

Damian

Re: endpoint URL question

Posted by judy <ju...@riotsystems.com>.
Thanks Damian. This works as expected at the command line:
./s-query --service http://mydomain.com:3030/dataset/query 'SELECT * 
WHERE {?s ?p ?o .}'

but when I try it in a web UI SPARQL query:
SELECT * WHERE {?s ?p ?o .}

and Endpoint URL:
http://mydomain.com:3030/dataset/query

I get an error from the interface: "Remote SPARQL endpoint returned 
error: /Error 400: SPARQL Query: Unrecognize request parameter: endpoint 
Fuseki - version 0.2.0-SNAPSHOT (Date: 2011-03-06T12:24:37-0500)"

and from the Fuseki server: "18:57:31 INFO  Fuseki   :: [8] 400 SPARQL 
Query: Unrecognize request parameter: endpoint"

This SPARQL query interface is in Drupal6, and I've used it successfully 
with other endpoints.

thanks for your help...
/
On 3/7/11 4:09 PM, Damian Steer wrote:
> On 7 Mar 2011, at 21:05, judy wrote:
>
>> Sorry for the basic question, I'm new to SPARQL servers.
>>
>> I'm having trouble connecting to my fuseki server as a public endpoint -- I'm sure I'm not using the correct endpoint/default graph URLs.
> ...
>
>> Fuseki starts: ./fuseki-server --desc tdb2.ttl /dataset
>>
>> Get gets: ./s-get --verbose http://mydomain.com:3030/dataset/data default
>>
>> Given these defaults, how can I use a query to connect to my fuseki server as a (remote) public endpoint?
> For query the endpoint will be:
>
> <http://mydomain.com:3030/dataset/query>
>
> (e.g. try using that at the service for ./s-query)
>
> Damian


Re: endpoint URL question

Posted by Damian Steer <d....@bristol.ac.uk>.
On 7 Mar 2011, at 21:05, judy wrote:

> Sorry for the basic question, I'm new to SPARQL servers.
> 
> I'm having trouble connecting to my fuseki server as a public endpoint -- I'm sure I'm not using the correct endpoint/default graph URLs.

...

> Fuseki starts: ./fuseki-server --desc tdb2.ttl /dataset
> 
> Get gets: ./s-get --verbose http://mydomain.com:3030/dataset/data default
> 
> Given these defaults, how can I use a query to connect to my fuseki server as a (remote) public endpoint?

For query the endpoint will be:

<http://mydomain.com:3030/dataset/query>

(e.g. try using that at the service for ./s-query)

Damian