[Kde-pim] Akonadi collections

Robin Atwood robin at binro.org
Mon Sep 13 12:20:55 BST 2010


On Monday 13 September 2010, Tobias König wrote:
> On Saturday 11 September 2010 22:43:25 Robin Atwood wrote:
> Hej Robin,
> 
> > I will change the subject since I can now find all the apidocs. My app is
> > launched when someone clicks on a phone number in the right-hand pane of
> > the address book. I now want to match the number to an addressee to get
> > their name, etc.
> 
> So just use the Akonadi::ItemSearchJob as Kevin already suggested.

Easier said than done!

> The needed SparQL query is:
> 
> SELECT ?person WHERE {
>   ?person
> <http://www.semanticdesktop.org/ontologies/2007/03/22/nco#hasPhoneNumber>
> ?number .
>   ?number
> <http://www.semanticdesktop.org/ontologies/2007/03/22/nco#phoneNumber>
> "%1"^^<http://www.w3.org/2001/XMLSchema#string> .
>  }
> 
> where %1 must be replaced with the phone number you are looking for.

Of course, why did I not think of that! ;) I take those URLs are headers like 
with DTD and the search will work if the network is down?

> Ciao,
> Tobias

Thanks once again Tobias, you are the man!

Cheers
-Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------








_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list