You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Daniele Perlo <pe...@gmail.com> on 2014/07/26 19:31:56 UTC

SPARQL endpoint gives empty response

Hi all

i try to run some queries on sparql endpoint but all responses are empty.

So, i tried with the ClerezzaYard example at
https://stanbol.apache.org/docs/trunk/components/entityhub/managedsite.html

and the web interface example at /sparql

PREFIX fise: <http://fise.iks-project.eu/ontology/>
PREFIX dc:   <http://purl.org/dc/terms/>
SELECT distinct ?enhancement ?content ?engine ?extraction_time
WHERE {
  ?enhancement a fise:Enhancement .
  ?enhancement fise:extracted-from ?content .
  ?enhancement dc:creator ?engine .
  ?enhancement dc:created ?extraction_time .
}
ORDER BY DESC(?extraction_time) LIMIT 5

at
org.apache.stanbol.contenthub.enhancements

but responses are all the same

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head/>
<results/>
</sparql>


I'm doing something wrong?

Cheers,
Daniele


-- 
*****

*Perlo Daniele*

STANBOL-437 Re: SPARQL endpoint gives empty response

Posted by Andreas Kuckartz <a....@ping.de>.
Please have a look at this issue which was opened almost three years ago:

Annoying WARNING about manipulated requests by Servlet filter
https://issues.apache.org/jira/browse/STANBOL-437

Cheers,
Andreas
---

Daniele Perlo:
> When i try to send a query to sparql endpoint, (by curl or web
> interface), this warning is shown:
> 
> Warning: A servlet request to the URI http://localhost:8080/sparql
> contains form parameters
> in the request body but the request body has been consumed by the
> servlet or a servlet filter
> accessing the request parameters. Only resource methods using
> @FormParam will work as expected.
> Resource methods consuming the request body by other means will not
> work as expected.
> 
> 
> 
> 2014-07-26 19:31 GMT+02:00 Daniele Perlo <pe...@gmail.com>:
> 
>> Hi all
>>
>> i try to run some queries on sparql endpoint but all responses are empty.
>>
>> So, i tried with the ClerezzaYard example at
>> https://stanbol.apache.org/docs/trunk/components/entityhub/managedsite.html
>>
>> and the web interface example at /sparql
>>
>> PREFIX fise: <http://fise.iks-project.eu/ontology/>
>> PREFIX dc:   <http://purl.org/dc/terms/>
>> SELECT distinct ?enhancement ?content ?engine ?extraction_time
>> WHERE {
>>   ?enhancement a fise:Enhancement .
>>   ?enhancement fise:extracted-from ?content .
>>   ?enhancement dc:creator ?engine .
>>   ?enhancement dc:created ?extraction_time .
>> }
>> ORDER BY DESC(?extraction_time) LIMIT 5
>>
>> at
>> org.apache.stanbol.contenthub.enhancements
>>
>> but responses are all the same
>>
>> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>> <sparql xmlns="http://www.w3.org/2005/sparql-results#">
>> <head/>
>> <results/>
>> </sparql>
>>
>>
>> I'm doing something wrong?
>>
>> Cheers,
>> Daniele
>>
>>
>> --
>> *****
>>
>> *Perlo Daniele*
>>
> 
> 
> 

Re: SPARQL endpoint gives empty response

Posted by Daniele Perlo <pe...@gmail.com>.
When i try to send a query to sparql endpoint, (by curl or web
interface), this warning is shown:

Warning: A servlet request to the URI http://localhost:8080/sparql
contains form parameters
in the request body but the request body has been consumed by the
servlet or a servlet filter
accessing the request parameters. Only resource methods using
@FormParam will work as expected.
Resource methods consuming the request body by other means will not
work as expected.



2014-07-26 19:31 GMT+02:00 Daniele Perlo <pe...@gmail.com>:

> Hi all
>
> i try to run some queries on sparql endpoint but all responses are empty.
>
> So, i tried with the ClerezzaYard example at
> https://stanbol.apache.org/docs/trunk/components/entityhub/managedsite.html
>
> and the web interface example at /sparql
>
> PREFIX fise: <http://fise.iks-project.eu/ontology/>
> PREFIX dc:   <http://purl.org/dc/terms/>
> SELECT distinct ?enhancement ?content ?engine ?extraction_time
> WHERE {
>   ?enhancement a fise:Enhancement .
>   ?enhancement fise:extracted-from ?content .
>   ?enhancement dc:creator ?engine .
>   ?enhancement dc:created ?extraction_time .
> }
> ORDER BY DESC(?extraction_time) LIMIT 5
>
> at
> org.apache.stanbol.contenthub.enhancements
>
> but responses are all the same
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <sparql xmlns="http://www.w3.org/2005/sparql-results#">
> <head/>
> <results/>
> </sparql>
>
>
> I'm doing something wrong?
>
> Cheers,
> Daniele
>
>
> --
> *****
>
> *Perlo Daniele*
>



-- 
*****

*Perlo Daniele*