Skip to content

Commit

Permalink
Merge pull request #234 from mcwdsi/include-language-individuals
Browse files Browse the repository at this point in the history
updated to include language-individuals component in build
  • Loading branch information
hoganwr authored May 6, 2024
2 parents 1528a75 + 3ac86a3 commit dc65631
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/odk-workflows/RepositoryFileStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ Components, in contrast to imports, are considered full members of the ontology.
2. A part of the ontology is managed in ROBOT templates
3. The expressivity of the component is higher than the format of the edit file. For example, people still choose to manage their ontology in OBO format (they should not) missing out on a lot of owl features. They may choose to manage logic that is beyond OBO in a specific OWL component.

These are the components in OMRSE

| Filename | URL |
| -------- | --- |
| language/language-individuals.owl | None |
34 changes: 33 additions & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ OBODATE ?= $(shell date +'%d:%m:%Y %H:%M')
VERSION= $(TODAY)
ANNOTATE_ONTOLOGY_VERSION = annotate -V $(ONTBASE)/releases/$(VERSION)/$@ --annotation owl:versionInfo $(VERSION)
ANNOTATE_CONVERT_FILE = annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) convert -f ofn --output $@.tmp.owl && mv $@.tmp.owl $@
OTHER_SRC =
OTHER_SRC = $(COMPONENTSDIR)/language/language-individuals.owl
ONTOLOGYTERMS = $(TMPDIR)/ontologyterms.txt
EDIT_PREPROCESSED = $(TMPDIR)/$(ONT)-preprocess.owl

Expand Down Expand Up @@ -407,6 +407,38 @@ refresh-%:
no-mirror-refresh-%:
$(MAKE) IMP=true IMP_LARGE=true MIR=false PAT=false $(IMPORTDIR)/$*_import.owl -B


# ----------------------------------------
# Components
# ----------------------------------------
# Some ontologies contain external and internal components. A component is included in the ontology in its entirety.

COMP=true # Global parameter to bypass component generation

.PHONY: all_components
all_components: $(OTHER_SRC)

.PHONY: recreate-components
recreate-components:
$(MAKE) COMP=true IMP=false MIR=true PAT=true IMP_LARGE=false all_components -B

.PHONY: no-mirror-recreate-components
no-mirror-recreate-components:
$(MAKE) COMP=true IMP=false MIR=false PAT=true IMP_LARGE=false all_components -B

.PHONY: recreate-%
recreate-%:
$(MAKE) COMP=true IMP=false IMP_LARGE=false MIR=true PAT=true $(COMPONENTSDIR)/$*.owl -B

.PHONY: no-mirror-recreate-%
no-mirror-recreate-%:
$(MAKE) COMP=true IMP=false IMP_LARGE=false MIR=false PAT=true $(COMPONENTSDIR)/$*.owl -B

$(COMPONENTSDIR)/%: | $(COMPONENTSDIR)
touch $@
.PRECIOUS: $(COMPONENTSDIR)/%


# ----------------------------------------
# Mirroring upstream ontologies
# ----------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/ontology/catalog-v001.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
<uri name="http://purl.obolibrary.org/obo/omrse/components/pno.owl" uri="components/pno.owl"/>
<uri name="http://purl.obolibrary.org/obo/omrse/components/d-acts.owl" uri="components/d-acts.owl"/>
<uri name="http://purl.obolibrary.org/obo/omrse/components/import_terms.owl" uri="components/import_terms.owl"/>
<uri name="http://purl.obolibrary.org/obo/omrse/language-individuals/" uri="components/language/language-individuals.owl"/>
</group>
</catalog>
1 change: 1 addition & 0 deletions src/ontology/omrse-edit.owl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Import(<http://purl.obolibrary.org/obo/omrse/imports/pco_import.owl>)
Import(<http://purl.obolibrary.org/obo/omrse/imports/pno_import.owl>)
Import(<http://purl.obolibrary.org/obo/omrse/imports/ro_import.owl>)
Import(<http://purl.obolibrary.org/obo/omrse/releases/2023-09-08/imports/mf_import.owl>)
Import(<http://purl.obolibrary.org/obo/omrse/language-individuals/>)
Annotation(dc:contributor "Barry Smith"@en)
Annotation(dc:contributor "Chris Stoeckert"@en)
Annotation(dc:contributor "Daniel Welch"@en)
Expand Down
6 changes: 3 additions & 3 deletions src/ontology/omrse-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ import_group:
- id: geo
- id: mf

#components:
# products:
components:
products:
#- filename: education/omrse-education.owl
#- filename: language/language-individuals.owl
- filename: language/language-individuals.owl
#- filename: language/omrse-language.owl
#- filename: omrse-core.owl
# - filename: import_terms.owl
Expand Down

0 comments on commit dc65631

Please sign in to comment.