Alan Gutierrez

Alan Gutierrez blogs on software, social networks, and himself.

Subscrive Via RSS Feed
« »

Is Memento Truly a Document?

Photo by Teepi.

Memento is not a document. It does not store documents.

I have stated that it is a collection of fragments. It begins to look more like a collection byte streams, now that it has begun to merge with my object persistance studies.

In object persistance, objects will be gathered into bins, like records into tables. Objects are obtained by using a key. The bin provides unordered traversal of it’s objects. The bin provides ordered traversal using an defined index.

The bin will now store XML fragments as well.

These fragments can compose a document. They are supposed to each be complete, namespace correct documents, but now there is no given root.

Where do you find the root when you want to model one big document?

One could create a bin that has one item in it.

One could create a bin that has a collection of named pairs, the name of a document, and an id of the root fragment in a particular bin.

Thus, there is no document object in Memento.

You start with a bin full of fragments. Any fragment can be a root fragment that models a larger document using reference elements.

Leave a Reply