Thank you for your reply. I will try to access data source through file io. But I think this info should be added to mozilla dev document about rdf( http://www.mozilla.org/rdf/doc/ ). I've read all these docs before I wrote my code, but I fail to find this important info (If I miss the info in the docs, it's my mistake). Thank you again.

2006/3/23, Neil Deakin < [EMAIL PROTECTED]>:
?? 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

_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to