Assuming I am given a URI, and I want to find the file extension of the file that is returned, what do I have to do in Java.
For example the file at http://www.daml.org/2001/08/baseball/baseball-ont is http://www.daml.org/2001/08/baseball/baseball-ont.owl
When I do
URI uri = new URI(address);
URL url = uri.toURL();
String file = url.getFile();
System.out.println(file);
I am not able to see the full file name with .owl
extension, just /2001/08/baseball/baseball-ont
how do I get the file extension as well.
``