[okfn-help] Pairtree's treatment of Object Identifiers / URIs
William Waites
william.waites at okfn.org
Fri Jul 9 15:57:11 BST 2010
Just to point out, in case it is interesting or useful. The
pairtree directory hierarchy uses partial URIs as keys for
the objects. By default they are in the urn:uuid: namespace.
The pairtree implementation allows you to change this but
only once URI prefix per filesystem hierarchy.
So how do you store arbitrary URIs in a pairtree? Have a
look at the uuid() function in [1] which is used by the pairtree
back-end [2] in ordf. It basically normalises any identifier into
the urn:uuid: namespace.
Because this is a one-way operation, the original identifier
is stored in the object's "identifier.txt" stream/attribute
Would there be any benefit to pushing this behaviour further
down the stack, into pairtree or the new OFS?
Cheers,
-w
[1] http://knowledgeforge.net/pdw/ordf/file/tip/ordf/utils.py
[2] http://knowledgeforge.net/pdw/ordf/file/tip/ordf/handler/pt.py
--
William Waites <william.waites at okfn.org>
Mob: +44 789 798 9965 Open Knowledge Foundation
Fax: +44 131 464 4948 Edinburgh, UK
RDF Indexing, Clustering and Inferencing in Python
http://ordf.org/
More information about the okfn-help
mailing list