Skip to content

Commit

Permalink
Update ROBOT jar in build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Tauber committed Jun 14, 2018
1 parent 0ac2a09 commit ed9b567
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
41 changes: 20 additions & 21 deletions Makefile
Expand Up @@ -10,8 +10,10 @@ SHELL := bash
DO = src/ontology/doid
EDIT = src/ontology/doid-edit.owl
OBO = http://purl.obolibrary.org/obo/

# Other products
DM = src/ontology/doid-merged
DNC = src/ontology/doid-non-classified
HD = src/ontology/HumanDO

# to make a release, use `make release`
# to update imports, use `make imports`
Expand Down Expand Up @@ -61,11 +63,10 @@ build/report.tsv: $(EDIT)
# pre-build queries
QUERIES := $(wildcard src/sparql/*-report.rq)

.PHONY: report-last
report-last: $(QUERIES)
.PHONY: $(QUERIES)
$(QUERIES):
$(ROBOT) query --input $(DM).owl\
--query $@ $(subst src/sparql,build,$(subst .rq,-last.tsv,$(@)))
--query $< $(subst src/sparql,build,$(subst .rq,-last.tsv,$(<)))

# ----------------------------------------
# RELEASE
Expand All @@ -86,12 +87,14 @@ $(DO).owl: $(EDIT)
# Do not annotate OWL file until after conversion
$(DO).obo: $(DO).owl
$(ROBOT) remove --input $< --select imports --trim true \
remove --select "anonymous parents" --trim true \
convert --check false --output $@ && \
$(ROBOT) annotate --input $@\
--annotation oboInOwl:date "$(TS)" --output $@ && \
remove --select "anonymous parents" --select "equivalents" \
convert --check false --output $(basename $@)-temp.obo && \
$(ROBOT) annotate --input $(basename $@)-temp.obo\
--annotation oboInOwl:date "$(TS)" --output $(basename $@)-temp.obo && \
$(ROBOT) annotate --input $<\
--annotation oboInOwl:date "$(TS)" --output $<
--annotation oboInOwl:date "$(TS)" --output $< && \
grep -v ^owl-axioms $(basename $@)-temp.obo > $@ && \
rm $(basename $@)-temp.obo

$(DO).json: $(DO).owl
$(ROBOT) convert --input $< --output $@
Expand All @@ -118,23 +121,20 @@ $(DM).json: $(DM).owl
# HUMANDO
# ----------------------------------------

DNC = src/ontology/doid-non-classified
HD = src/ontology/HumanDO

human: $(DNC).owl $(DNC).obo $(DNC).json

$(DNC).owl: $(DO).owl
$(ROBOT) remove --input $< --axioms logical --trim true \
remove --select imports --trim true \
$(ROBOT) remove --input $< --select imports --trim true \
remove --select "anonymous parents" --select "equivalents" \
annotate --ontology-iri "$(OBO)doid/doid-non-classified.owl"\
--version-iri "$(OBO)doid/releases/$(DATE)/doid-non-classified.owl"\
--output $@ && \
$(ROBOT) annotate --input $@ --ontology-iri "http://purl.obolibrary.org/obo/doid/HumanDO.owl"\
--version-iri "http://purl.obolibrary.org/obo/doid/releases/$(DATE)/HumanDO.owl"\
--output $(HD).owl
--version-iri "$(OBO)doid/releases/$(DATE)/doid-non-classified.owl" --output $@

$(DNC).obo: $(DNC).owl
$(ROBOT) convert --input $< --output $@ --check false && cp $@ $(HD).obo
$(ROBOT) convert --input $< --check false\
--output $(basename $@)-temp.obo && \
grep -v ^owl-axioms $(basename $@)-temp.obo > $@ && \
rm $(basename $@)-temp.obo && \
cp $@ $(HD).obo

$(DNC).json: $(DNC).owl
$(ROBOT) convert --input $< --output $@
Expand All @@ -149,7 +149,6 @@ SUBS = DO_AGR_slim DO_FlyBase_slim DO_MGI_slim DO_cancer_slim DO_rare_slim GOLD\
gram-positive_bacterial_infectious_disease sexually_transmitted_infectious_disease\
tick-borne_infectious_disease zoonotic_infectious_disease

.PHONY: subsets
subsets: $(SUBS)

$(SUBS): $(DNC).owl
Expand Down
Binary file modified build/robot.jar
Binary file not shown.
2 changes: 0 additions & 2 deletions src/ontology/doid-edit.owl
Expand Up @@ -119445,7 +119445,6 @@ SubClassOf(obo:DOID_5656 obo:DOID_870)
# Class: obo:DOID_5658 (lipid-rich carcinoma)

AnnotationAssertion(Annotation(oboInOwl:hasDbXref "url:https://ncit.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&version=16.12d&ns=NCI_Thesaurus&code=C4152") obo:IAO_0000115 obo:DOID_5658 "A breast carcinoma characterized by the presence of malignant epithelial cells with clear cytoplasm which contains neutral lipids.")
AnnotationAssertion(Annotation(oboInOwl:hasDbXref "url:http://www.pathologyoutlines.com/topic/breastmalignantlipidrich.html"^^xsd:string) obo:IAO_0000115 obo:DOID_5658 "A breast carcinoma that is characterized by 90% or more cells with prominent intracytoplasmic neutral lipid."^^xsd:string)
AnnotationAssertion(oboInOwl:hasDbXref obo:DOID_5658 "NCI:C4152"^^xsd:string)
AnnotationAssertion(oboInOwl:hasDbXref obo:DOID_5658 "UMLS_CUI:C0334318"^^xsd:string)
AnnotationAssertion(oboInOwl:hasOBONamespace obo:DOID_5658 "disease_ontology"^^xsd:string)
Expand Down Expand Up @@ -133164,7 +133163,6 @@ SubClassOf(obo:DOID_7878 obo:DOID_4994)
# Class: obo:DOID_7880 (luteoma)

AnnotationAssertion(Annotation(oboInOwl:hasDbXref "url:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5641443/") obo:IAO_0000115 obo:DOID_7880 "An ovarian benign neoplasm characterized by solid proliferations of luteinized cells, resulting in a tumor-like ovarian enlargement that regresses during the puerperium.")
AnnotationAssertion(Annotation(oboInOwl:hasDbXref "url:http://www.pathologyoutlines.com/topic/ovarypregnancyluteoma.html"^^xsd:string) obo:IAO_0000115 obo:DOID_7880 "An ovarian disease that is characterized by the presence of single or multiple nodules of luteinized cells with abundant eosinophilic cytoplasm, detected during pregnancy."^^xsd:string)
AnnotationAssertion(oboInOwl:hasDbXref obo:DOID_7880 "MESH:D018311")
AnnotationAssertion(oboInOwl:hasDbXref obo:DOID_7880 "NCI:C40445"^^xsd:string)
AnnotationAssertion(oboInOwl:hasDbXref obo:DOID_7880 "UMLS_CUI:C1517842"^^xsd:string)
Expand Down

0 comments on commit ed9b567

Please sign in to comment.