-
Notifications
You must be signed in to change notification settings - Fork 13
OccO Editing
The OccO is developed fully in modules using Robot template feature.
Correct OccO contains 10 templates
-
occo_terms.tsv
The template contains all OccO terms except ability and skill and their subClasses with their annotations.
-
occo_obsolete.tsv
The template contains deprecated OccO terms with some specific annotations such as obsolete reason.
-
ability_types.tsv
The template contains the ability and its subClasses with their annotations.
-
skill_types.tsv
The template contains the skill and its subClasses with their annotations.
-
job_zones.tsv
The template specifies the job zone axioms associated with 'occupation holder'.
-
job_zones_equivalent.tsv
The template defines the 'occupation holder job zone' equivalent axiom.
-
top_abilities_annotations.tsv
The template defines top abilities associated with 'occupation holder' using annotations.
-
top_abilities_axioms.tsv
The template defines abilities associated with 'occupation holder' using logic axioms.
-
top_skills_annotations.tsv
The template defines top skills associated with 'occupation holder' using annotations.
-
top_skills_axioms.tsv
The template defines skills associated with 'occupation holder' using logic axioms.
The Robot template command is used to convert the templates into the OWL files under the modules directory.
The commands have been added in the Makefile. To generate the modules, please run following commands.
make modules
Regenerate the module OWL files if their corresponding templates were updated.
make -B modules
Regenerate all module OWL files.
Run ROBOT required Java 1.9.
The OccO used the import strategy to reuse the terms in the external resources. The Onofox is used to import the terms from external ontologies that stored in the Ontobee server.
The Ontofox input files are under src/ontology/Ontofox_input. One input file is used for retrieving the ontology terms from one external ontology.
The Makefile also included the commands to run Ontofox.
make imports
Rerun Ontofox to retrieve the ontology terms if the corresponding ontoFox input files were changed.
make -B imports
Rerun Ontofox to retrieve all the ontology terms from all used external ontologies.
Changes (add/edit a term) should be made in the OccO template files for OccO terms or the Ontofox input files for external ontology terms and run make command to regenerate the OWL files. Most changes should correspond to a single issue on the tracker.
Start from a local copy of the master
branch of the OccO repository. Make sure your local copy is up-to-date. Make your changes on a new branch.
When you're ready, push your branch to the OccO repository and make a Pull Request (PR) on the GitHub website. The PR will be tested, discussed, adjusted if necessary, then merged.
Here are the steps with their CLI commands.
-
git fetch
make sure your local copy is up-to-date -
git checkout master
start on themaster
branch -
git checkout -b your-branch-name
create a new branch named for the change you're making - make your changes in the templates and run make commands
-
git status
andgit diff
inspect your changes -
git add --update src/
add all updated files in thesrc/
directory to staging -
git commit --message "Description, issue #123"
commit staged changes with a message; it's good to include an issue number -
git push --set-upstream origin your-branch-name
push your commit to GitHub - open https://github.com/Occupation-Ontology/OccO/ in your browser and click the "Make Pull Request" button
- It's good to assign an OccO developer to review the changes.
When that review is complete, the changes (PR) will be merged to the master branch.