Skip to content

Commit

Permalink
Merge branch 'base'
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnelson-nist committed Aug 15, 2023
2 parents 4c98803 + 68a1454 commit 9aa9a29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ all: \
touch $@

.pytest.done.log: \
$(profile_ttls) \
exemplars.ttl \
monolithic.ttl \
test_exemplar_coverage.py
source $(top_srcdir)/venv/bin/activate \
&& pytest \
Expand Down
6 changes: 5 additions & 1 deletion tests/test_exemplar_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def test_exemplar_coverage() -> None:
"""
exemplar_graph = Graph()
profile_graph = Graph()
tbox_graph = Graph()
combined_graph = Graph()

for filepath in (top_srcdir / "ontology").iterdir():
Expand All @@ -48,12 +49,15 @@ def test_exemplar_coverage() -> None:
profile_graph.parse(filepath)
logging.debug("len(profile_graph) = %d.", len(profile_graph))

monolithic_filepath = srcdir / "monolithic.ttl"
tbox_graph.parse(monolithic_filepath)

exemplar_filepath = srcdir / "exemplars.ttl"
logging.debug("Loading exemplars graph %r.", exemplar_filepath)
exemplar_graph.parse(exemplar_filepath)
logging.debug("len(exemplar_graph) = %d.", len(exemplar_graph))

combined_graph = exemplar_graph + profile_graph
combined_graph = exemplar_graph + tbox_graph

classes_mapped: Set[URIRef] = set()
classes_with_exemplars: Set[URIRef] = set()
Expand Down

0 comments on commit 9aa9a29

Please sign in to comment.