Skip to content

Commit

Permalink
Merge pull request #40 from nmrML/12_rework_NMR_instruments_and_manuf…
Browse files Browse the repository at this point in the history
…acutrers_eqivalence_approach

Rework NMR instruments and manufacutrers
  • Loading branch information
NRayya authored Sep 3, 2024
2 parents 9b5b08c + d3182c2 commit 24d19f1
Show file tree
Hide file tree
Showing 15 changed files with 1,658 additions and 1,682 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ src/patterns/all_pattern_terms.txt
.idea/vcs.xml
.idea/workspace.xml
.idea/misc.xml
/.idea
2 changes: 2 additions & 0 deletions docs/odk-workflows/RepositoryFileStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ These are the current imports in NMRCV
| bfo | http://purl.obolibrary.org/obo/bfo.owl | mirror |
| ro | http://purl.obolibrary.org/obo/ro.owl | None |
| omo | http://purl.obolibrary.org/obo/omo.owl | mirror |
| iao | http://purl.obolibrary.org/obo/iao.owl | None |
| obi | http://purl.obolibrary.org/obo/obi.owl | custom |
| chebi | http://purl.obolibrary.org/obo/chebi.owl | None |

## Components
Expand Down
65 changes: 65 additions & 0 deletions src/mappings/obi-mapping.tsv

Large diffs are not rendered by default.

26 changes: 23 additions & 3 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# More information: https://github.com/INCATools/ontology-development-kit/

# Fingerprint of the configuration file when this Makefile was last generated
CONFIG_HASH= a4c0ac9d9d7ac7b03403ce94c3d1d76c44d412b433490d312ed763a12e8e19f6
CONFIG_HASH= 1ba644404ead28f12b159a84d638daf10791c394ce2f9060998152d134df9dcc


# ----------------------------------------
Expand Down Expand Up @@ -159,7 +159,7 @@ all_main: $(MAIN_FILES)
# ----------------------------------------


IMPORTS = bfo ro omo chebi
IMPORTS = bfo ro omo iao obi chebi

IMPORT_ROOTS = $(patsubst %, $(IMPORTDIR)/%_import, $(IMPORTS))
IMPORT_OWL_FILES = $(foreach n,$(IMPORT_ROOTS), $(n).owl)
Expand Down Expand Up @@ -376,6 +376,10 @@ $(IMPORTDIR)/omo_import.owl: $(MIRRORDIR)/omo.owl $(IMPORTDIR)/omo_terms_combine
if [ $(IMP) = true ]; then $(ROBOT) merge -i $< query --update ../sparql/preprocess-module.ru --update ../sparql/inject-subset-declaration.ru --update ../sparql/inject-synonymtype-declaration.ru --update ../sparql/postprocess-module.ru \
$(ANNOTATE_CONVERT_FILE); fi

## Module for ontology: obi

$(IMPORTDIR)/obi_import.owl: $(MIRRORDIR)/obi.owl
echo "ERROR: You have configured your default module type to be custom; this behavior needs to be overwritten in nmrCV.Makefile!" && false
## Module for ontology: chebi

$(IMPORTDIR)/chebi_import.owl: $(MIRRORDIR)/chebi.owl $(IMPORTDIR)/chebi_terms_combined.txt
Expand Down Expand Up @@ -427,7 +431,7 @@ mirror-bfo: | $(TMPDIR)
.PHONY: mirror-ro
.PRECIOUS: $(MIRRORDIR)/ro.owl
mirror-ro: | $(TMPDIR)
curl -L $(OBOBASE)/ro.owl --create-dirs -o $(TMPDIR)/ro-download.owl --retry 4 --max-time 200 && \
curl -L $(OBOBASE)/ro/ro-base.owl --create-dirs -o $(TMPDIR)/ro-download.owl --retry 4 --max-time 200 && \
$(ROBOT) convert -i $(TMPDIR)/ro-download.owl -o $(TMPDIR)/$@.owl


Expand All @@ -439,6 +443,22 @@ mirror-omo: | $(TMPDIR)
$(ROBOT) convert -i $(TMPDIR)/omo-download.owl -o $(TMPDIR)/$@.owl


## ONTOLOGY: iao
.PHONY: mirror-iao
.PRECIOUS: $(MIRRORDIR)/iao.owl
mirror-iao: | $(TMPDIR)
curl -L $(OBOBASE)/iao.owl --create-dirs -o $(TMPDIR)/iao-download.owl --retry 4 --max-time 200 && \
$(ROBOT) remove -i $(TMPDIR)/iao-download.owl --base-iri $(OBOBASE)/IAO --axioms external --preserve-structure false --trim false -o $(TMPDIR)/$@.owl


## ONTOLOGY: obi
.PHONY: mirror-obi
.PRECIOUS: $(MIRRORDIR)/obi.owl
mirror-obi: | $(TMPDIR)
curl -L $(OBOBASE)/obi.owl --create-dirs -o $(TMPDIR)/obi-download.owl --retry 4 --max-time 200 && \
$(ROBOT) remove -i $(TMPDIR)/obi-download.owl --base-iri $(OBOBASE)/OBI --axioms external --preserve-structure false --trim false -o $(TMPDIR)/$@.owl


## ONTOLOGY: chebi
.PHONY: mirror-chebi
.PRECIOUS: $(MIRRORDIR)/chebi.owl
Expand Down
2 changes: 2 additions & 0 deletions src/ontology/catalog-v001.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<uri name="http://nmrML.org/nmrCV/imports/ro_import.owl" uri="imports/ro_import.owl"/>
<uri name="http://nmrML.org/nmrCV/imports/omo_import.owl" uri="imports/omo_import.owl"/>
<uri name="http://nmrML.org/nmrCV/imports/chebi_import.owl" uri="imports/chebi_import.owl"/>
<uri name="http://nmrML.org/nmrCV/imports/iao_import.owl" uri="imports/iao_import.owl"/>
<uri name="http://nmrML.org/nmrCV/imports/obi_import.owl" uri="imports/obi_import.owl"/>

</group>
</catalog>
466 changes: 466 additions & 0 deletions src/ontology/imports/iao_import.owl

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/ontology/imports/iao_terms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IAO:0000033 # 'directive information entity'
IAO:0000005 # 'objective specification'
IAO:0000104 # 'plan specification'
497 changes: 497 additions & 0 deletions src/ontology/imports/obi_import.owl

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions src/ontology/imports/obi_remove_list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
OBI:0200000 # 'data transformation'
OBI:0200166 # 'data transformation objective'
OBI:0200111 # 'data visualization'
OBI:0000659 # 'specimen collection process'
OBI:0100051 # specimen
OBI:0000953 # 'processed specimen'
OBI:0000112 # 'specimen role'
OBI:0002076 # 'collection of specimens'
OBI:0000684 # 'specimen collection objective'
OBI:0001933 # 'value specification'
OBI:0000017 # 'regulatory role'
OBI:0000947 # 'service provider role'
OBI:0002989 # 'material supplier'
OBI:0000450 # 'regulatory agency'
IAO:0000009
IAO:0000010
IAO:0000027
IAO:0000030
IAO:0000037
IAO:0000038
IAO:0000064
IAO:0000078
IAO:0000098
IAO:0000100
IAO:0000101
IAO:0000179
IAO:0000180
IAO:0000183
IAO:0000184
IAO:0000310
NCBITaxon:10239
NCBITaxon:2
NCBITaxon:2157
NCBITaxon:2759
11 changes: 11 additions & 0 deletions src/ontology/imports/obi_terms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
OBI:0000835 # manufacturer
OBI:0100026 # organism
NCBITaxon:9606 # Homo sapiens
OBI:0000245 # organization
OBI:0000571 # 'manufacturer role'
OBI:0000011 # planned process
OBI:0000457 # manufacturing
OBI:0000832 # 'measurement device'
OBI:0400107 # computer
OBI:0000836 # test tube
OBI:0000304 # is_manufactured_by
Loading

0 comments on commit 24d19f1

Please sign in to comment.