The OHD Ontology products and subsets are built using ROBOT. Thus, you will need to have ROBOT installed on your system.
Often, you will need to view the ontology products. For this, it is best to use the Protégé ontology editor ( see Configuring Protégé for OHD contributions).
The top-level ontology products and subsets are built using a release process ( see Updating Ontology Products and Subsets). Changes made directly to the ontology, such as editing descriptions and managing imports, are made to the editors of this ontology: src/ontology/ohd-edit.owl.
To track changes made to the OHD Ontology, it is best maintained by following these steps:
- Submit an issue detailing the problem.
- Create a branch to address this issue that uses the same number as the issue tracker. For example, if the issue
is
#50
in the issue tracker, name the branchissue-50
. This allows other developers to easily know which branch needs to be checked out to contribute. - Create a pull request that fixes the issue. If possible, create a draft (or WIP) branch early in the process.
- Merge pull request once all the necessary changes have been made. If needed, tag other developers to review the pull request.
- Delete the issue branch (e.g., branch
issue-50
).
From time to time, the imports used by the OHD Ontology will need to be updated and new products (i.e., ontology products and subsets) released. The general process for updating the products is as follows:
- Create an issue, branch, and pull request using the steps outlined in Tracking Changes to the OHD Ontology section.
- Navigate to the src/ontology directory.
- Execute
make clean
. This removes all imports, ontologies, and subsets from the src/ontology directory. Note, the top-level ontology products and subsets still exist; only the files in the src/ontology directory were removed. - Execute
make all
. This will create new ontology products and subsets in the src/ontology directory. - Review the new ontology products and subsets.
- Once you are satisfied with the new ontology products and subsets, execute
make release
. This will copy the new products to the top-level directory. - Finally, push your changes to the repository, make a pull request, and merge.
When a new entity is created using Protégé the entities are created using the default settings of Protégé. For example, using the default settings when a new entity called 'test' is created the IRI for the entity may look like this.
http://www.semanticweb.org/user/ontologies/2023/6/untitled-ontology-43#test
Ideally, we want the new entity created in the OHD ontology to look similar to the IRI below based on OBO Foundry principles:
http://purl.obolibrary.org/obo/OHD_0000024
If you do not have installed Protégé ontology editor on your machine, please download and install it from this link.
If you do not have an ORCID ID please create one by registering here. ORCID ID is a free-of-charge identifier for researchers.
- Open Protégé.
- Go to File > Preferences.
- Go to Protégé Preferences.
- Click on the User details tab.
- Enable Use supplied user name.
- Enter your full name in the field indicated.
- Enable Use Git user name when available.
- Enter your ORCID ID in the field for ORCID.
- Click OK to save.
- Go to Protégé Preferences.
- Click the New entities tab.
- Update Entity IRI.
- For Start with: enable 'Specified IRI' and enter the following IRI in the field:
http://purl.obolibrary.org/obo
- For Followed by: enable the forward slash option (/).
- For End with: enable 'Auto-generated ID'.
- For Start with: enable 'Specified IRI' and enter the following IRI in the field:
- Update Entity Label.
- Enable Same as label renderer.
- Update Auto-generated ID.
- Enable Numeric (Iterative).
- For Prefix: enter OHD_ in the field provided.
- For Start: enter the lower value integer of the ID range if one has been assigned to you. For example 2,000. Most regular contributors are assigned an ID range.
- For End: enter the upper-value integer of the ID range if one has been assigned to you. For example 2,999.
- Enable Remember last ID between Protégé sessions.
- Click OK to save.
- Go to Protégé Preferences.
- Click the New entities metadata tab.
- Enable Annotate new entities with creator (user).
- For Creator property enter the following IRI the field:
http://purl.org/dc/terms/contributor
- For Creator value enable Use ORCID.
- Enable Annotate new entities with creation date/time.
- For Date property enter the following IRI the field:
http://purl.org/dc/terms/created
- For Date property enable ISO-8601.
- Click OK to save.