From: Rob V. <rv...@do...> - 2012-06-22 16:14:03
|
Hi Pier Likely because Lucene isn't indexing what you think it is, with the LuceneSubjectsIndexer it is indexing the full text of the Objects of the Triples so if that search term isn't in an object it won't be located. Also there is the fact that you are subject to Lucene's tokenization and search strategies so there is no guarantee that your search will necessary match depending on how Lucene indexed your data. You might want to take a look at Luke [1] which is a program that allows you to open and view Lucene indexes so you can look and see what is actually in your index and try out searches there to determine whether your searches will actually work. Note that dotNetRDF uses Lucene 2.9.4 because that's the most recent version of Lucene available for .Net so you'll need to use an older version of Luke for compatibility. Depending on your data you may need to be using a different analyzer than the Lucene StandardAnalyzer (esp if you have non-English data) Rob [1]: http://code.google.com/p/luke/ From: "Buongiorno, Pierluigi" <pbu...@es...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Friday, June 22, 2012 12:48 AM To: Cray Employee <rv...@vd...>, "dot...@li..." <dot...@li...> Subject: [dotNetRDF-Support] R: R: search string "contains" > Hi Rob, > thanks for answering, > I¹ve already did what you tell, in particular I¹ve substitude GetTestData) > with g (a graph), and after the indexing, I tried to use the search example, > but the provider.match didn¹t get any result. > Can you suggest me why? > P.S. I send you in attach the 3 files I used. > Thanks > Pier > > > Da: Rob Vesse [mailto:rv...@vd...] > Inviato: giovedì 21 giugno 2012 18:05 > A: dot...@li... > Cc: Buongiorno, Pierluigi > Oggetto: Re: [dotNetRDF-Support] R: search string "contains" > > > Hi Pier > > > > The files are not supposed to be readable by humans they are Lucene indexes > understood by Lucene! [1] > > > > The indexer.Index(this.GetTestData()) was a typo, I have corrected it now.. > You can call indexer.Index() with any Triple, IGraph, or ISparqlDataset > instance. > > > > In the example note the line at the start: > > > > //This example assumes we've already created our index in a folder called > example > > > The example is assuming you've already created an index and populated it, if > the index has not been created or populated then provider.Match() is never > going to be able to return any answers > > > > Rob > > > > [1]: http://lucene.apache.org > > > > From: "Buongiorno, Pierluigi" <pbu...@es...> > Reply-To: dotNetRDF User Help and Support > <dot...@li...> > Date: Thursday, June 21, 2012 12:46 AM > To: Cray Employee <rv...@do...>, > "dot...@li..." > <dot...@li...> > Subject: [dotNetRDF-Support] R: search string "contains" > > >> >> Hi Rob! >> Thank you for answering, >> I already tried to do what you suggest, but it doesn¹t work. >> According the guide >> http://www.dotnetrdf.org/content.asp?pageID=Full%20Text%20Querying%20with%20S >> PARQL >> I created the calls for indexing the rdf, but the files resulting are >> unreadable. It generates 2 files: >> segments_1 >> segments.gen >> both of them contain a line with unreadable simbols, and the next class >> FullTextSearchExample doesn¹t return any result after the provider.Match >> Can you help me? >> I want also ask about the call to method: indexer.Index(this.GetTestData()); >> present in the FullTextIndexingExample, it returns me an errore saying that >> is impossible to call this in a static method. >> I don¹t know how to proceed, please suggest me what to do! >> Thanks you all! >> >> >> Da: Rob Vesse [mailto:rv...@do...] >> Inviato: mercoledì 20 giugno 2012 23:04 >> A: dotNetRDF User Help and Support >> Cc: Buongiorno, Pierluigi >> Oggetto: Re: [dotNetRDF-Support] search string "contains" >> >> >> Hi Pier >> >> >> >> Have you taken a look at the documentation on Full Text Querying with SPARQL >> [1]? >> >> >> >> This is a SPARQL extension supported by dotNetRDF that uses Lucene to provide >> full text search capabilities over RDF. You can plug it in so SPARQL queries >> can use full text style searches or you can use the underlying API provided >> in the dotNetRDF.Query.FullText library directly to index and search RDF >> graphs. >> >> >> >> Hope this helps, >> >> >> >> Rob Vesse >> >> >> >> [1] >> http://www.dotnetrdf.org/content.asp?pageID=Full%20Text%20Querying%20with%20S >> PARQL >> >> >> >> From: "Buongiorno, Pierluigi" <pbu...@es...> >> Reply-To: dotNetRDF User Help and Support >> <dot...@li...> >> Date: Wednesday, June 20, 2012 6:36 AM >> To: "dot...@li..." >> <dot...@li...> >> Subject: [dotNetRDF-Support] search string "contains" >> >> >>> >>> Hi, >>> I would kmow if there is a way to search an element in a owl/rdf file giving >>> a substring, or a ³Like² text >>> For example if I enter the string ³Godfather², I can have the result ³The >>> Godfather² (that is the correct string present in the owl/rdf file) >>> Thanks you all >>> Pier >>> >>> >>> >>> Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, >>> contiene información de carácter confidencial exclusivamente dirigida a su >>> destinatario o destinatarios. Si no es vd. el destinatario indicado, queda >>> notificado que la lectura, utilización, divulgación y/o copia sin >>> autorización está prohibida en virtud de la legislación vigente. En el caso >>> de haber recibido este correo electrónico por error, se ruega notificar >>> inmediatamente esta circunstancia mediante reenvío a la dirección >>> electrónica del remitente. >>> Evite imprimir este mensaje si no es estrictamente necesario. >>> >>> This email and any file attached to it (when applicable) contain(s) >>> confidential information that is exclusively addressed to its recipient(s). >>> If you are not the indicated recipient, you are informed that reading, >>> using, disseminating and/or copying it without authorisation is forbidden in >>> accordance with the legislation in effect. If you have received this email >>> by mistake, please immediately notify the sender of the situation by >>> resending it to their email address. >>> Avoid printing this message if it is not absolutely necessary. >>> ---------------------------------------------------------------------------- >>> -- Live Security Virtual Conference Exclusive live event will cover all the >>> ways today's security and threat landscape has changed and how IT managers >>> can respond. Discussions will include endpoint security, mobile security and >>> the latest in malware threats. >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___________________ >>> ____________________________ dotNetRDF-Support mailing list >>> dot...@li...https://lists.sourceforge.net/lists/l >>> istinfo/dotnetrdf-support >> >> >> >> Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, >> contiene información de carácter confidencial exclusivamente dirigida a su >> destinatario o destinatarios. Si no es vd. el destinatario indicado, queda >> notificado que la lectura, utilización, divulgación y/o copia sin >> autorización está prohibida en virtud de la legislación vigente. En el caso >> de haber recibido este correo electrónico por error, se ruega notificar >> inmediatamente esta circunstancia mediante reenvío a la dirección electrónica >> del remitente. >> Evite imprimir este mensaje si no es estrictamente necesario. >> >> This email and any file attached to it (when applicable) contain(s) >> confidential information that is exclusively addressed to its recipient(s). >> If you are not the indicated recipient, you are informed that reading, using, >> disseminating and/or copying it without authorisation is forbidden in >> accordance with the legislation in effect. If you have received this email by >> mistake, please immediately notify the sender of the situation by resending >> it to their email address. >> Avoid printing this message if it is not absolutely necessary. >> ----------------------------------------------------------------------------- >> - Live Security Virtual Conference Exclusive live event will cover all the >> ways today's security and threat landscape has changed and how IT managers >> can respond. Discussions will include endpoint security, mobile security and >> the latest in malware threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/____________________ >> ___________________________ dotNetRDF-Support mailing list >> dot...@li...https://lists.sourceforge.net/lists/li >> stinfo/dotnetrdf-support > > > Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, > contiene información de carácter confidencial exclusivamente dirigida a su > destinatario o destinatarios. Si no es vd. el destinatario indicado, queda > notificado que la lectura, utilización, divulgación y/o copia sin autorización > está prohibida en virtud de la legislación vigente. En el caso de haber > recibido este correo electrónico por error, se ruega notificar inmediatamente > esta circunstancia mediante reenvío a la dirección electrónica del remitente. > Evite imprimir este mensaje si no es estrictamente necesario. > > This email and any file attached to it (when applicable) contain(s) > confidential information that is exclusively addressed to its recipient(s). If > you are not the indicated recipient, you are informed that reading, using, > disseminating and/or copying it without authorisation is forbidden in > accordance with the legislation in effect. If you have received this email by > mistake, please immediately notify the sender of the situation by resending it > to their email address. > Avoid printing this message if it is not absolutely necessary. > ------------------------------------------------------------------------------ > Live Security Virtual Conference Exclusive live event will cover all the ways > today's security and threat landscape has changed and how IT managers can > respond. Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_____________________ > __________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |