1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
package iotools;
import java.io.*;
import java.util.*;
import ocgl.*;
import java.net.*;
-----> import org.semanticweb.owl.io.owl_rdf.OWLRDFParser;
import org.semanticweb.owl.io.*;
import org.semanticweb.owl.model.*;
import org.semanticweb.owl.model.*;
------>import org.semanticweb.owl.OWLManager;
------>import org.semanticweb.owl.util.OWLConnection;
/**
* This class offers methods for parsing and saving OWL files.
*
* @author Frédéric Fürst
*/
public abstract class OWLParser{
/** Returns the fragment of an URI, if it exists. Returns the string after the last
* / otherwise. */
private static String getIdentifier(URI u){
String result = u.getFragment();
if(result != null) return result;
else{
return u.getPath().substring(u.getPath().lastIndexOf("/") + 1);
}
} |
Partager