fenfire-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fenfire-dev] PEG swamp_easier--benja: An easier API for Swamp


From: Tuomas Lukka
Subject: Re: [Fenfire-dev] PEG swamp_easier--benja: An easier API for Swamp
Date: Mon, 22 Sep 2003 14:02:11 +0300
User-agent: Mutt/1.5.4i

On Mon, Sep 22, 2003 at 01:56:52PM +0300, Benja Fallenstein wrote:
> >I'd prefer to have both, and to deprecate the _Iter methods - for now.
> >There's a lot of code that uses _iter right now...
> 
> Yes, and that code would get more readable to me if it was changed to 
> TriplesIter :-) so I would really like to have that :-)
> 
> I'll volunteer changing the existing code. Ok?

Ok. But please make the PEG really clear, by saying explicitly
"remove the methods of the form ..."

> [more than one triple in ``getObject()`` etc.]
> >>Jena returns just an arbitrary one of the matching triples in a similar 
> >>situation; I'm leaning towards that.
> >
> >I'd *really* hate that one -- I'd prefer swamp to have totally clear
> >semantics, with the only arbitrary thing being the order in which a set
> >is iterated through. 
> 
> Hmm. Any ideas, then? Maybe remove ``getObject()`` etc.?

Still throw an error, I think. Since the error has the info on what
tuple wasn't unique, there's a good opportunity to fix the problem.

        Tuomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]