On Sun, Feb 1, 2015 at 1:35 PM, Rupert Westenthaler < rupert.westentha...@gmail.com> wrote:
> On Sat, Jan 31, 2015 at 8:23 PM, Dileepa Jayakody > <dileepajayak...@gmail.com> wrote: > > Hi Rupert, > > > > Thanks for looking into this.. > > > > The Marmotta version I'm using is 3.3.0 and the query can be executed > from > > Marmotta ui. > > How have you got the SPARQL Query sent by the Yard without changing > the log level, or have you just tried a random SPARQL query? > Yes I used a random query (using schema:name) to check query execution from Marmotta Ui. > > > Can I please know how to set log levels for components in Stanbol? > > You have to make a configuration of the > "org.apache.sling.commons.log.LogManager.factory.config" service. > Typically you want to set the log level (DEBUG) and the package of the > components you want to log in that level > (`org.apache.stanbol.entityhub.yard.sesame` based on the error log in > your first mail). You could also set a different log file if you want > to have those logs in its own file. > > Thanks Rupert will try this. By the way, is entity linking using Sesame yard not recommended for Stanbol usecases? > > best > Rupert > > > > > Thanks, > > Dileepa > > > > > > > > > > On Tue, Jan 27, 2015 at 5:50 PM, Rupert Westenthaler < > > rupert.westentha...@gmail.com> wrote: > > > >> Hi Dileepa, > >> > >> While I used such a setup for dereferencing Entity Information I never > >> use Sesame Yard with Marmotta KiWi for Entity Linking. > >> > >> Based on the exception the error is happening within KiWi. For > >> investigating this one needs more information. > >> > >> (1) set the Logging for the SesameYard to DEBUG. This will log the > >> actual SPARQL query > >> (2) check the exact version of Marmotta > >> (3) you should also try to execute the query directly on Marmotta (via > >> the marmotta UI) > >> > >> best > >> Rupert > >> > >> > >> On Tue, Jan 27, 2015 at 12:55 PM, Dileepa Jayakody > >> <dileepajayak...@gmail.com> wrote: > >> > Hi All, > >> > > >> > I'm working in integrating a Marmotta kiwi instance as the entityhub > in > >> > Stanbol and using it for entity linking. I have registered a kiwi > >> > repository as per [1] and configured a Sesame Yard (id : > >> > marmotta-sesame-yard) as per [2] and the corresponding Managed Site > using > >> > the yard id : marmotta-sesame-yard. > >> > > >> > Then to use this managed site to link entities with the entity > mentions > >> in > >> > the content I configured a Entityhub linking engine (id: > >> > marmotta-kiwi-linking) and added it in my enhancement chain after > >> > language-detect and stanfordnlp-engine. > >> > > >> > I get below error at entity linking [3] in my enhancement chain. > >> > > >> > Can someone please guide me on how to properly configure a Sesame Yard > >> Site > >> > with Marmotta kiwi instance and use it for entity linking? > >> > I'm using the 1.0.0-SNAPSHOT version of the trunk for my usecase > >> > > >> > Thanks, > >> > Dileepa > >> > > >> > [1] > >> > > >> > https://stanbol.apache.org/docs/trunk/utils/marmotta-kiwi-repository-service > >> > [2] > >> > > >> > https://stanbol.apache.org/docs/trunk/components/entityhub/managedsite.html > >> > > >> > [3] error : > >> > > >> > org.apache.stanbol.enhancer.servicesapi.ChainException: Enhancement > >> > Chain failed because of required Engine 'marmotta-kiwi-linking' failed > >> > with Message: Unable to process ContentItem > >> > '<urn:content-item-sha1-b0e0272b7288a89ca6fe1a8f4312eee566f45a71>' > >> > with Enhancement Engine 'marmotta-kiwi-linking' because the engine was > >> > unable to process the content (Engine class: > >> > > >> > org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine)(Reason: > >> > Exception while searchign for [test, linking]@[null, en]in the > >> > ReferencedSite marmottasesamesite)! > >> > at > >> > org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl.enhanceContent(EventJobManagerImpl.java:204) > >> > at > >> > org.apache.stanbol.enhancer.jersey.resource.AbstractEnhancerResource.enhance(AbstractEnhancerResource.java:231) > >> > at > >> > org.apache.stanbol.enhancer.jersey.resource.GenericEnhancerUiResource.enhanceFromForm(GenericEnhancerUiResource.java:151) > >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > at > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> > at > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> > at java.lang.reflect.Method.invoke(Method.java:606) > >> > at > >> > org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) > >> > at > >> > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151) > >> > at > >> > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171) > >> > at > >> > org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152) > >> > at > >> > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104) > >> > at > >> > org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:406) > >> > at > >> > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:350) > >> > at > >> > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106) > >> > at > >> org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259) > >> > at > org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) > >> > at > org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) > >> > at > org.glassfish.jersey.internal.Errors.process(Errors.java:315) > >> > at > org.glassfish.jersey.internal.Errors.process(Errors.java:297) > >> > at > org.glassfish.jersey.internal.Errors.process(Errors.java:267) > >> > at > >> > org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:320) > >> > at > >> > org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236) > >> > at > >> > org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028) > >> > at > >> org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373) > >> > at > >> > org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381) > >> > at > >> > org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344) > >> > at > >> > org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219) > >> > at > >> > org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:339) > >> > at > >> > org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:300) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > >> > at > >> com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:208) > >> > at > >> com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:271) > >> > at > >> > org.apache.stanbol.commons.cors.StanbolCorsFilter.doFilter(StanbolCorsFilter.java:68) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > >> > at > >> > org.apache.stanbol.commons.httpqueryheaders.impl.QueryHeadersFilter.doFilter(QueryHeadersFilter.java:84) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > >> > at > >> > org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilterHttp(ResourceServingFilter.java:148) > >> > at > >> > org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilter(ResourceServingFilter.java:91) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > >> > at > >> > org.apache.stanbol.commons.security.auth.AuthenticatingFilter$1.run(AuthenticatingFilter.java:208) > >> > at java.security.AccessController.doPrivileged(Native Method) > >> > at > javax.security.auth.Subject.doAsPrivileged(Subject.java:536) > >> > at > >> > org.apache.stanbol.commons.security.auth.AuthenticatingFilter.doFilter(AuthenticatingFilter.java:177) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > >> > at > >> > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:76) > >> > at > >> > org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:49) > >> > at > >> > org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67) > >> > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > >> > at > >> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) > >> > at > >> > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) > >> > at > >> > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) > >> > at > >> > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) > >> > at > >> > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) > >> > at > >> > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) > >> > at > >> > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) > >> > at > >> > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) > >> > at > >> > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) > >> > at > >> > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) > >> > at org.eclipse.jetty.server.Server.handle(Server.java:370) > >> > at > >> > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) > >> > at > >> > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) > >> > at > >> > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) > >> > at > >> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) > >> > at > >> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) > >> > at > >> > org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) > >> > at > >> > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667) > >> > at > >> > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) > >> > at > >> > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) > >> > at > >> > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) > >> > at java.lang.Thread.run(Thread.java:745) > >> > Caused by: java.lang.IllegalStateException: Exception while searchign > >> > for [test, linking]@[null, en]in the ReferencedSite marmottasesamesite > >> > at > >> > org.apache.stanbol.enhancer.engines.entityhublinking.ReferencedSiteSearcher.lookup(ReferencedSiteSearcher.java:127) > >> > at > >> > org.apache.stanbol.enhancer.engines.entitylinking.impl.EntityLinker.performLookup(EntityLinker.java:686) > >> > at > >> > org.apache.stanbol.enhancer.engines.entitylinking.impl.EntityLinker.lookupEntities(EntityLinker.java:614) > >> > at > >> > org.apache.stanbol.enhancer.engines.entitylinking.impl.EntityLinker.process(EntityLinker.java:271) > >> > at > >> > org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine.computeEnhancements(EntityLinkingEngine.java:265) > >> > at > >> > org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.processEvent(EnhancementJobHandler.java:279) > >> > at > >> > org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.handleEvent(EnhancementJobHandler.java:197) > >> > at > >> > org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:412) > >> > at > >> > org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:118) > >> > at > >> > org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:132) > >> > at > >> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown > Source) > >> > ... 1 more > >> > Caused by: > >> org.apache.stanbol.entityhub.servicesapi.site.ManagedSiteException: > >> > Unable to execute findReferences query > >> > at > >> > org.apache.stanbol.entityhub.site.managed.impl.YardSite.find(YardSite.java:115) > >> > at > >> > org.apache.stanbol.enhancer.engines.entityhublinking.ReferencedSiteSearcher.lookup(ReferencedSiteSearcher.java:125) > >> > ... 11 more > >> > Caused by: > org.apache.stanbol.entityhub.servicesapi.yard.YardException: > >> > Unable to execute findReferences query > >> > at > >> > org.apache.stanbol.entityhub.yard.sesame.SesameYard.find(SesameYard.java:755) > >> > at > >> > org.apache.stanbol.entityhub.site.managed.impl.YardSite.find(YardSite.java:113) > >> > ... 12 more > >> > Caused by: org.openrdf.query.QueryEvaluationException: > >> > java.lang.IllegalArgumentException: the values in this query have not > >> > been created by the KiWi value factory > >> > at > >> > org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:67) > >> > at > >> > org.apache.stanbol.entityhub.yard.sesame.SesameYard.executeSparqlFieldQuery(SesameYard.java:652) > >> > at > >> > org.apache.stanbol.entityhub.yard.sesame.SesameYard.find(SesameYard.java:720) > >> > ... 13 more > >> > Caused by: org.openrdf.sail.SailException: > >> > java.lang.IllegalArgumentException: the values in this query have not > >> > been created by the KiWi value factory > >> > at > >> > org.apache.marmotta.kiwi.sparql.sail.KiWiSparqlSailConnection.evaluate(KiWiSparqlSailConnection.java:92) > >> > at > >> > org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:60) > >> > ... 15 more > >> > Caused by: org.openrdf.query.QueryEvaluationException: > >> > java.lang.IllegalArgumentException: the values in this query have not > >> > been created by the KiWi value factory > >> > at > >> > org.apache.marmotta.kiwi.sparql.evaluation.KiWiEvaluationStrategyImpl.evaluate(KiWiEvaluationStrategyImpl.java:113) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:583) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:197) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:662) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:577) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:197) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:689) > >> > at > >> > org.apache.marmotta.kiwi.sparql.evaluation.KiWiEvaluationStrategyImpl.evaluate(KiWiEvaluationStrategyImpl.java:142) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:589) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:197) > >> > at > >> > org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.<init>(LeftJoinIterator.java:65) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:815) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:759) > >> > at > >> > org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:200) > >> > at > >> > org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.<init>(LeftJoinIterator.java:65) > >> > >> > >> > >> -- > >> | Rupert Westenthaler rupert.westentha...@gmail.com > >> | Bodenlehenstraße 11 ++43-699-11108907 > >> | A-5500 Bischofshofen > >> | REDLINK.CO > >> > .......................................................................... > >> | http://redlink.co/ > >> > > > > -- > | Rupert Westenthaler rupert.westentha...@gmail.com > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen > | REDLINK.CO > .......................................................................... > | http://redlink.co/ >