Re: [Tracker] tracker-tags-plugin for Nautilus



El 14/11/09 16:27, Debarshi Ray escribió:
+ I could not find an object that has signals indicating the addition,
removal, etc. of nao:Tags. It seems that there are objects for other
classes.
      
  
you need to add the tracker:notify property to the class I think
    
Using this patch and rebuilding does not show the signal in D-Feet.

diff --git a/data/ontologies/31-nao.ontology b/data/ontologies/31-nao.ontology
index bda43e1..763673f 100644
--- a/data/ontologies/31-nao.ontology
+++ b/data/ontologies/31-nao.ontology
@@ -10,7 +10,8 @@ nao: a tracker:Namespace ;
      tracker:prefix "nao" .

 nao:Tag a rdfs:Class ;
-     rdfs:subClassOf rdfs:Resource .
+     rdfs:subClassOf rdfs:Resource ;
+     tracker:notify true .

 nao:prefLabel a rdf:Property ;
      nrl:maxCardinality 1 ;

Do I need to do something more?

Thanks,
Debarshi
  
Hi Debarshi,
afaik you need to erase your previous database (tracker-processes -r) so
that Tracker will rebuild the ontologies table. There's work ongoing to
make Tracker able to adapt to evolving ontologies, but it's not ready so
far.

Cheers

Adrien




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