« Return to Thread: RDF addDatasource

Re: RDF addDatasource

by Axel Hecht-2 :: Rate this Message:

| View in Thread

On 09.02.12 14:18, Pernot Christian wrote:

> Le 09/02/2012 13:41, Axel Hecht a écrit :
>> 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
> Could You please explain or give an example of a "negative truth value"
> in the DS ?
>
> Thank you

ds.Assert(srcRes, propRes, targetRes, false);

Axel
_______________________________________________
dev-tech-xul mailing list
dev-tech-xul@...
https://lists.mozilla.org/listinfo/dev-tech-xul

 « Return to Thread: RDF addDatasource