Re: RDF addDatasource
Axel Hecht <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
On 09.02.12 12:10, Pernot Christian wrote: > Le 09/02/2012 10:42, Neil a écrit : >> Pernot Christian wrote: >> >>> We're currently dealing with RDF datasources. >>> We use one RDF for displaying a tree (dont-build-content), and we'd >>> like to update and add parts of the tree dynamically. >>> >>> We use the compositeDatasource to add RDFDatasources, but it does not >>> work if the elements in the new datasource were already present in the >>> original datasource. We really want the new datasaource to overwrite >>> existing parts, I thought the coalesceDuplicateArcs should deal with >>> this case, but it is not (maybe the RDF we build does not have the >>> required attributes ?) >> >> Maybe you need to allowNegativeAssertions and use those to disable the >> existing parts? >> > We already have allowNegativeAssertions = true on the composite > datasource, but maybe is there something we need to put in the rdf so it > understands it better ? I think you can only add negative assertions by overlaying an in-mem resource, or otherwise explicitly add an arc to the DS that has a negative truth value. Axel