List Info

Thread: managing negotiated resources




managing negotiated resources
user name
2006-12-07 07:11:12




Hello,

I'm still fairly new to managing resources on Jigsaw, and
was  
wondering if anyone had any suggestion to improve the speed
of my  
workflow, which at the moment is painfully sluggish.

Suppose I have n files, called foo.html.fr, foo.hrml.en etc
(the last  
extension conveniently set to be the language code). I want
to index  
them on Jigsaw, and have foo.html be a language-negotiated
resource.

my process now:
  - start jigadmin. log in to my server. Go to where my
files are.
  - for each of the language-specific resources,
     * add a resource
     * choose org.w3c.jigsaw.resources.HttpFileResource
(hard to find  
in the menu)
     * oh, no, wait, it's
org.w3c.tools.resources.FileResource
     * input the file name (foo.html.en)
     * edit the newly created resource
     * add the file name (again) in the filename field.
commit.
     * Add an HTTPFrame
     * edit the HTTPFrame
     * fill in all details (content-language, content-type,
charset -  
none of which seem to give me a default)
     (do that again for each single language-specific
resource)
  - for the negotiated resource
     * add a resource
     * choose org.w3c.tools.resources.FramedResource
     * edit the FramedResource
     * add a org.w3c.jogsaw.frames.NegotiatedFrame frame.
edit it
     * add the file names of each specific resource in the
variants  
field. By hand. (here I was hoping that this could be done
by drag  
and drop. That would have justified using a GUI)
   - reindex, save.

OK, the above works. It took me a while to figure it out,
and I had  
to struggle with "bad request" errors for a while,
but now I'm happy.  
Except, the process still takes me haf an hour for each
negotiated  
resource I'd like to add. Not to mention I have to use
jigadmin over  
a network, and I have no idea what the culprit is (network,
java on  
my machine) but it's excruciatingly slow.

Hence: is there a way to make it speedier? Some trick I
should know,  
something stupid I'm doing that is slowing me down, some way
for  
Jigsaw to apply a certain number of defaults (in a way
similar to  
what e.g apache does, without necessarily going on full
auto-pilot),  
some way to script this, some easy way to understand the
structure of  
the XML config files and edit them directly?

Any idea or pointer would be much welcome.

Thanks,
-- 
olivier



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )