Decorating your model with ontologies ================================================================ It is possible to add ontolgy terms to the data types in your data model. Why would you do this? Where is this used? ---------------------------------------------- Adding an ontology term to a class will facilitate cross InterMine querying. It can also enable cross-database analysis. Is the “gene” data type in MouseMine the same one as in the EBI? We will use these ontologies in the future when we generate RDF. How do you chose an ontology term? -------------------------------------- We used an ontology search, then selected the most specific and accurate term available. This is the search we used: https://bioportal.bioontology.org/search We ended up selecting terms that were in the following ontologies: * `Sequence Ontology `_ * `Semantic Science `_ * `EDAM `_ * `MeSH `_ * `Dublin Core `_ * `National Cancer Institute Thesaurus (US NIH) `_ How do you add an ontology term to the data model? ---------------------------------------------------------------------------- We've already added the terms to the core InterMine data model, and data types in the sequence ontology are updated automatically. You'll need to add ontology terms only to classes and attributes that you have added to your mine. Once you have selected the correct ontology term, use the attribute `term` and add it to your data model. See the example below An example additions.xml snippet with an ontology term --------------------------------------------------------------------- .. code-block:: xml For a more complete example, see `FlyMine `_ which covers many data types. For a detailed description of the data model, see :doc:`/data-model/model`. .. index:: model with ontology terms, data model with ontology terms