No probs! I'm afraid that (AFAIK) this isn't explicitly mentioned.
Only implicitly can it be seen that the added stuff has the expected
types, e.g. in the examples at:

    http://svn.rdflib.net/trunk/examples/

This is part of the need for more documentation.

A skeleton test (non-active since typechecking isn't done now) is also at:

    http://svn.rdflib.net/trunk/test/type_check.py

Still, I think the "pythonic" solution would be to autotype to prevent
this altogether.

Best regards,
Niklas


On 6/13/07, Jon Crump <[EMAIL PROTECTED]> wrote:
> Niklas,
>
> Wow, that was fast! Many thanks, that worked a treat. Is this indicated
> anywhere in the documentation? Can you point me to the relevant point, or
> the relevant parts of the code?
>
> On Wed, 13 Jun 2007, Niklas Lindström
> wrote:
>
> > Hi Jon!
> >
> > You need to turn the subject and predicate of the added tuple into
> > URIRef:s; thus:
> >
> >        store.add((URIRef(ENTRY + s), URIRef(JO + p.replace(' ',
> > '_')), Literal(o)))
> >

_______________________________________________
Dev mailing list
Dev@rdflib.net
http://rdflib.net/mailman/listinfo/dev

Reply via email to