![]() |
Accessing tags database in Harmattan
Hi all,
I have a little sharing app in development for the N9 Harmattan. I'd like to add hashtag support (twitter, diaspora, etc) and would like to enable the user to choose from the same tags as the Gallery. I would need to not only read the tags, but save new tags as well. Any pointers to code relating to the tag chooser in the Nokia N9 Gallery app? Or at least what API could be used to access the tags? Looked around various places for hours and cannot find anything :confused: Thanks! Br, Jason |
Re: Accessing tags database in Harmattan
the tags are stored in the image itself
See xmp standard http://ns.adobe.com/xap/1.0/ what you are looking for is stored in dc:subject tracker might also keep a list of tag data for photos, idk, would make things like filter by tag easier here is the data in a photo I tagged using N9 with 'food' and 'tedt' Code:
|
Re: Accessing tags database in Harmattan
Quote:
Tracker might be an answer but doesn't it just index files and file metadata? But thanks anyway for your reply :) |
Re: Accessing tags database in Harmattan
They are saved in the tracker database, even when they aren't used
in the image tags anymore. tracker-sparql -q "select nao:prefLabel(?d) where { ?d a nao:Tag}" |
Re: Accessing tags database in Harmattan
Cool thanks nicolai, exactly what I was looking for! Need to look at how to use the QtSparql from my app.
|
Re: Accessing tags database in Harmattan
Any idea why this QML fails in QtCreator and device (N9 PR1.1)?
Quote:
Got a hint to try 0.1, which works on device, but 'SparqlListModel' is not recognized. Something related to PR1.2 which is in the docs already? |
Re: Accessing tags database in Harmattan
Started working with Python-QtSparql.
Got access denied to tracker DB and set up Aegis permissions to read/write. However, query returns this error: Quote:
Quote:
|
Re: Accessing tags database in Harmattan
Quote:
|
Re: Accessing tags database in Harmattan
Quote:
|
Re: Accessing tags database in Harmattan
Quote:
See this post: http://www.developer.nokia.com/Commu...l=1#post881097 But thanks anyway! |
All times are GMT. The time now is 12:03. |
vBulletin® Version 3.8.8