[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nepomuk
Subject:    Re: [Nepomuk] Activities and desktop events - Results from the
From:       Sebastian Trüg <trueg () kde ! org>
Date:       2010-07-29 9:26:12
Message-ID: 4C514934.5080506 () kde ! org
[Download RAW message or body]

On 07/29/2010 11:10 AM, Ivan Čukić wrote:
>> select (s1*s2) as score where { ?r nao:score ?s1 . ?r nao:score2 ?s2 . }
>>
>> What do you think of that? It is a bit hacky but should make the process
>> much faster again.
> 
> It is ok. One question though, can we do this:
> 
> select (s1 * exp(d) * s2 as score ...)
> 
> That is, do virtuoso support exp?
> 
> If yes, we will not need to constantly update the score.

I just tested it:

nepomukcmd query "select bif:exp(42) where { ?r ?p ?o . } limit 1"
callret-0 -> "1.7392749415e+18"^^<http://www.w3.org/2001/XMLSchema#double>
Total results: 1
Execution time: 00:00:00.2

Virtuoso does support exp in the query! :)
This makes it even simpler. We only have to update scores for new
desktop events. Nice!

We would simply put that in an API call that automatically calculates
the score. Or even better we put that in the query API so that
Query::Result::score() contains the score in question.

Cheers,
Sebastian
_______________________________________________
Nepomuk mailing list
Nepomuk@kde.org
https://mail.kde.org/mailman/listinfo/nepomuk

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic