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

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

Closed
turbomam opened this issue Feb 16, 2024 · 3 comments
Closed

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

turbomam opened this issue Feb 16, 2024 · 3 comments
Assignees

Comments

@turbomam
Copy link
Member

turbomam commented Feb 16, 2024

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 turbomam self-assigned this Feb 16, 2024
@turbomam
Copy link
Member Author

$(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

  • switching to relation-graph-cli, version: 2.3.2
  • using the --output-file option as the sole output
  • merging that input instead of $(ONT)-nonredundant.ttl

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
Copy link
Member Author

turbomam commented Feb 16, 2024

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant