You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Rupert Westenthaler <ru...@gmail.com> on 2015/02/01 09:05:50 UTC

Re: Error in entity linking with Sesame Yard Site and Marmotta kiwi instance

On Sat, Jan 31, 2015 at 8:23 PM, Dileepa Jayakody
<di...@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?

> 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.


best
Rupert

>
> Thanks,
> Dileepa
>
>
>
>
> On Tue, Jan 27, 2015 at 5:50 PM, Rupert Westenthaler <
> rupert.westenthaler@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
>> <di...@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.westenthaler@gmail.com
>> | Bodenlehenstraße 11                              ++43-699-11108907
>> | A-5500 Bischofshofen
>> | REDLINK.CO
>> ..........................................................................
>> | http://redlink.co/
>>



-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                              ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/

Re: Error in entity linking with Sesame Yard Site and Marmotta kiwi instance

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi Dileepa

On Sun, Feb 1, 2015 at 11:43 AM, Dileepa Jayakody
<di...@gmail.com> wrote:
>>
>> > 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?
>

Entity Linking works best with a Solr backend. as is can make use of
Solr specific features like the follows

1. Query Ranking: Entity linking works by OR queries over multiple
tokens in the Text. Solr will rank results that match multiple tokens
first. SPAQL will not do so. As EnttiyLinking only receives ~10
results you might miss interesting results for bigger vocabularies.
2. Solr Analyzers use language specific configurations. Esp.  stemming
can be very useful for linking. As SPARQL is a query language and not
a search engine SPARQL engines do typically not support such features.
However if I remember correctly Marmotta has some full text
capabilities (as does virtuoso)

To summarize: Using Solr as backend for EntityLinking is preferable.

best
Rupert


-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                              ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/

Re: Error in entity linking with Sesame Yard Site and Marmotta kiwi instance

Posted by Dileepa Jayakody <di...@gmail.com>.
Hi Rupert and all,

Thank you for very much clearing my doubts.

It seems using Sesame Yard + Marmotta for entity-linking is quite
troublesome.

Therefore I think I should check out options of using a shared Solr backend
for entity-linking with multiple Stanbol instances.

Another possible approach I think is to have central mechanism to manage
entities of the ManagedSites in the cluster's Stanbol nodes.

Any suggestions?

Thanks,
Dileepa

On Mon, Feb 2, 2015 at 4:21 PM, Rupert Westenthaler <
rupert.westenthaler@gmail.com> wrote:

