Importing and Exporting
There are numerous methods for importing to, or exporting from, an Omeka S site. Third-party modules may add more functionality; we are only documenting Omeka-team-supported methods here.
Connect to another Omeka site
Import from Classic to S
You can use the Omeka Classic Importer module to import items & collections from a Classic site. This module only imports items and their metadata (including tags), attached files, and collections (as item sets). It will not import Simple Page content or Exhibit Builder content.
If equivalent plugins/modules are installed on both the source site and the target site, Omeka Classic Importer can import module-specific metadata. For example, geolocation data facilitated by the Mapping module in S and the Geolocation plugin in Classic will automatically be imported; PDF Text elements can be imported and mapped to Extract Text fields.
You cannot currently export from an Omeka S site to a Classic site.
Import from S to S
You can use the Omeka S Item Importer module to import items and item sets from one Omeka S installation to another. You cannot import sites and their pages. We suggest setting up the target site as closely as possible to the source site, including installing and activating all the same modules, and installing any vocabularies used, before performing an import.
Import or export resource templates
You can share a resource template between Omeka S installations by exporting and importing them.
Import or export custom vocabularies
You can share custom vocabularies between Omeka S installations by exporting and importing them.
Connect to non-Omeka platforms
Omeka S has modules for importing resources from:
Import from a spreadsheet
Omeka S can take data in any spreadsheet (tabular) form, whether a CSV, an Excel file, or an ODS. Use the CSV Import module to add items, item sets, media, and users to your Omeka S site from a spreadsheet. This includes data exported from many different databases and platforms.
First, look to see if there a connector or importer module for the platform you are looking to export from. Omeka S has modules for Zotero, Zenodo, Fedora, DSpace, CKAN, Dataverse, and Invenio. If there is no specific module, export the data from your source platform into a spreadsheet. This may require some modification or cleanup of the data before importing into Omeka S.
Export to a spreadsheet
Exporting resources from Omeka S is possible by using a Python script to query the installation's API. You can use this to copy your Omeka S materials to another platform, or as a backup of your work.
Omeka-s-csv.py is a Python script that exports data from Omeka S installations in CSV format.
Outputted spreadsheets will have column headings for metadata terms in alphabetical order: dcterms:description
, dcterms:title
, etc.
There will also be a section of o:
columns, including the internal Omeka S ID (o:id
), the internal IDs of items' attached media (o:media
), privacy settings (o:is_public
, with values of "TRUE" or "FALSE"), created and modified dates, owners, sites, and other resource data. At the end will be thumbnail
columns containing the URLs to media thumbnails generated by the installation.
This script cannot export site or page information, nor will it export resource templates, vocabularies, or other data stored in modules (such as Inverse Properties settings on resource templates).
Requirements
omeka-s-csv.py works with either Python 2 or 3, and requires no additional or external dependencies.
Linux users will likely have Python already installed, and packages should be available from your distribution. There are several options for installing Python on Windows and Mac, including downloading an installer from Python's website.
Export
In a terminal in the folder where omeka-s-csv.py
is located on your system, run the script:
python3 omeka-s-csv.py
(This can also be done, depending on the system, as ./omeka-s-csv.py
, python omeka-s-csv.py
, or python2 omeka-s-csv.py
.)
The script will prompt you for the Omeka S API endpoint you want to export from. This is a URL pointing to the target Omeka S installation, and should start with http://
or https://
end with /api
.
Next, you will be prompted for an API key. Keys are required to export non-public data from the site, but are optional if you're only exporting public data. If you're not using a key, you can leave the input blank and just press "Enter".
Finally, a prompt will ask you to enter a "separator," a character that will be used to separate multiple pieces of data in a single CSV cell. It's important that the chosen separator is a character that doesn't appear in the actual data. The default choice is the "pipe" character (|
), which is usually a safe option. To use that default choice, press "Enter"; otherwise, type the separator character you want to use instead.
The script will then run, and show output indicating its progress. The exported results will be placed in files in the same folder as the omeka-s-csv.py
file: items.csv
, item_sets.csv
, and media.csv
.
Access data using the API
You can use your own S site's API to crawl data as required, rather than exporting a spreadsheet for a one-time use. Note that you can request different formats through the API, including jsonld
and rdfxml
. For more information on the API, see the developer documentation section.