Re: [Tracker] A question regarding to tracker



On Tue, 2010-02-23 at 14:52 +0800, Zheng, Huan wrote:
Thanks a lot, I will try it.
Another question: how can I get all MediaListEntry of <urn:uuid:image-album-1> in one SPARQL SELECT since 
there might be nfo:position xxx images inside one album.

For example something like this:

SELECT ?position ?image nie:title (?image)
WHERE { 
        <urn:uuid:image-album-1> nfo:hasMediaListEntry ?entry .
        ?entry nfo:content ?image ;
               nfo:position ?position 
}


-----Original Message-----
From: Ivan Frade [mailto:ivan frade gmail com] 
Sent: Tuesday, February 23, 2010 2:44 PM
To: Zheng, Huan
Cc: tracker-list gnome org
Subject: Re: [Tracker] A question regarding to tracker

hi Huan,

 you should use Uris to link the things (in this case images in an
album) instead of syntactic matching of text.

 i cannot check the ontology now, but your image album should look
more or less like this:

#images already available in tracker
<urn:uuid:image-1> a nmm:Image .
<urn:uuid:image-2> a nmm:Image .

<urn:uuid:image-album-1> a nmm:ImageList ;
                           nie:title "holidays in cancun".

<urn:uuid:image-album-1> nfo:hasMediaListEntry [ a nfo:MediaListEntry;
nfo:position 1; nfo:content <urn:uuid:image-1>] .
<urn:uuid:image-album-1> nfo:hasMediaListEntry [ a nfo:MediaListEntry;
nfo:position 2; nfo:content <urn:uuid:image-2>] .

regards,

ivan

On 2/23/10, Zheng, Huan <huan zheng intel com> wrote:
Hi, I have a question regarding to tracker, wondering if someone could help

The requirement is: generate Image Album with some rules(picture taken
time/location), and store this information in tracker.

I have come up with a solution, but I'm not sure if it is the best.

For album storing, I will INSERT nmm:ImageList into tracker and set its
nie:title to some name, let's say "ImageAlbumA".
And for those images that belong to this album, I will create a tag for
those images and set the tag's nao:prefLabel to "ImageAlbumA".

Is there a better way?
Anyone played with nfo:mediaListEntry property before? Is it possible for me
to create a nmm:ImageList and set its nfo:mediaListEntry to a bunch of image
files?
Thanks!


_______________________________________________
tracker-list mailing list
tracker-list gnome org
http://mail.gnome.org/mailman/listinfo/tracker-list


-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]