SSKs are the most annoying little URIs.  They have a way of making proposed
URI standards accomodate them in convoluted ways.

So first I propose an alternate SSK syntax:
    freenet:SSK at routingkey[,cryptokey],docname

It's decidable b/c there are always either 2 or 3 fields.

Now, since SSKs are the only type for which DBRs make sense, we make a rule
that the sequence $<increment[,baseline]> within the docname for the new
SSK syntax *only*, will be substituted with the appropriate number of seconds
for DBR magic.  Also $$ will be taken as $<86400>.

Finally, any CHK or SVK, or any SSK in the new syntax, becomes a mapfile if
there is a / followed by the lookupname.

these 2 are equivalent:
    freenet:SSK at GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE/docname
    freenet:SSK at GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,docname

these are DBRs:
    freenet:SSK at GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,$$-docname
        daily update.  becomes =>              ,987379200-docname

    freenet:SSK at GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,pre-$<3600>-post
        hourly update.  becomes =>             ,pre-987422400-post

    freenet:SSK at GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,docname-$<3600,1800>
        every hour on the half hour.  becomes  ,docname-987424200

with mapfile lookups:
    freenet:SSK at GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,docname/foo.jpeg
    freenet:SSK at GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,$$-docname/
    freenet:SSK at GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,pre-$<3600>-post/index.html
    freenet:SSK at 
GHnYWXEWMKjfBEWpaYfeNV2xQfgQAgE,docname-$<3600,1800>/test.html

CHK mapfile:
    freenet:CHK at 
2QGpNw0p5x8VFp0p-o~ni62~0AsPAwE,lv1PA1WhOobga5~F~nlT3A/lookupname
convenience CHK (not a mapfile):
    freenet:CHK at 
2QGpNw0p5x8VFp0p-o~ni62~0AsPAwE,lv1PA1WhOobga5~F~nlT3A/kernel-source-3.0.1.tar.bz2

(SVKs would work just like CHKs)



Better?

-- 

# tavin cole
#
# "The process of scientific discovery is, in effect,
#  a continual flight from wonder."
#                                   - Albert Einstein


_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl
>From - Tue Apr 17 01:41:11 2001
Return-Path: <devl-admin at freenetproject.org>
Received: from hawk.freenetproject.org (postfix@[4.18.42.11])
        by funky.danky.com (8.9.3/8.8.7) with ESMTP id KAA03230
        for <danello at danky.com>; Mon, 16 Apr 2001 10:20:35 -0400
Received: from hawk.freenetproject.org (localhost [127.0.0.1])
        by hawk.freenetproject.org (Postfix) with ESMTP
        id 1BCFE580ED; Mon, 16 Apr 2001 07:02:07 -0700 (PDT)
Delivered-To: devl at freenetproject.org
Received: from mail1.telia.com (t6o70p14.telia.com [195.67.239.134])
        by hawk.freenetproject.org (Postfix) with ESMTP id 04A9258096
        for <devl at freenetproject.org>; Mon, 16 Apr 2001 07:01:39 -0700 (PDT)
Received: from hobbex by mail1.telia.com with local (Exim 3.16 #1)
        id 14p9To-0000Cq-00
        for devl at freenetproject.org; Mon, 16 Apr 2001 15:55:48 +0200
From: Oskar Sandberg <[email protected]>

Reply via email to