* @return guessed URI of the used ontology
* @throws MatchingException If sth goes wrong
*/
public URI getOntologyURI(String path) throws MatchingException {
if (path.startsWith("#") || (!contains(path,"#")))
throw new MatchingException(path + " doesn't contain the OntologyURL");
try {
return new URI(path.substring(0,path.indexOf("#")));
}
catch(URISyntaxException e) { throw new MatchingException("URI error: Couldn't get ontologyURI of " + path);}
}