From: Andrew K. <aku...@me...> - 2002-04-09 18:46:46
|
I'd like to use Redfoot to store a medium-sized amount of RDF triples (say, several megabytes or so), and would like to layer it on top of the ZODB to avoid having all the data in memory at once. Question: is triple.TripleStore suitable for this? I could just modify it by using the ZODB's BTree object instead of regular Python dictionaries, and that would be sufficient to let ZODB only read in the triples that it needs. Another question: making every dictionary in TripleStore a BTree seems like overkill. For example, in the [subject][predicate][object] dictionary it's probably sufficient to make just the top-level dictionary a BTree, because the number of predicates and objects for a single subject probably isn't that large. For the [predicate][object][subject] dictionary, I think the top two levels would have to be BTrees. Seem reasonable? --amk (www.amk.ca) We of Faerie are of the wild magic. We are not creatures of spells and grimoires. We *are* spells, and we are written of in grimoires. -- From SANDMAN #52: "Cluracan's Tale" |