[Nepomuk] Re: Fulltext search in nepomuk

Christian Mollekopf chrigi_1 at fastmail.fm
Thu May 5 11:10:43 CEST 2011


On Thu, 05 May 2011 11:05:50 +0200, Sebastian Trüg <trueg at kde.org> wrote:

> If you get duplicate results it may be that nie:description is defined
> more than once. Replace "select ?r" with "select *" in the query to  
> verify.

Ok, I think thats it. I get all the different versions of the text.
Currently I'm using:
res.addProperty( Vocabulary::NIE::description(), Soprano::LiteralValue(  
note.text() ) );

I should probably use setProperty for nie:title and nie:description?

>
> On 05/05/2011 10:00 AM, Christian Mollekopf wrote:
>> I forgot to mention:
>>
>> Often I get the same resource as result of such a query multiple times
>> (i.e. 6 times).
>> The number of results varies for different search strings, but it seems  
>> to
>> remain stable for multiple searches for the same string.
>> I'm sure that the searched strings are unique within the note, as they  
>> are
>> some random strings.
>>
>> Is there a reason for this, or is it a bug?
>>
>> Cheers
>>
>>
>> On Thu, 05 May 2011 09:51:26 +0200, Christian Mollekopf
>> <chrigi_1 at fastmail.fm> wrote:
>>
>>> In the akonadi-nepomuk-note feeder, I'm using nie:description to set  
>>> the
>>> text
>>> of the note, wo It can be found via fulltext search.
>>>
>>> This basically works fine, meaning I'm able to find the resource with:
>>>
>>> select ?r where { ?r nie:description ?label .
>>>                   ?label bif:contains 'sometext' . }
>>>
>>> What I find confusing is, that not all, but most resources which I
>>> browsed
>>> afterwards did not have the nie:description property set (I checked  
>>> both,
>>> resource and thing).
>>> Not in the "browse resource view" and also not in the "show serialized
>>> resource" view.
>>>
>>> Is this just a bug in nepomukshell? And is there maybe another tool for
>>> me to
>>> check the created resources?
>>>
>>>
>>> Thanks,
>>>
>>> Chris
>>> _______________________________________________
>>> Nepomuk mailing list
>>> Nepomuk at kde.org
>>> https://mail.kde.org/mailman/listinfo/nepomuk
>> _______________________________________________
>> Nepomuk mailing list
>> Nepomuk at kde.org
>> https://mail.kde.org/mailman/listinfo/nepomuk
>>
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Nepomuk mailing list