-
Notifications
You must be signed in to change notification settings - Fork 8
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
max_depth metrics fails to calculate with AllegroGraph backend for large UMLS ontologies #181
Comments
metrics is calculated by owlapi_wrapper for all ontologies except for UMLS. Parsing process falls back to using ruby/sparql code for calculating metrics which is doesn't work well with AllegroGraph. ontologies_linked_data/lib/ontologies_linked_data/models/ontology_submission.rb Lines 453 to 458 in ee0013f
logs state that ontology parsing process for UMLS ontologies skips OWLAPI parse but repository directory contains owlapi.xrdf file which indicates that owlapi wrapper was invoked.
owlapi_wrapper is invoked when new UMLS ontology submissions are created so we should use that metrics instead of the metrics generated by
|
I wrote a couple of simple unit tests in the owlapi_wrapper project in my local dev environment to test metrics generation, e.g.: @Test
public void parse_OntologySNOMEDCT() throws Exception {
ParserInvocation pi = new ParserInvocation("./src/test/resources/repo/input/snomedct",
"./src/test/resources/repo/output/snomedct", "SNOMEDCT.ttl", true);
OntologyParser parser = new OntologyParser(pi);
assertTrue(parser.parse());
} The max depth metric is successfully calculated for both the SNOMEDCT and NCBITAXON TTL files, in 5 and 8 seconds respectively:
It should be relatively straightforward to modify the REST API to first check for the max depth in metrics.csv files. We're already doing this for classes, properties, etc.: ontologies_linked_data/lib/ontologies_linked_data/metrics/metrics.rb Lines 176 to 182 in ee0013f
|
max depth calculated by owlapi_wrapper is off by 1 compared to the max depth calculated by ruby/sparql.
This needs to be looked into |
Max depth calculated by the |
Get max depth from the metrics.csv file which is already generated by owlapi_wrapper when new submission of UMLS ontology is created. Ruby code/sparql for calculating max_depth fails for large UMLS ontologie with AllegroGraph backend Addresses #181
Ontology metrics calculation fail for large UMLS ontologies such as SNOMEDCT and NCBITAXON with AllegroGraph 7.3.1 backend (with patches)
The text was updated successfully, but these errors were encountered: