QuickTest.java revision 29
package examples;
/**
* This class is intended for the developers of the API to perform quick tests.
* Do use this class for whatever you intend to, but do never ask for support :-)
*
* @author Michael D�nzer, University of Zurich
* @date 16.01.2007
*/
public class QuickTest {
private OWLKnowledgeBase kb;
}
public QuickTest() {
}
private void testImplementation() {
try {
//service = kb.readService("http://www.mindswap.org/2004/owl-s/1.1/BabelFishTranslator.owl");
//service = kb.readService("http://www.ifi.unizh.ch/ddis/ont/next/kb/ProcessLibrary/processes/Add.owl");
// service = kb.readService("http://www.dfki.de/scallops/health-scallops/MedicalFlightCompanyServices.owl");
// service = kb.readService("http://www.dfki.de/scallops/health-scallops/NonMedicalFlightCompanyServices.owl");
// service = kb.readService("http://www.dfki.de/scallops/health-scallops/MedicalTransportCompanyServices.owl");
// service = kb.readService("http://www.dfki.de/scallops/health-scallops/NonMedicalTransportCompanyServices.owl");
// service = kb.readService("http://www.dfki.de/scallops/health-scallops/EMAServices.owl");
// kb.read("http://www.dfki.de/scallops/health-scallops/EMAOntology.owl");
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void removeTest() {
try {
// service = kb.readService("http://www.ifi.unizh.ch/ddis/ont/next/kb/ProcessLibrary/processes/Add.owl");
WSDLAtomicGrounding ground = (WSDLAtomicGrounding) ((AtomicProcess) service.getProcess()).getGrounding();
} catch (Exception e) {
e.printStackTrace();
}
}
private void languageTest() {
try {
service = kb.readService("http://www.ifi.unizh.ch/ddis/ont/next/kb/ProcessLibrary/AtomicProcesses/Add.owl");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (URISyntaxException e) {
e.printStackTrace();
}
}
private void pelletErrorTest() {
try {
service = kb.readService("http://www.ifi.unizh.ch/ddis/ont/next/ProcessSpace/Projectgigimgii.owl#gigimgii");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (URISyntaxException e) {
e.printStackTrace();
}
}
}