From b24b5ed5a2a38dd1379c828cf6493f343e2c9799 Mon Sep 17 00:00:00 2001 From: Jim Balhoff Date: Wed, 24 Jul 2019 14:18:22 -0400 Subject: [PATCH] Generate date for OBO file. Fixes #15. --- src/ontology/Makefile | 3 ++- src/ontology/bspo-edit.obo | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ontology/Makefile b/src/ontology/Makefile index c1d5f52..68dc3a1 100644 --- a/src/ontology/Makefile +++ b/src/ontology/Makefile @@ -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 $@ diff --git a/src/ontology/bspo-edit.obo b/src/ontology/bspo-edit.obo index 1f7aa8d..8e05953 100644 --- a/src/ontology/bspo-edit.obo +++ b/src/ontology/bspo-edit.obo @@ -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