A very simple Ruby-based script for generating random metadata. It is hard coded to generate 100 rows of data, but it would be very easy to tweak that number. If you're feeling especially helpful, I invite you to fork a copy of this script and make it work with command line options. If you do so, a friendly pull request would be appreciated.
generate_random_batch_metadata.rb - the star of the show
Generates random metadata, for use in batch importing to DSpace. It's helpful for quickly populating a developement instance of DSpace, so you can test indexing and interface stuff like results paging. Besides, who doesn't like random metadata?
Ruby, of course, and the following gems:
To install any of these gems, run gem install GEM_NAME
The Shebang line uses env, so this script should "just run" in any Unix-like environemnt. You're on your own with Windows, but, I bet you already know how to run a Ruby script in Windows. By "just run" I mean, you type this on your command prompt, after you ensure the script is executable (chmod 755 generate_random_batch_metadata.rb
):
./generate_random_batch_metadata.rb
Enjoy!
Check out these other tools that do similar things:-
CWilper's GutenProc - fill your dev DSpace instance with the contents of Project Gutenberg
-
CWilper's DSOgen - more than just random metadata for DSpace!
This work is licensed under a Creative Commons Attribution 4.0 International License.