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

File clean up fix for generic_coverage.py #2223

Merged
merged 2 commits into from
Nov 22, 2023
Merged
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
7 changes: 3 additions & 4 deletions src/scripts/generic_coverage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python

import argparse
import csv
from collections import defaultdict
Expand Down Expand Up @@ -308,7 +309,7 @@ def modify_docker_script(input_file, _output_file):
"--ontology-file",
"cl-full.owl",
"--output-file",
"test.ttl",
"tmp/test.ttl",
"--output-subclasses",
"true",
"false",
Expand All @@ -326,11 +327,9 @@ def modify_docker_script(input_file, _output_file):
run_command(relation_graph_command, working_directory)

cl_base = Graph().parse("../ontology/cl-full.owl", format="xml")
cl_rel = Graph().parse("../ontology/test.ttl", format="ttl")
cl_rel = Graph().parse("../ontology/tmp/test.ttl", format="ttl")
cl = cl_base + cl_rel

cl.serialize("ontology.owl", format="turtle")

ubyndr marked this conversation as resolved.
Show resolved Hide resolved
term_dict = {}
with open(file_name, mode="r", encoding="utf-8-sig", newline="") as csvfile:
reader = csv.DictReader(csvfile)
Expand Down