/** * Get the URI for the Knowtator XML file that should be loaded * @throws URISyntaxException */ protected URI getKnowtatorURI(JCas jCas) { File textURI = new File(this.getTextURI(jCas)); String filename = textURI.getName().replace(".txt", ""); File xmlPath = new File(textURI.getParentFile().getParentFile().getParentFile().getParentFile().getParentFile(), "by-document/" + filename + "/" + filename + ".umls.knowtator.xml"); return UriUtils.create("file:" + xmlPath.getAbsolutePath()); }
/** * Get the URI for the Knowtator XML file that should be loaded * @throws URISyntaxException */ protected URI getKnowtatorURI(JCas jCas) { File textURI = new File(this.getTextURI(jCas)); String filename = textURI.getName().replace(".txt", ""); File xmlPath = new File(textURI.getParentFile().getParentFile().getParentFile().getParentFile().getParentFile(), "by-document/" + filename + "/" + filename + ".umls.knowtator.xml"); return UriUtils.create("file:" + xmlPath.getAbsolutePath()); }