Last active
March 1, 2016 15:28
-
-
Save mvidalgarcia/bf5489c7634ef7ca223a to your computer and use it in GitHub Desktop.
Imports all artists/artworks from Tate collection (https://github.com/tategallery/collection) dataset to a mongodb database.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First place in the artists directory | |
cd collection-master/artists | |
find * -type f | while read col; do | |
mongoimport -d tate -c artists --file $col; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First place in the artworks directory | |
cd collection-master/artworks | |
find * -type f | while read col; do | |
mongoimport -d tate -c artworks --file $col; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment