1) How does the "Deleted" attribute work?
(The first thing that pops into my mind is the following which makes
an assumption about the use of Title. If it's easy to just ignore this
and explain "Deleted" from the beginning, that's fine. But maybe this
will make one or more wrong assumptions of mine be obvious.
- At time T=1, a "Ed Stuff" tiddler is created. A metadata entry
with Title "Ed Stuff" and some initial content is sent to server
with "Deleted" = False.
- At time T=2, a "Ed Stuff" tiddler is edited. A metadata entry
with Title "Ed Stuff" with the new content and is sent to server
with "Deleted" = False.
- At time T=3, a "Ed Stuff" tiddler is deleted. A metadata entry
with Title "Ed Stuff" and no content is sent to server with
"Deleted" = True
Requests with "title=Ed Stuff" and "mostRecentByTitle=True" would return:
- nothing for T<1
- an entry with the inital content for 1<T<2
- an entry with the edited content for 2<T<3
- the "deleted" entry for 3<T
2) Checkpoints sound good, and if they existed I think it would be
straightforward to modify some of my existing software to use them and
that I'd be motivated to do it. If I think of any reason why I'd
prefer parameters or HTTP headers, I'll let you know.
3) I'd like a way to access a particular metadata entry that is
shorter than the Record ID for the Record, Title, Rolling Checksum and
Sequence (90 characters plus title, not including any information
about the server). For example an API that just used the Rolling
Checksum would be nice if
It would also be nice if the returned the metadata entry was in a
format that hashed to (in this example)
4) Will the API support finding out the File Name for the last
metadata entry? Will this return only this and not any entries?
(I haven't found a way to find out what the File Name is for the last
metadata entry for a record with the current Shared Records
implementation. I know how to find the second to last one by
requesting all the metadata entries and looking in the Previous
Metadata Entry for the last one. I haven't actually tried it, but
I've also seen the documentation for how to find out the last metadata
entry on the server after a record is deposited.)
5) With apologies for bring up something that might be really hard or
unsolvable, another interest I have is how to deal with multiple
servers. Has anyone thought about being able to store metadata
entries on more than one server, for example a local server and the
public shared records server? Has anyone thought about moving metadata
entries from one server to another?
Thanks for your quick response!
> > I haven't found a way to find out what the File Name is for the last
> > metadata entry for a record with the current Shared Records
> > implementation.
> This should be coming back in the record headers during a HEAD or GET of the
> record itself. See:
I'd be happy if the record headers had this. Maybe I'm doing
something wrong or the internal server I use is either old or has some
bug. I normally see Max-Metadata-Sequence-Number but not the full File
Name. Here's an example:
$ curl --verbose --output retrieved.txt http://wort3:8080/SRCDataStore/RESTServlet/4704926776112a8dcfb34f3039dc614d02fdd623.data
* About to connect() to wort3 port 8080
* Trying 18.104.22.168... connected
* Connected to wort3 (22.214.171.124) port 8080
> GET /SRCDataStore/RESTServlet/4704926776112a8dcfb34f3039dc614d02fdd623.data HTTP/1.1
> User-Agent: curl/7.15.5 (i486-pc-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 libidn/0.6.5
> Host: wort3:8080
> Accept: */*
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< x-amz-meta-record-file-extension: .txt
< Max-Metadata-Sequence-Number: 302
< Content-Type: text/plain
< Content-Length: 50
< Date: Mon, 15 Oct 2007 22:05:22 GMT
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 50 0 50 0 0 416 0 --:--:-- --:--:-- --:--:-- 0* Connection #0 to host wort3 left intact
* Closing connection #0
If I'm not doing something wrong that you can point out, I can try to
replicate this on test.sharedrecords.org and file a Trac Ticket if
> > 3) I'd like a way to access a particular metadata entry that is
> > shorter than the Record ID for the Record, Title, Rolling Checksum and
> > Sequence (90 characters plus title, not including any information
> > about the server). For example an API that just used the Rolling
> > Checksum would be nice if
> > http://sra.sharedrecords.org:8080/log/0123456789abcdef0123456789abcdef01234567.log
> > It would also be nice if the returned the metadata entry was in a
> > format that hashed to (in this example)
> > 0123456789abcdef0123456789abcdef01234567 .
> This is a bit tricky and also slightly separate from the annotation issue.
> Let me think about and get back to you. Are you in danger of running of
> characters in the URI?
I agree that this is separate from anotation. Thanks for considering
it. Shorter identifiers would be more convenient for some research
ideas that are not well formed at the moment. Storing these
identifiers in database fields using limited length strings is one
thing I have in mind.
your document seems to have captured everything we agree in the conference call.
I disagree with one thing, though, I think the requests should be of the form:
<Server Base Address>/<Record ID>/annotations/<Annotation
Title>?<Parameters and Values>
<Server Base Address>/annotations/<Record ID>/<Annotation
Title>?<Parameters and Values>
since the annotations are part of the record. This does have the
disadvantage of making the syntax for the additionalRecordID a little
less natural, but I think this is outweighed by the fact that all
other URIs are more natural.
One thing you don't specify is how a checkpoint is set.
I agree that it is a small point and won't get in the way of
implementation. I'll think a bit more about the points you have made.