| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is a command-line utility that migrates a LingSync corpus to an Online Linguistic Database (OLD). Both the source LingSync corpus and the destination OLD must be accessible at URLs (possibly local) via HTTP.
Just run lingsync2old.py and you will be prompted for the required arguments:
$ ./lingsync2old.py
You can also supploy the required arguments as options:
$ ./lingsync2old.py \
--ls-url=https://corpus.lingsync.org \
--ls-corpus=my-lingsync-corpus-name \
--ls-username=my-lingsync-username \
--ls-password=my-lingsync-password \
--old-url=my-old-url \
--old-username=my-old-username \
--old-password=my-old-password
Full param/option listing:
--force-download: boolean that, when `True`, forces the downloading of the
LingSync/CouchDB data, even if we have already downloaded it. Default
is `False`.
--force-convert: boolean that, when `True`, forces the converting of the
LingSync JSON data to OLD JSON data, even if we have already converted
it. Default is `False`.
--force-file-download: boolean that, when `True`, forces the downloading of
a LingSync file (e.g., audio), even if we have already downloaded and
saved it.
--verbose: boolean that makes this script say more about what it's doing.
--ls-url: The LingSync CouchDB URL that we can make requests to for
extracting the LingSync data. Defaults to 'https://corpus.lingsync.org'.
--ls-corpus: The name of the LingSync corpus that we want to
migrate.
--ls-username: The username of a user who has sufficient privileges to
request the LingSync corpus' data from the CouchDB API.
--ls-password: The password corresponding to the LingSync
username.
--old-url: The OLD URL that we will upload the converted LingSync
data to.
--old-username: The username of a user on the destination OLD who
has sufficient privileges to make create, update and delete requests,
i.e., an admin or a contributor.
--old-password: The password corresponding to the OLD username.
It's essentially a three-step algorithm:
Here is the general mapping from LingSync documents (or implicit entities) to OLD resources.
| LingSync | OLD |
|---|---|
| tags | tags |
| users | users |
| speakers | speakers |
| files | files |
| datums | forms |
| datalists | corpora |
| sessions | collections |
| Back | FazBrowse Home | New Git URL |