and I used those requests from Peter 
and started to build a REST tester along with a script that creates test data: 
communities, collections, and items with fake metadata
maybe you can use the script as a template 
see https://github.com/akinom/do-dspace-rest

Monika


________________ 
Monika Mevenkamp
[email protected]

http://mo-meven.tumblr.com/ <http://mo-meven.tumblr.com/>
http://mcmprogramming.com/mo.meven/ <http://mcmprogramming.com/mo.meven/>



> On Sep 28, 2015, at 11:02 AM, Peter Dietz <[email protected]> wrote:
> 
> Hmm. There is always the REST API. If you have some sort of existing 
> structure information, you could built a tool that sends lots of requests 
> that create this structure in your DSpace via REST.
> 
> Some bash scripts, that for example create communities and collections, using 
> REST.
> https://github.com/DSpace-Labs/dspace-rest-requests 
> <https://github.com/DSpace-Labs/dspace-rest-requests>
> 
> I would probably build this in a friendly language, such as python/php/java, 
> rather than pure bash, as you would likely need to add programming logic.
> 
> ________________
> Peter Dietz
> Longsight
> www.longsight.com <http://www.longsight.com/>
> [email protected] <mailto:[email protected]>
> p: 740-599-5005 x809
> 
> On Mon, Sep 28, 2015 at 10:50 AM, Arthur Sady Cordeiro Rossetti 
> <[email protected] <mailto:[email protected]>> wrote:
> The problem is, Im not only importing the items, I need to catalogue them 
> into collections named acording to their theme I have more than 19.000
>  items to import and between those I have no idea how many themes and 
> therefore how many collections I will need to put under specific structures, 
> I am going to use the Item import command in a later step, but first I need 
> to create the structure of collections. If it was for me I would do it 
> diferently, but its a request from the university library so I need to find a 
> way to insert those collections. I am trying to find a way where I don't need 
> to directly insert data in the sql database, because after seeing the map it 
> seems quite easy to forget some relation between tables and make things not 
> work properly.
> 
> Thats why Im trying the packager command, at first I thought the 
> StructBuilder would solve my problem, and if it wern't for the fact it 
> doesn't recognize already existing structures, it really would.
> 
> 2015-09-28 11:21 GMT-03:00 Peter Dietz <[email protected] 
> <mailto:[email protected]>>:
> Hi Arthur,
> 
> If all you are doing is batch importing lots of items into an existing 
> collection, or collections, then batch import is probably the easier tool. No 
> mets needed. All you need is a folder of files, and a spreadsheet, that you 
> add metadata into columns and rows.
> 
> https://github.com/DSpace-Labs/SAFBuilder 
> <https://github.com/DSpace-Labs/SAFBuilder>
> 
> And another option is from Terry at Georgetown: 
> http://georgetown-university-libraries.github.io/batch-tools/ 
> <http://georgetown-university-libraries.github.io/batch-tools/>
> 
> SAFBuilder is a command line tool. I've just started working on building a 
> web frontend for it, to eventually make it easier for users to get started 
> with.
> 
> ________________
> Peter Dietz
> Longsight
> www.longsight.com <http://www.longsight.com/>
> [email protected] <mailto:[email protected]>
> p: 740-599-5005 x809 <tel:740-599-5005%20x809>
> On Mon, Sep 28, 2015 at 10:05 AM, Arthur Sady Cordeiro Rossetti 
> <[email protected] <mailto:[email protected]>> wrote:
> Hi guys, I want to create an empty collection in the my Dspace instance 
> through the command line to be able to import a huge amount of data under an 
> existing structure instead of having to do it manually (I tried the 
> StructBuilder command but it doesn't recognize an existing structure, it 
> creates a new one entirely)
> 
> The problem for me is, I don't know how to create a METS.xml file that would 
> indicate an empty collection, anyone could give me a hand?
> 
> I tried using an empty file, but it (as it should) failed.
> 
> Thanks in advance for the attention
> Best Regards
> -- 
> Arthur Sady C. Rossetti
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/dspace-tech 
> <http://groups.google.com/group/dspace-tech>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> 
> 
> -- 
> Arthur Sady C. Rossetti
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/dspace-tech 
> <http://groups.google.com/group/dspace-tech>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to