microbiomedata / nmdc-ontology

Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

remove or modify usages of "non-redundant" relation-graph output #32

Closed turbomam closed 6 months ago

turbomam commented 7 months ago

The current 2+ relation-graph doesn't attempt to create non-redundant output because it never really did create non-redundant output.

see also

turbomam commented 7 months ago

$(ONT)-relation-graph.owl is a release artifact and is the input into several other targets

It is currently built by merging $(ONT)-nonredundant.ttl into $(ONT)-merged-labels.ttl

Let's try

will it be unacceptably larger?

RELEASE_ARTEFACTS = $(ONT)-relation-graph.owl $(ONT).json $(ONT)-classes.json $(ONT).owl

$(ONT)-relation-graph.owl: $(ONT).owl $(ONT)-merged-labels.ttl
# build relation-graph from nmdc-merged.ttl file
# for relation-graph see https://github.com/balhoff/relation-graph  
# note, you may need to increase Java memory: export JAVA_OPTS=-Xmx16G
    @echo "\n** building $@ **"
    relation-graph --ontology-file $< \
        --reflexive-subclasses false \
        --equivalence-as-subclass false \
        --non-redundant-output-file $(ONT)-nonredundant.ttl \
        --redundant-output-file $(ONT)-redundant.ttl \
        --mode rdf
# merge in nmdco-merged for annotations
    $(ROBOT) merge \
        --input $(word 2, $^) \
        --input $(ONT)-nonredundant.ttl \
        annotate --ontology-iri $(ONTBASE)/$@ \
        $(ANNOTATE_ONTOLOGY_VERSION) \
        --output $@
turbomam commented 7 months ago

With non-redundant input:

-rw-rw-r-- 1 mark mark 13M Feb 15 12:18 nmdco-relation-graph.owl -rw-rw-r-- 1 mark mark 2.6M Feb 16 09:43 nmdco-classes.json

turbomam commented 7 months ago

With relation-graph 2.3 output:

-rw-rw-r-- 1 mark mark 66M Feb 16 09:38 nmdco-relation-graph.owl -rw-rw-r-- 1 mark mark 935K Feb 16 09:39 nmdco-classes.json