-
Notifications
You must be signed in to change notification settings - Fork 4
Add terms (or annotations) using ROBOT templates
Nicole Vasilevsky edited this page Jul 28, 2022
·
1 revision
By Nicole Vasilevsky, updated 2022-07-28
ROBOT can be used to add new terms or new annotations to terms via a spreadsheet format. You can add new terms (and annotations) to MAxO, or just add new annotations, like add new synonyms or definitions. Using this ROBOT workflow is very helpful if you need to add a lot of new terms or annotations at once. ROBOT encodes both the template and the data in the same TSV; after the table header, the second row basically encodes the entire template logic, and the data follows in table row 3.
- Create Google sheet with ROBOT template. For example, see this spreadsheet. See more details about ROBOT templates here.
- Click File->Share->Publish to the Web.
- Publish the specific sheet as TSV.
- Copy the link to the TSV.
- Run
git checkout master — maxo-edit.owl
to revert maxo-edit.owl to the state it is on the master branch. This is only important if you have run the template command before. - Run
sh run.sh make TEMPLATE_URL="https://docs.google.com/spreadsheets/d/e/2PACX-1vQ_G0rImuYa8o72cgQ97bH7xIq_V4TF6YfHkQaQY7HJUElcolO2RSh4bE7d50HTlSL1Vq7LoRJSkKBD/pub?gid=875350397&single=true&output=tsv" merge_template -B
(the URL in the quotes (after the equal sign) should be your template link you have copied) - If all went well,
maxo-edit.owl
will be updated with the template. - Create a branch and move changes to the branch.
- Open Protege and spot-check the changes. If everything looks okay, save as and save the file.
- As always, carefully review the diff before committing.
- Create a pull request.
Note - If you just want to module a tsv you have edited locally, place it somewhere into the src
directory and run:
sh run.sh make merge_template MERGE_TEMPLATE="modules/name_of_your_template.tsv"
- Check out the current maxo-edit from master:
git checkout master -- maxo-edit.owl
- In terminal: sh run.sh merge_template -B