Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding levels of organization and also visualizations #30

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SHELL := bash
.SUFFIXES:
.SECONDARY:

OBO = http://purl.obolibrary.org/obo/
OBO = http://purl.obolibrary.org/obo

CORE = obo-core.owl
MODULES = generic physical biological human science
Expand Down Expand Up @@ -83,6 +83,30 @@ templates/human.tsv:
templates/science.tsv:
curl "$(SCIENCE_SHEET)" > $@


# ---------- RELEASE ---------- #
core.owl: core-edit.owl
robot merge -i $< -o $@

%.json: %.owl
robot convert -i $< -o $@

INVERSE_NEST_RELATION = $(OBO)/CORE_0003000
OGSTYLE = obograph-style.json
OGARGS = -s $(OGSTYLE)
core.dot: core.json $(OGSTYLE)
og2dot.js $(OGARGS) $< > [email protected] && mv [email protected] $@

# nest has-part
core-n.dot: core.json $(OGSTYLE)
og2dot.js $(OGARGS) -I $(INVERSE_NEST_RELATION) $< > [email protected] && mv [email protected] $@

core-subclass.dot: core.json $(OGSTYLE)
og2dot.js $(OGARGS) $< > [email protected] && mv [email protected] $@

%.png: %.dot
dot $< -Grankdir=BT -Tpng -o [email protected] && mv [email protected] $@

# ---------- ALIGNMENT ---------- #
# Currentlh this requires installing some tools - I will set up a docker for running these...

Expand All @@ -98,3 +122,7 @@ matches/wd-closematches.ttl: manual-core.owl

matches/wd-align.tsv: manual-core.owl matches/wd-closematches.ttl
rdfmatch -d rdf_matcher -G imports/matches-wd.owl --predicate skos:closeMatch --prefix CORE -f tsv -l -A ~/repos/onto-mirror/void.ttl -i prefixes.ttl -i $< -i wd-closematches.ttl exact > [email protected] && cut -f1-9,11,15-19 [email protected] > $@


usage.tsv:
pl2sparql -f tsv -l -e -i core.owl -c util/core-usage.pro core_term_usage > $@
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,21 @@ Our current list of OBO Core terms is work in progress: [OBO Core Term Discussio
We use [ROBOT](http://robot.obolibrary.org) to build extract those terms and build an experimental OWL file.

To suggest adding a term to OBO Core, please submit an issue to our tracker.

## Viewing OBO-Core

We recommend using Protege.

You can also look at pre-rendered PNGs (made using [obographviz](https://www.npmjs.com/package/obographviz)):

Full ontology:

![img](core.png)

SubClassOf only:

![img](core-subclass.png)

With nesting over `levels` relationship:

![img](core-n.png)
586 changes: 568 additions & 18 deletions core-edit.owl

Large diffs are not rendered by default.

Binary file added core-n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core-subclass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading