Hi Rupert, I updated, built and launched. First try failed with the following error in the logs: 20.07.2011 21:36:00.749 *WARN* [1162212835@qtp-733491272-0] org.apache.stanbol.entityhub.core.impl.ReferenceManagerImpl Unable to access Site dbpedia (id = dbpedia) org.apache.stanbol.entityhub.servicesapi.site.ReferencedSiteException: Unable to load Representation for entity http://dbpedia.org/resource/BBC_Radio_2 form remote site http://dbpedia.org/sparql/ with dereferencer org.apache.stanbol.entityhub.dereferencer.SparqlDereferencer at org.apache.stanbol.entityhub.core.impl.ReferencedSiteImpl.getEntity(ReferencedSiteImpl.java:494) at org.apache.stanbol.entityhub.core.impl.ReferenceManagerImpl.getEntity(ReferenceManagerImpl.java:368) at org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.getEntityOntology(RefactorEnhancementEngine.java:696) at org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.computeEnhancements(RefactorEnhancementEngine.java:200) at org.apache.stanbol.enhancer.jobmanager.impl.InMemoryJobManager.enhanceContent(InMemoryJobManager.java:62) at org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceAndBuildResponse(EnginesRootResource.java:163) at org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceFromForm(EnginesRootResource.java:127) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) (...) Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://dbpedia.org/sparql/?query=CONSTRUCT+%7B+%3Chttp://dbpedia.org/resource/BBC_Radio_2%3E+?p+?o+%7D+WHERE+%7B+%3Chttp://dbpedia.org/resource/BBC_Radio_2%3E+?p+?o+%7D&format=application/rdf%2Bxml
Second time worked! (see attached screenshot) :-) Thanks, David On Wed, Jul 20, 2011 at 8:05 PM, Rupert Westenthaler < [email protected]> wrote: > Hi David > > Revision 1148852 [1] adds support for improved Error handling SPARQL > EntityDereferencer and EntitySearcher. > > Now the content typically shown in the browser in case of errors > should be included as message of the thrown IOException. > > best > Rupert > > > [1] http://svn.apache.org/viewvc?view=revision&revision=1148852 > > On Wed, Jul 20, 2011 at 3:27 PM, David Riccitelli > <[email protected]> wrote: > > Thanks Rupert, > > > > I experienced similar problems from time to time and concluded that it > >> will most likely related to dbpedia denying additional requests an IP > >> already sent a lot of them in a short period of time. > > > > > > I had a similar guess, but the tests I conduct with curl are from the > same > > machine hosting Stanbol. > > > > However it is just an assumption so I am working currently to > >> improvements to the loggings so that the content sent by the Server in > >> case of 4** and 5** responses is printed to the log. > > > > > > Perfect, I'll test it as soon as it is avail. > > > > Thanks, > > David > > > > On Wed, Jul 20, 2011 at 4:24 PM, Rupert Westenthaler < > > [email protected]> wrote: > > > >> Hi David > >> > >> On Wed, Jul 20, 2011 at 1:07 PM, David Riccitelli > >> <[email protected]> wrote: > >> > I'm running a query using the engines end-point. Eventually I get a > >> failure > >> > with an exception [1] in the logs, whose underlying cause seems to be: > >> > *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/Organisation%3E+.+%0A++++?id+%3Chttp://www.w3.org/2000/01/rdf-schema%23label%3E+?tmp1+.+%0A++++++?tmp1+bif:contains+'%22News%22+AND+%22of%22+AND+%22the%22+AND+%22World%22'+.+%0A%7D+%0A%7D+%0AORDER+BY+DESC+(+%3CLONG::IRI_RANK%3E+(?id)+)+%0ALIMIT+20+%0A&format=application/sparql-results%2Bjson > >> > > >> > But if I copy and paste the URL and run it with curl, I don't get 500. > >> How > >> > is that possible? > >> > >> I experienced similar problems from time to time and concluded that it > >> will most likely related to dbpedia denying additional requests an IP > >> already sent a lot of them in a short period of time. > >> However it is just an assumption so I am working currently to > >> improvements to the loggings so that the content sent by the Server in > >> case of 4** and 5** responses is printed to the log. > >> > >> This should help to see what is really happening. > >> > >> best > >> Rupert > >> > >> -- > >> | Rupert Westenthaler [email protected] > >> | Bodenlehenstraße 11 ++43-699-11108907 > >> | A-5500 Bischofshofen > >> > > > > > > > > -- > > David Riccitelli > > > > Interact SpA > > Via A. Bargoni 78 (scala F) > > 00153 Roma > > > > T +39 06 58318 301 > > F +39 06 58318 303 > > > > > > -- > | Rupert Westenthaler [email protected] > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen > -- David Riccitelli Interact SpA Via A. Bargoni 78 (scala F) 00153 Roma T +39 06 58318 301 F +39 06 58318 303