> On Sun, Feb 1, 2015 at 8:26 PM, Dileepa Jayakody
> <di...@gmail.com> wrote:
> > Hi Rupert and all,
> >
> > With logging I managed to get the SPARQL query which resulted in error.
> > On the Marmotta ui this specific query gives an unknown exception while
> > evaluating SPARQL query
> >
> > The SPARQL generated from Stanbol Sesame yard is as below;
> >
> > SELECT DISTINCT ?id ?v_4 ?v_2 ?v_3
> > WHERE {
> >   {
> >     SELECT ?id
> >     WHERE {
> >       ?id <http://www.w3.org/2000/01/rdf-schema#label> ?v_3
> >         FILTER((regex(str(?v_3),"\\bCMP\\b","i") ||
> > regex(str(?v_3),"\\bProducts\\b","i")) && ((lang(?v_3) = "") ||
> (lang(?v_3)
> > = "en"))) .
> >     }
> >     LIMIT 12
> >           }
> >   OPTIONAL { ?id <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?v_2
> . }
> >   OPTIONAL { ?id <
> > http://stanbol.apache.org/ontology/entityhub/entityhub#entityRank> ?v_4
> . }
> >   OPTIONAL { ?id <http://www.w3.org/2000/01/rdf-schema#label> ?v_3 . }
> > }
> >
>
> Based on the SPARQL query validator [1] this query is valid. And
> queries like that where working with Marmotta. Could be that this a
> Bug in the SPARQL implementation of Marmotta. They recently changed a
> lot of things to improve performance by mapping SPARQL to SQL.
>
> > I would also like to know your opinion in using Sesame Yard with Marmotta
> > kiwi for entity linking.
>
> See earlier mail.
>
> > I'm trying this to horizontally scale Stanbol instances with a single
> > entityhub(the Sesame yard + Marmotta kiwi)
> >
>
> IMO in such a scenario I would assume that the SPARQL queries would be
> the limiting factor. So having multiple Stanbol instances calling the
> same Marmotta will not give you much horizontal scaling.
>
> best
> Rupert
>
> >
> > Thanks,
> > Dileepa
> >
>
>
> [1] http://sparql.org/query-validator.html
>
> > On Sun, Feb 1, 2015 at 4:13 PM, Dileepa Jayakody <
> dileepajayakody@gmail.com>
> > wrote:
> >
> >>
> >>
> >> On Sun, Feb 1, 2015 at 1:35 PM, Rupert Westenthaler <
> >> rupert.westenthaler@gmail.com> wrote:
> >>
> >>> On Sat, Jan 31, 2015 at 8:23 PM, Dileepa Jayakody
> >>> <di...@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.westenthaler@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
> >>> >> <di...@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.westenthaler@gmail.com
> >>> >> | Bodenlehenstraße 11
> ++43-699-11108907
> >>> >> | A-5500 Bischofshofen
> >>> >> | REDLINK.CO
> >>> >>
> >>>
> ..........................................................................
> >>> >> | http://redlink.co/
> >>> >>
> >>>
> >>>
> >>>
> >>> --
> >>> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> >>> | Bodenlehenstraße 11                              ++43-699-11108907
> >>> | A-5500 Bischofshofen
> >>> | REDLINK.CO
> >>>
> ..........................................................................
> >>> | http://redlink.co/
> >>>
> >>
> >>
>
>
>
> --
> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11                              ++43-699-11108907
> | A-5500 Bischofshofen
> | REDLINK.CO
> ..........................................................................
> | http://redlink.co/
>

Re: Error in entity linking with Sesame Yard Site and Marmotta kiwi instance

Posted by Rupert Westenthaler <ru...@gmail.com>.
On Sun, Feb 1, 2015 at 8:26 PM, Dileepa Jayakody
<di...@gmail.com> wrote:
> Hi Rupert and all,
>
> With logging I managed to get the SPARQL query which resulted in error.
> On the Marmotta ui this specific query gives an unknown exception while
> evaluating SPARQL query
>
> The SPARQL generated from Stanbol Sesame yard is as below;
>
> SELECT DISTINCT ?id ?v_4 ?v_2 ?v_3
> WHERE {
>   {
>     SELECT ?id
>     WHERE {
>       ?id <http://www.w3.org/2000/01/rdf-schema#label> ?v_3
>         FILTER((regex(str(?v_3),"\\bCMP\\b","i") ||
> regex(str(?v_3),"\\bProducts\\b","i")) && ((lang(?v_3) = "") || (lang(?v_3)
> = "en"))) .
>     }
>     LIMIT 12
>           }
>   OPTIONAL { ?id <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?v_2 . }
>   OPTIONAL { ?id <
> http://stanbol.apache.org/ontology/entityhub/entityhub#entityRank> ?v_4 . }
>   OPTIONAL { ?id <http://www.w3.org/2000/01/rdf-schema#label> ?v_3 . }
> }
>

Based on the SPARQL query validator [1] this query is valid. And
queries like that where working with Marmotta. Could be that this a
Bug in the SPARQL implementation of Marmotta. They recently changed a
lot of things to improve performance by mapping SPARQL to SQL.

> I would also like to know your opinion in using Sesame Yard with Marmotta
> kiwi for entity linking.

See earlier mail.

> I'm trying this to horizontally scale Stanbol instances with a single
> entityhub(the Sesame yard + Marmotta kiwi)
>

IMO in such a scenario I would assume that the SPARQL queries would be
the limiting factor. So having multiple Stanbol instances calling the
same Marmotta will not give you much horizontal scaling.

best
Rupert

>
> Thanks,
> Dileepa
>


[1] http://sparql.org/query-validator.html

> On Sun, Feb 1, 2015 at 4:13 PM, Dileepa Jayakody <di...@gmail.com>
> wrote:
>
>>
>>
>> On Sun, Feb 1, 2015 at 1:35 PM, Rupert Westenthaler <
>> rupert.westenthaler@gmail.com> wrote:
>>
>>> On Sat, Jan 31, 2015 at 8:23 PM, Dileepa Jayakody
>>> <di...@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.westenthaler@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
>>> >> <di...@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.westenthaler@gmail.com
>>> >> | Bodenlehenstraße 11                              ++43-699-11108907
>>> >> | A-5500 Bischofshofen
>>> >> | REDLINK.CO
>>> >>
>>> ..........................................................................
>>> >> | http://redlink.co/
>>> >>
>>>
>>>
>>>
>>> --
>>> | Rupert Westenthaler             rupert.westenthaler@gmail.com
>>> | Bodenlehenstraße 11                              ++43-699-11108907
>>> | A-5500 Bischofshofen
>>> | REDLINK.CO
>>> ..........................................................................
>>> | http://redlink.co/
>>>
>>
>>



-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                              ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/

Re: Error in entity linking with Sesame Yard Site and Marmotta kiwi instance

Posted by Dileepa Jayakody <di...@gmail.com>.
Hi Rupert and all,

With logging I managed to get the SPARQL query which resulted in error.
On the Marmotta ui this specific query gives an unknown exception while
evaluating SPARQL query

The SPARQL generated from Stanbol Sesame yard is as below;

SELECT DISTINCT ?id ?v_4 ?v_2 ?v_3
WHERE {
  {
    SELECT ?id
    WHERE {
      ?id <http://www.w3.org/2000/01/rdf-schema#label> ?v_3
        FILTER((regex(str(?v_3),"\\bCMP\\b","i") ||
regex(str(?v_3),"\\bProducts\\b","i")) && ((lang(?v_3) = "") || (lang(?v_3)
= "en"))) .
    }
    LIMIT 12
          }
  OPTIONAL { ?id <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?v_2 . }
  OPTIONAL { ?id <
http://stanbol.apache.org/ontology/entityhub/entityhub#entityRank> ?v_4 . }
  OPTIONAL { ?id <http://www.w3.org/2000/01/rdf-schema#label> ?v_3 . }
}

I would also like to know your opinion in using Sesame Yard with Marmotta
kiwi for entity linking.
I'm trying this to horizontally scale Stanbol instances with a single
entityhub(the Sesame yard + Marmotta kiwi)


Thanks,
Dileepa

On Sun, Feb 1, 2015 at 4:13 PM, Dileepa Jayakody <di...@gmail.com>
wrote:

>
>
> On Sun, Feb 1, 2015 at 1:35 PM, Rupert Westenthaler <
> rupert.westenthaler@gmail.com> wrote:
>
>> On Sat, Jan 31, 2015 at 8:23 PM, Dileepa Jayakody
>> <di...@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.westenthaler@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
>> >> <di...@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.westenthaler@gmail.com
>> >> | Bodenlehenstraße 11                              ++43-699-11108907
>> >> | A-5500 Bischofshofen
>> >> | REDLINK.CO
>> >>
>> ..........................................................................
>> >> | http://redlink.co/
>> >>
>>
>>
>>
>> --
>> | Rupert Westenthaler             rupert.westenthaler@gmail.com
>> | Bodenlehenstraße 11                              ++43-699-11108907
>> | A-5500 Bischofshofen
>> | REDLINK.CO
>> ..........................................................................
>> | http://redlink.co/
>>
>
>

Re: Error in entity linking with Sesame Yard Site and Marmotta kiwi instance

Posted by Dileepa Jayakody <di...@gmail.com>.
On Sun, Feb 1, 2015 at 1:35 PM, Rupert Westenthaler <
rupert.westenthaler@gmail.com> wrote:

> On Sat, Jan 31, 2015 at 8:23 PM, Dileepa Jayakody
> <di...@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.westenthaler@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
> >> <di...@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.westenthaler@gmail.com
> >> | Bodenlehenstraße 11                              ++43-699-11108907
> >> | A-5500 Bischofshofen
> >> | REDLINK.CO
> >>
> ..........................................................................
> >> | http://redlink.co/
> >>
>
>
>
> --
> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11                              ++43-699-11108907
> | A-5500 Bischofshofen
> | REDLINK.CO
> ..........................................................................
> | http://redlink.co/
>