[redland-dev] Redland in Python questions

Daniel Larsson daniel.larsson at servicefactory.com
Sat Jul 8 01:40:14 BST 2006


Uldis Bojars wrote:
> ...
> 2) Model.contains_statement()
>
> Is there a way to check if the model contains one or more statements
> matching a particular statement "template"?
>
> E.g., to use model.contains_statement( RDF.Statement( None,
> rdfs.seeAlso, None) ) to find if there are statements with a predicate
> rdfs.seeAlso.
> d
> There is a method find_statements(), but it would perform more work
> than necessary - there is no need to find all statements in this case.
find_statements is lazily computed, I believe, so should perform fine.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.gnomehack.com/pipermail/redland-dev/attachments/20060708/8bef3c1c/signature.pgp


More information about the redland-dev mailing list