Hi Christophe!

Thanks for the explanation how to set up a separate index. But I could 
not see the why it helps for a file upload. The content of the file will 
never be part of metadatavalue.text_value . And I really do not want to 
index binary data (which is the content of my 2 GB file).

Anyway I succeeded with the following command, which needed less then 5 
minutes for the import:

 >dsrun org.dspace.content.crosswalk.XSLTingest -a -x DIMDIM -e 
[EMAIL PROTECTED] -c 123456789/30 -s addfiles.xml -m addfiles071126.map

Of course '[EMAIL PROTECTED]' is not the real ID I used. The DIMDIM is 
the "null-XSLT" You developed (as in 
http://sourceforge.net/mailarchive/message.php?msg_name=47387A4D.3020802%40uni-osnabrueck.de
 
- far below). The content of addfiles.xml is very simple DIM:

<?xml version="1.0"?>
<dim:list xmlns:dim="http://www.dspace.org/xmlns/dspace/dim";>
<dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim"; 
dspaceType="ITEM">
   <dim:field mdschema="dc" element="identifier" qualifier="other" 
type="key">giantfile</dim:field>
   <dim:original>/tmp/rawdata.data</dim:original>
</dim:dim>
</dim:list>

The line
<dim:field mdschema="dc" element="identifier" qualifier="other" 
type="key">giantfile</dim:field>
refers to a dummy-key which must be added to the metadata set of the 
item where the file should be added. In the section 'Identifiers' select 
'other' and enter 'giantfile'. After the import this identifier should 
be removed of course.

Thanks to all the help from You and the others!

Best regards

Robert

---------
Dupriez Christophe schrieb:
> To be precise about creating an index for faster access by field value, you 
> can create this index running this SQL script:
>   CREATE INDEX metadata_value_idx3 ON metadatavalue USING btree 
> (metadata_field_id, md5(text_value));
> 
>   Good afternoon!
>    
>   Christophe
> 
> Robert Roggenbuck <[EMAIL PROTECTED]> a écrit :
>   Dear Jayan,
> 
> I agree that this must be a possible way. But I do not know how to 
> update an existing metadata record using the BatchItemImport and 
> XSLTIngest. Adding to a collection works well. But in the description of 
> the DIM-format there seems to be no possibility to include the ID of an 
> already existing record. but at the Wiki-page about BatchItemImport it 
> is written that update is possible.
> 
> @Christophe Dupriez: Did You forgot to document an ID-attribute for the DIM?
> 
> Best regards
> 
> Robert
> 
> -----
> Jayan Chirayath Kurian schrieb:
>> will it work will batch import i.e using itemimport - just a thought
>>
>> Cheers!
>> Jayan
>>
>> ________________________________
>>
>> From: [EMAIL PROTECTED] on behalf of Robert Roggenbuck
>> Sent: Mon 11/26/2007 8:07 PM
>> To: [email protected] Tech
>> Subject: [Dspace-tech] Upload of files larger then 2 GB
>>
>>
>>
>> Dear all,
>>
>> I tried to submit a file larger then 2 GB but it is not possible using
>> the Web-Interface. As far as I know it is not a limit by DSpace, nor
>> HTML, Browser or HTTP. May be it is a Web server limit? Since files with
>> such a size will be an exception an an upload limit is a good barrier
>> for misuse it is ok for us.
>>
>> But I'd like to know how we can add this file to DSpace, given the
>> situation I have it on DVD or on the local file system? Had someone
>> developed a solution for this situation?
>>
>> Best regards
>>
>> Robert
>>
>> --
>>
>> ===================================
>> Robert Roggenbuck
>> Universitaetsbibliothek Osnabrueck
>> Germany
>> ===================================
>>
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 
> 
> 
> 
>              
> ---------------------------------
>  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

-- 

===================================
Robert Roggenbuck
Universitaetsbibliothek Osnabrueck
Alte Muenze 16
D-49074 Osnabrueck
Germany
Tel ++49/541/969-4344  Fax -4482
[EMAIL PROTECTED]

Postbox:
Postfach 4496
D-49034 Osnabrueck
===================================

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to