If I run, $ curl "
http://dbpedia.org/sparql?query=SELECT+DISTINCT+?id+%ntax-ns%23type%3E+%3Chttp://dbpedia.org/ontology/Person%3E+.+%0A++++?id+%3Chttp://www.w3.org/2000/01/rdf-schema%23label%3E+?tmp1+.+%0A++++++?tmp1+bif:contains+'%22Plantar%22'+.+%0A%7D+%0A%7D+%0AORDER+BY+DESC+(+%3CLONG::IRI_RANK%3E+(?id)+)+%0ALIMIT+20+%0A&format=application/sparql-results%2Bjson
"

I get a:

{ "head": { "link": [], "vars": ["id"] },
  "results": { "distinct": false, "ordered": true, "bindings": [ ] } }

David

On Mon, Aug 29, 2011 at 5:40 PM, David Riccitelli <
[email protected]> wrote:

> Hi Rupert,
>
> I think is this one:
> http://dbpedia.org/sparql?query=SELECT+DISTINCT+?id+%0AWHERE+%7B+%0A++%7B+%0A++++?id+%3Chttp://www.w3.org/1999/02/22-rdf-syntax-ns%23type%3E+%3Chttp://dbpedia.org/ontology/Person%3E+.+%0A++++?id+%3Chttp://www.w3.org/2000/01/rdf-schema%23label%3E+?tmp1+.+%0A++++++?tmp1+bif:contains+'%22Plantar%22'+.+%0A%7D+%0A%7D+%0AORDER+BY+DESC+(+%3CLONG::IRI_RANK%3E+(?id)+)+%0ALIMIT+20+%0A&format=application/sparql-results%2Bjson
>
> In fact before that exception I have this one:
>
> 29.08.2011 08:51:54.939 *WARN* [1605442425@qtp-23480987-1]
> org.apache.felix.http.jetty /engines/
> (org.apache.stanbol.enhancer.servicesapi.EngineException:
> 'NamedEntityTaggingEngine' failed to process content item
> 'urn:content-item-sha1-feef2e6a8bb37b08ff71e7b2d27582ae4c640adb' with type
> 'text/plain':
> org.apache.stanbol.entityhub.servicesapi.site.ReferencedSiteException:
> Unable to execute query on remote site http://dbpedia.org/sparql with
> entitySearcher org.apache.stanbol.entityhub.searcher.VirtuosoSearcher!)
> org.apache.stanbol.enhancer.servicesapi.EngineException:
> 'NamedEntityTaggingEngine' failed to process content item
> 'urn:content-item-sha1-feef2e6a8bb37b08ff71e7b2d27582ae4c640adb' with type
> 'text/plain':
> org.apache.stanbol.entityhub.servicesapi.site.ReferencedSiteException:
> Unable to execute query on remote site http://dbpedia.org/sparql with
> entitySearcher org.apache.stanbol.entityhub.searcher.VirtuosoSearcher!
> (...)
> Caused by: java.io.IOException: Server returned HTTP response code: 500 for
> URL:
> http://dbpedia.org/sparql?query=SELECT+DISTINCT+?id+%0AWHERE+%7B+%0A++%7B+%0A++++?id+%3Chttp://www.w3.org/1999/02/22-rdf-syntax-ns%23type%3E+%3Chttp://dbpedia.org/ontology/Person%3E+.+%0A++++?id+%3Chttp://www.w3.org/2000/01/rdf-schema%23label%3E+?tmp1+.+%0A++++++?tmp1+bif:contains+'%22Plantar%22'+.+%0A%7D+%0A%7D+%0AORDER+BY+DESC+(+%3CLONG::IRI_RANK%3E+(?id)+)+%0ALIMIT+20+%0A&format=application/sparql-results%2Bjson
> (...)
>
> And then I have lots of these (at least 20):
>
> 29.08.2011 08:53:35.924 *INFO* [1605442425@qtp-23480987-1]
> org.apache.stanbol.enhancer.servicesapi.helper.EnhancementEngineHelper No
> Triple found for <urn:enhancement-fa2cfb8d-5cad-5e80-ea03-b2b39be6f404> and
> property <http://purl.org/dc/terms/type>! -> return null
> 29.08.2011 08:53:35.924 *WARN* [1605442425@qtp-23480987-1]
> org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine
> Unable to process TextAnnotation
> <urn:enhancement-fa2cfb8d-5cad-5e80-ea03-b2b39be6f404> because property<
> http://purl.org/dc/terms/type> is not present
>
> Thanks!
>
> David
>
> On Mon, Aug 29, 2011 at 4:44 PM, Rupert Westenthaler <
> [email protected]> wrote:
>
>> Hi David
>>
>> To me it looks like that the SPARQL endpoint of dbpedia does not
>> return valid JSON as results of a SPARQL CONSTRUCT query.
>>
>> I think in the error.log file (/sling/logs/error.log) should provide
>> some additional information (such as the query sent to
>> "http://dbpedia.org/sparql";.
>> You could e.g. use your browser to see the returned results yourself.
>> If you provide such information I could also make some tests and help.
>>
>> best
>> Rupert
>>
>> On Mon, Aug 29, 2011 at 11:20 AM, Bertrand Delacretaz
>> <[email protected]> wrote:
>> > Hi David,
>> >
>> > On Mon, Aug 29, 2011 at 10:58 AM, David Riccitelli
>> > <[email protected]> wrote:
>> >> ...I'm having an issue with Stanbol (r1153390), the analysis of a text
>> fails
>> >> 100% of the times with an exception. The root cause seems to
>> >> be: org.codehaus.jettison.json.JSONException: A JSONObject text must
>> begin
>> >> with '{' at character 0 of
>> >>
>> >> but how do I track down the issue?...
>> >
>> > Seems like it's happening here:
>> >
>> > org.apache.stanbol.entityhub.servicesapi.site.ReferencedSiteException:
>> > Unable to execute query on remote site http://dbpedia.org/sparql with
>> > entitySearcher
>> org.apache.stanbol.entityhub.searcher.VirtuosoSearcher!...
>> >
>> > I'd try debugging that VirtuosoSearcher and especially have a look a
>> > that what sparql endpoint is returning.
>> >
>> > -Bertrand
>> >
>>
>>
>>
>> --
>> | Rupert Westenthaler             [email protected]
>> | Bodenlehenstraße 11                             ++43-699-11108907
>> | A-5500 Bischofshofen
>>
>
>
>
> --
> David Riccitelli
> -----
> Skype: ziodave
> Twitter: @ziodave
> LinkedIn: http://it.linkedin.com/in/riccitelli
> -----
> Interact SpA
> Via A. Bargoni 78 (scala F)
> 00153 Roma
>
> T +39 06 58318 301
> F +39 06 58318 303
>
>


-- 
David Riccitelli
-----
Skype: ziodave
Twitter: @ziodave
LinkedIn: http://it.linkedin.com/in/riccitelli
-----
Interact SpA
Via A. Bargoni 78 (scala F)
00153 Roma

T +39 06 58318 301
F +39 06 58318 303

Reply via email to