-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
julie-sullivan
committed
Apr 11, 2019
1 parent
caae84d
commit f9f4167
Showing
4 changed files
with
70 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ Data Model | |
model | ||
data-labels | ||
overlaps | ||
model-ontologies | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
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 <http://www.sequenceontology.org/>`_ | ||
* `Semantic Science <https://bioportal.bioontology.org/ontologies/SIO>`_ | ||
* `EDAM <https://bioportal.bioontology.org/ontologies/EDAM>`_ | ||
* `MeSH <https://bioportal.bioontology.org/ontologies/MESH>`_ | ||
* `Dublin Core <https://bioportal.bioontology.org/ontologies/DC>`_ | ||
* `National Cancer Institute Thesaurus (US NIH) <https://bioportal.bioontology.org/ontologies/NCIT>`_ | ||
|
||
|
||
|
||
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 | ||
<?xml version="1.0"?> | ||
<model name="testing" package="org.intermine.model.bio"> | ||
<class name="Protein" is-interface="true" term="http://semanticscience.org/resource/SIO_010043"> | ||
<attribute name="name" type="java.lang.String" term="http://edamontology.org/data_2099"/> | ||
</class> | ||
</model> | ||
For a more complete example, see `FlyMine <http://www.flymine.org/flymine/service/model>`_ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters