|
From: Sebastian K. <seb...@gm...> - 2008-05-29 11:51:44
|
Giuseppe, I think I know what is the problem with your NLQ translations. 1) First of all, the last line in nlqueries_it.properties was commented and the engine was missing nlq_template.explain entry 2) I do not know Italian but I think the regular expressions that you provided are not correct. E.g., an example template for the second query is Mostra tutte le pubblicazioni scritte da ... when you put Kruk instead of ... it will not find anything. I have analyzed your regexp and rewrote the query to Mostra tutte pubblicazione scritta da Kruk. And got the results. You can test it at esa.jeromedl.org (I will send you credentials in a separate email). Btw. I have also found a small bug in src/org/jeromedl/sjsp/QueryProcessService.java in method processNLQ(HttpServletRequest request, ServletStateBundle bundle) (around line 187) where it was if(rdfq.get() != null) //CHECK and should be if(rdfq.get() != null && !"".equals(rdfq)) //CHECK Since we have rebuild JeromeDL heavily recently I cannot submit it directly to SVN. But you can update your own source code. (@Mariusz can you correct this in the recent version of JeromeDL source?) I hope this was helpful. Cheers, Sebastian -- seb...@gm... -- GG: 335067, -- Jabber: seb...@gm... -- Skype: sebastiankruk -- WWW: http://www.sebastiankruk.com/ On 23 May 2008, at 15:05, Giuseppe Bux wrote: > Hi Sebastian, > please find here attached the complete nlqueries_it.properties > file, obtained by strict translation of the nlqueries_en.properties > file. I tried to rebuild the s3b_nlq.jar, then to insert it in the > JeromeDL ../lib, and to rebuild the jeromedl itself, but I have an > error 500, as in the full stack trace here attached, which is > different from the error 500 I had yesterday. I attach also the > nlqueries_rdf.properties file updated in the nlq_locale > instructions. Please try, either yourself or Mariusz, to make the > nlqueries_it running on the http://bleedingedge.jeromedl.org/ from > the “it” user interface. As soon the whole it translation will be > running I will produce proper translation adjustments . > > Cheers, > Giuseppe > > > > Da: Giuseppe Bux [mailto:giu...@al...] > Inviato: giovedì 22 maggio 2008 10.26 > A: 'Sebastian Kruk' > Cc: 'S3b-users'; 'JeromeDL Users'; 'Antonio Chieti'; 'Maria > Cammarrota' > Oggetto: R: [JeromeDL-users] nlqueries_it properties > > Hi Sebastian, > After my last rebuilding, this morning, both of the jarNlq and the > of the jeromedl I have an error 500 report generated at the enaction > of the semantic search feature: Please find here the attached error > report. > Really at a first rebuilding, yesterday, the enaction of the > semantic search feature was successful as well the execution of the > first option (publish all publication…..), although this successful > behavior was occurring only in the case of the english version (i.e > nlqueries_en. properties), while in the case of the other locale > versions the JWA-533 was still persistent. > > I do not find a plausible explanation of the different system > behavior after the rebuilding of nlq and jeromedl projects: I hope > you could suggest me a possible cause. > > As to the below open questions: > 1) Yes, I updated the nlq_locale.count value; > 2) I think the http://wiki.s3b.corrib.org/NLQ requires > expansion about the grammar used in regexp specification; I consider > important that to support customization of the nlqueries templates. > 3) As to my introduction to this email, the error seems as > fixed for the nlqueries_en template but it still occurs for the > other nlqueries.xx template; > 4) Yes, I am sending a ticket to Jira. > > Semantic query customization is a very necessary task in my > dContentWare project, not only in terms of language translation, but > more in terms of alternative rdf queries and related templates to > implement. Obviously, the pure _it translation of the current _en > template is a first important step. I hope to realize that with your > help. > > Cheers, > Giuseppe > > Da: Sebastian Kruk [mailto:seb...@gm...] > Inviato: mercoledì 21 maggio 2008 15.34 > A: Giuseppe Bux > Cc: S3b-users; JeromeDL Users; Antonio Chieti; Maria Cammarrota > Oggetto: Re: [JeromeDL-users] nlqueries_it properties > > Dear Giuseppe, > > I am sorry for getting back to you that late - but we are all still > recovering from the DERI Review madness last week :) > > To answer your questions: > 1) did you change nlq_locale.count value? > > 2) take a look at http://wiki.s3b.corrib.org/NLQ and let me know if > it requires any further explanation > > 3) fixed - there were two issues there: a) a group capture > definition in regexp b) missing USING NAMESPACE in SeRQL query > > 4) At the moment NLQ only allows to define SELECT queries which > return a vector of results (not a table). Further more, JeromeDL > cannot render (currently) other objects than library resources. An > option would be to use MBB to render results. However, at this stage > I do not plan (in the near future) to extend NLQ since I do not have > time / people / resources to do it. But I do get your point, and I > think it is valid. Can you please send a ticket to JIRA with it? > > Thanks, > > Sebastian > > > -- seb...@gm... > -- GG: 335067, > -- Jabber: seb...@gm... > -- Skype: sebastiankruk > -- WWW: http://www.sebastiankruk.com/ > > > > > On 12 May 2008, at 09:36, Giuseppe Bux wrote: > > Hi Sebastian, > please takes into account some additional feedback from my current > work on nlqueries_it translation and, in general, on nlqueries > customization: > > 1) nlq_locale.x=yy: > I enabled the nlq_locale.x=yy for all the available nlqueries_yy > templates (that is: en, it, pl, de, pt_BR, uk), however only the > nlqueries_pt_BR template, when invoked, is able to show, in its own > language, both the NL query options, in the selectabe text area, > and the selected one, in the body of the query window (really, the > last available options, about finding of articles in a given domain, > is still shown in English). This behavior occurs also on http://bleedingedge.jeromedl.org./ > . > > 2) nlq_template.x.regexp.x expressions: > an explanation grammar could be useful to easily allow users to > customize the expressions; > > 3) Show me all publications in the library: > this option still fails, as from my report JWA-533; I tried to > replace the current "Select" query with the old "Construct" one, > but the failure remains: it is not a problem of query but of its > invoking code. > > 4) More general RDF queries: it could be useful to allow users to > set more general rdf queries. I tried the following query about > authors of the published books: > > Select DISTINCT * > FROM {r} marcont:hasCreator {} foaf:name {t}; foaf:mbox {m} > USING NAMESPACE marcont = <http://www.marcont.org/ontology#>, foaf > = <http://xmlns.com/foaf/0.1/> > As from the above query, it could be useful to extract some > information about authors of publications (ex. the email address, > or the biography), but the JDL result concerns only the list of > publications, without the required additional information about the > related authors. > > > Not more to add: I hope the above feedback could soon have suitable > solutions. > > > Cheers, > > Giuseppe > > > ----- Original Message ----- > From: "Giuseppe Bux" <giu...@al...> > To: "Sebastian Kruk" <seb...@gm...> > Cc: "Sebastian Kruk" <seb...@de...>; "Maria Cammarrota" <cam...@or... > >; "Antonio Chieti" <in...@or...>; "JeromeDL Users" <jer...@li... > > > Sent: Thursday, May 08, 2008 6:26 PM > Subject: Re: [JeromeDL-users] nlqueries_it properties > > > Hi Sebastian, > > > > see below inline my answers. > > Moreover: where can I read about the grammar of > > nlq_template.0.regexp.0 ? > > > > > > Thanks, > > Giuseppe > > > > ----- Original Message ----- > > From: "Sebastian Kruk" <seb...@gm...> > > To: "Giuseppe Bux" <giu...@al...> > > Cc: "Sebastian Kruk" <seb...@de...>; "Maria Cammarrota" > > <cam...@or...>; "Antonio Chieti" > <in...@or...>; > > "JeromeDL Users" <jer...@li...> > > Sent: Thursday, May 08, 2008 4:40 PM > > Subject: Re: [JeromeDL-users] nlqueries_it properties > > > > > > Hi Giuseppe, > > > > just from the top of my head: > > > > 1) Did you update nlqueries_rdf.properties > > > > e.g.: > > > > nlq_locale.0=en > > nlq_locale.1=pt_BR > > nlq_locale.2=it > > nlq_locale.count=3 > > > > ? > > yes, I did. > > > > 2) looking at your screenshot - I have noticed that you have > language > > "en " selected and the rest of the page is in Italian - how that > > happened? Maybe this is the cause? > > > > The same is with "it" label selected. > > > > > > Cheers, > > > > S. > > > > -- seb...@gm... > > -- GG: 335067, > > -- Jabber: seb...@gm... > > -- Skype: sebastiankruk > > -- WWW: http://www.sebastiankruk.com/ > > > > > > > > > > On 8 May 2008, at 15:17, Giuseppe Bux wrote: > > > >> Hi Sebastian, > >> I’m working to the Italian translation of the > nlqueries_en.properties. > >> Please read, in the following, the translation example on the > >> nlq.template.0. After the translation I rebuilt the s3b_nlq.jar > and > >> copied it both in the jeromedl/lib and in the tomcat/lib folders. > >> The result is as in http://screencast.com/t/SY7dY7xLH3 : that is, I > >> obtain the translation in the body of the NLQ window but in the > option > >> selection text area the English text still remains. > >> Obviously I updated also the nlqnlqueries_rdf.properties. > >> What is missing/wrong in my translation process? > >> > >> Thank you, > >> Giuseppe > >> > >> > >> # -- template definition (0) ------ > >> nlq_template.0.example_template=Mostra tutte le pubblicazioni > registrate > >> in libreria. > >> nlq_template.0.explain =Mostra tutte le pubblicazioni/ > risorse > >> registrate in questa libreria digitale. > >> nlq_template.0.regexp.0 =Mostra\\s+(?:mi)?\\s*(?:tutte\\s+| > >> ogni\\s+|qualsiasi)?\\s*(?:risorsa[e]?\\s+|pubblicazione[i]?\\s+| > >> articolo[i]?\\s+|(?:qualsiasi)?oggetto)?\\s*in\\s+(?:nella\\s+| > >> questa)?\\s*(digital)?\\s*library[\\s.?!]*$ > >> # nlq_template.0.regexp.0 =Show\\s+(?:me)?\\s*(?:all\\s+| > each\ > >> \s+|every)?\\s*(?:resource[s]?\\s+|publication[s]?\\s+|article[s]? > \\s > >> +|(?:every)?thing)?\\s*in\\s+(?:the\\s+|this)?\\s*(digital)?\ > >> \s*library[\\s.?!]*$ > >> nlq_template.0.regexp.count =1 > >> > >> > >> > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > >> Don't miss this year's exciting event. There's still time to > save $100. > >> Use priority code J8TL2D2. > >> <nlqueries_it.properties><nlqueries_rdf.properties><semanti > search > .rtf > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > JeromeDL-users mailing list > Jer...@li... > https://lists.sourceforge.net/lists/listinfo/jeromedl-users |