Maybe a URI-re-writing handler mechanism (design pattern) can be exposed whereby anyone can
design their own URI re-writer to do whatever it wants during the crawling process.

Aperture would defer the final assigned URI to the URI handler and one could then write
a "relocate URI handler" that takes the file and moves it, after the crawling occurs, yet
the final assigned URI is different (the new location).

Doing it this way allows for many different inline handlers to be conceived.


On Tue, 2010-06-29 at 17:59 +0200, Antoni Mylka wrote:
Hello Aperturians,

I'd like to know what you think about making a new release.

1. It's been six months since the last one.
2. We've simplified the codebase and slashed the module count.
3. The tracker shows 6 bugs and 7 feature requests fixed.

But most importantly I'd like to start working on a new, broad topic - 
relative URIs. Right now, when a crawler crawls a file - it's assigned 
an absolute URI, with the drive letter and a full path. If you want to 
use a DataAccessor on that file later, or annotate it - it needs to 
reside in the same physical location.

Sebastian Trüg from Nepomuk KDE community - noticed this problem some 
time ago:

http://trueg.wordpress.com/2010/01/28/files-on-removable-media-step-1/

Now this is becoming an important problem for Aduna too. We'd like to 
crawl a folder on a usb-stick, remove the stick and reattach it under a 
different drive letter without loosing the ability to use DataAccessors 
on it.

Doing it properly will require substantial changes to all URI-generating 
and URI-consuming components - crawlers, subcrawlers and accessors. 
Basically everything should keep working as it does now, but there 
should be a magic switch that will turn everything into a "relative" 
mode and all new uris will be relative to a given base, while all 
accessed uris, will be converted from relative to absolute - with a 
given base.

I have some ideas how this might be done in a backward-compatible 
manner, but before, I'd like to brush up on the issues left undone in 
March, namely:

  - making sure that sources and javadocs are neatly wrapped up in 
assemblies,
  - creating a separate assembly for the big osgi bundle

... and release what we have as 1.5 (some new classes, e.g. 
PoiXmlExtractor mean that 1.4.1 would be against the rules).

What do you think?

Antoni Myłka
antoni.mylka@gmail.com

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Aperture-devel mailing list
Aperture-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aperture-devel