From 8aca42d2bb50ba764982788e257c1fd2f6f8c878 Mon Sep 17 00:00:00 2001 From: Nico Matentzoglu Date: Wed, 14 Aug 2024 10:31:13 +0300 Subject: [PATCH] Adding a fix to VBO release pipeline that ensures OBO conversion is always possible See https://github.com/OBOFoundry/COB/issues/229 AGAIN.. GRRR. --- src/ontology/imports/cob_import.owl | 6 ++---- src/ontology/vbo.Makefile | 13 +++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/ontology/imports/cob_import.owl b/src/ontology/imports/cob_import.owl index c10322d..a85414f 100644 --- a/src/ontology/imports/cob_import.owl +++ b/src/ontology/imports/cob_import.owl @@ -7,9 +7,9 @@ Prefix(rdfs:=) Ontology( - + Annotation( ) -Annotation(owl:versionInfo "2024-08-08") +Annotation(owl:versionInfo "2024-08-14") Declaration(Class()) Declaration(Class()) @@ -167,7 +167,6 @@ SubClassOf( "characteristic"@en) AnnotationAssertion(rdfs:seeAlso "https://github.com/OBOFoundry/COB/issues/65") AnnotationAssertion(rdfs:seeAlso "https://github.com/oborel/obo-relations/pull/284") -SubClassOf(Annotation(rdfs:comment "We should name the inverse in COB and avoid the confusing inverse(..) construct") ObjectSomeValuesFrom(ObjectInverseOf() owl:Thing)) SubClassOf( ObjectAllValuesFrom( )) # Class: (role) @@ -294,7 +293,6 @@ SubClassOf( "Pier: 'data, information or knowledge'. OR 'representation") AnnotationAssertion(rdfs:label "information") SubClassOf( ObjectSomeValuesFrom( owl:Thing)) -SubClassOf( ObjectSomeValuesFrom(ObjectInverseOf() )) ) \ No newline at end of file diff --git a/src/ontology/vbo.Makefile b/src/ontology/vbo.Makefile index 37965c6..e7d842b 100644 --- a/src/ontology/vbo.Makefile +++ b/src/ontology/vbo.Makefile @@ -110,6 +110,19 @@ $(IMPORTDIR)/wikidata_import.owl: $(TMPDIR)/wikidata_labels.ttl .PHONY: wikidata wikidata: $(IMPORTDIR)/wikidata_import.owl +# The below fix basically deals with a longstanding issue that the OBO format converter does not handle the +# ObjectInverseOf axiom. This is a workaround until the issue is fixed in the OBO format converter +# https://github.com/OBOFoundry/COB/issues/229 + +.PHONY: mirror-cob +.PRECIOUS: $(MIRRORDIR)/cob.owl +mirror-cob: | $(TMPDIR) + curl -L $(OBOBASE)/cob.owl --create-dirs -o $(TMPDIR)/cob-download.owl --retry 4 --max-time 200 && \ + $(ROBOT) convert -i $(TMPDIR)/cob-download.owl -f ofn -o $(TMPDIR)/$@.owl && \ + sed -i '/ObjectInverseOf/d' $(TMPDIR)/$@.owl + + + ################################ ##### DADIS sync ############### ################################