Datastore

From Friend2Friend Wiki

Revision as of 12:19, 4 October 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Datastores are XML files to provide permanent storage to a single soft-node. They are currently addressed by @rdf:ID, (though that might change).

Since they are ordinary files, they are accessible to outside nodes through the fs-read service (or to the soft-node itself, using the fs-interal-read) services.

However, they are usually accessed by the xml read/write functions designed specifically for the purpose, since these provide a more convenient set of options: xml(multiple, Xpath based actions), xmlreader (fast reading), xml-read (flexible reading), xml-write(writing), xml-move(moving of XML), xml-update(modification of attributes and element names), xml-delete(deletion). The highest level interface, for managing collections of XML objects, indexed by @id, are privided by the bag-add, bag-delete and bag-read core services.

Personal tools