Skip to content

Commit

Permalink
Adding a fix to VBO release pipeline that ensures OBO conversion is a…
Browse files Browse the repository at this point in the history
…lways possible

See OBOFoundry/COB#229

AGAIN.. GRRR.
  • Loading branch information
matentzn committed Aug 14, 2024
1 parent b4922bb commit 8aca42d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ontology/imports/cob_import.owl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)


Ontology(<http://purl.obolibrary.org/obo/vbo/imports/cob_import.owl>
<http://purl.obolibrary.org/obo/vbo/releases/2024-08-08/imports/cob_import.owl>
<http://purl.obolibrary.org/obo/vbo/releases/2024-08-14/imports/cob_import.owl>
Annotation(<http://purl.org/dc/elements/1.1/source> <http://purl.obolibrary.org/obo/cob/releases/2023-11-16/cob.owl>)
Annotation(owl:versionInfo "2024-08-08")
Annotation(owl:versionInfo "2024-08-14")

Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000015>))
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000016>))
Expand Down Expand Up @@ -167,7 +167,6 @@ SubClassOf(<http://purl.obolibrary.org/obo/BFO_0000017> <http://purl.obolibrary.
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000020> "characteristic"@en)
AnnotationAssertion(rdfs:seeAlso <http://purl.obolibrary.org/obo/BFO_0000020> "https://github.com/OBOFoundry/COB/issues/65")
AnnotationAssertion(rdfs:seeAlso <http://purl.obolibrary.org/obo/BFO_0000020> "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") <http://purl.obolibrary.org/obo/BFO_0000020> ObjectSomeValuesFrom(ObjectInverseOf(<http://purl.obolibrary.org/obo/RO_0000053>) owl:Thing))
SubClassOf(<http://purl.obolibrary.org/obo/BFO_0000020> ObjectAllValuesFrom(<http://purl.obolibrary.org/obo/BFO_0000051> <http://purl.obolibrary.org/obo/BFO_0000020>))

# Class: <http://purl.obolibrary.org/obo/BFO_0000023> (role)
Expand Down Expand Up @@ -294,7 +293,6 @@ SubClassOf(<http://purl.obolibrary.org/obo/IAO_0000027> <http://purl.obolibrary.
AnnotationAssertion(rdfs:comment <http://purl.obolibrary.org/obo/IAO_0000030> "Pier: 'data, information or knowledge'. OR 'representation")
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/IAO_0000030> "information")
SubClassOf(<http://purl.obolibrary.org/obo/IAO_0000030> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/IAO_0000136> owl:Thing))
SubClassOf(<http://purl.obolibrary.org/obo/IAO_0000030> ObjectSomeValuesFrom(ObjectInverseOf(<http://purl.obolibrary.org/obo/COB_0000078>) <http://purl.obolibrary.org/obo/COB_0000120>))


)
13 changes: 13 additions & 0 deletions src/ontology/vbo.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###############
################################
Expand Down

0 comments on commit 8aca42d

Please sign in to comment.