[Project_owners] rdf container manipulation problem

Neil Deakin enndeakin at sympatico.ca
Thu Mar 23 10:34:30 EST 2006


?? wrote:
>
> I'm new to mozilla app dev. I want to manipulate a rdf seq container 
> through nsIRDFContainerUtils interface, I just asserted a statement 
> and query for it, but the result is always "false". Could anyone show 
> me some light on this problem? Thank you.
>
>     function test(){
>     var rdfService=Components.classes["@ mozilla.org/rdf/rdf-service;1
>     <http://mozilla.org/rdf/rdf-service;1>"]
>     .getService(Components.interfaces.nsIRDFService);
>     var rdfCUtils=Components.classes["@
>     mozilla.org/rdf/container-utils;1
>     <http://mozilla.org/rdf/container-utils;1>"]
>     .getService()
>     .QueryInterface(Components.interfaces.nsIRDFContainerUtils);
>     var
>     dataSource=rdfService.GetDataSource("chrome://encodinglock/content/encodingMapping.rdf");
>
>
RDF loaded from a chrome URL is read only.

/ Neil



More information about the Project_owners mailing list