On Mon, 2010-03-08 at 23:10 -0500, Spivak, Max wrote:
> Hi folks,
> 
> 
> A few notification and custom ontology questions
> 
> 
> Notification questions:
> - Does libtracker-client support receiving
> org.freedesktop.Tracker1.Resources.Class signals? It doesn't appear to

Nope. It's very easy with DBusGProxy, though:

>  -- is there a plan for this in the future? (Does anyone have any
> sample glib-dbus signal listening code?)

http://live.gnome.org/Tracker/Documentation/SignalsOnChanges#Example

> - What's the mechanism to add classes for which notifications are
> sent? Let's say I want to be notified of all FileDataObject changes --
> how do I do that?

You ask us and you give us your use-case, and then we'll consider adding
tracker:notify for the rdf:type to our ontology. Better hurry up because
after 0.8's release we will freeze such changes for a long time.

> - It *appears* that tracker-store is sending duplicate signals for
> Subjects[Added|Changed|Removed]. I'm on 0.7.23. Is this known? Or it
> could be my wonky dbus signal listening code. :)

It sends a signal for each of the resource's rdf:types

> Ontology:
> - I need to define custom ontology that describes books, periodicals,
> etc. While some of the data is fairly generic, other is sufficiently
> specific to our projects that it wouldn't make sense to push it
> outside of our use. What's the best way to do that? Do I add my own
> file, something like <tracker>/data/ontologies/95_book.ontology?

Sounds good. Don't forget to add the tracker:Ontology and
tracker:Namespace sections. And keep the nao:lastModified of
tracker:Ontology up to date and correct.

> - Is there a way to define or extend ontology at runtime? 

Not yet.


-- 
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

_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to