I've noticed a subtle side effect in using .addN() of ConjunctiveGraph
... there is no check of the context provided in each quad as to
whether the context is derived from rdflib.Graph.Graph, it will be
added no matter what it is.
If a context is not derived from rdflib.Graph.Graph, then it methods
such as .contexts() in BackwardsCompatableGraph which call .identifier
on a context fail (though I see contexts of ConjuntiveGraph just yield
the context object itself). Is is intended that contexts can be any
kind of object in ConjunctiveGraph?

Tests generally show this up, but it can be very subtle if unwary
people use say a string form of a URI or a URIRef as a context in
adding quads and don't check results of filtering across contexts
accurately.

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

Reply via email to