Quite often one needs to be notified when some data changes in Nepomuk. This can be done with the help of the ResourceWatcher. It can be used to watch any subset of resources, properties and types. Please read its documentation for more details.
The Resource class internally uses the ResourceWatcher in order to keep its cache up to date.