How do I access “built-in” datasources?
A built-in datasource is a locally-installed component that implements nsIRDFDataSource. For example, the bookmarks service. First, check here to make sure you will be allowed to access a built-in datasource. There are several security restrictions on accessing built-in datasources from “untrusted” XUL and JS. Since a built-in datasource is just an XPCOM component, you can instantiate it directly using the XPConnect component manager.