Skip to content

Commit

Permalink
Generate date for OBO file. Fixes #15.
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff committed Jul 24, 2019
1 parent d3e4688 commit b24b5ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
ONT=bspo
OBO=http://purl.obolibrary.org/obo
DATE=$(shell date +'%Y-%m-%d')
OBODATE=$(shell date +'%d:%m:%Y %H:%M')
PREFIX=$(OBO)/$(ONT)
RELEASEPREFIX=$(PREFIX)/releases/$(DATE)

all: bspo.owl bspo.obo bspo-base.owl

bspo-base.owl: bspo-edit.obo
robot annotate -i $< --ontology-iri $(PREFIX)/$(ONT)-base.owl --version-iri $(RELEASEPREFIX)/$(ONT)-base.owl -o $@
robot annotate -i $< --ontology-iri $(PREFIX)/$(ONT)-base.owl --version-iri $(RELEASEPREFIX)/$(ONT)-base.owl --annotation oboInOwl:date "$(OBODATE)" -o $@

bspo.owl: bspo-base.owl
robot reason -i $< --reasoner hermit annotate --ontology-iri $(PREFIX).owl --version-iri $(RELEASEPREFIX)/$(ONT).owl -o $@
Expand Down
3 changes: 0 additions & 3 deletions src/ontology/bspo-edit.obo
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
format-version: 1.2
date: 22:01:2014 15:38
saved-by: wasila.dahdul
auto-generated-by: OBO-Edit 2.3-beta5
synonymtypedef: human "synonym typically used in the context of human anatomy" NARROW
synonymtypedef: vertebrate "synonym typically used in the context of vertebrate anatomy" NARROW
default-namespace: spatial
Expand Down

0 comments on commit b24b5ed

Please sign in to comment.