QuickTest.java revision 24
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březinaimport org.mindswap.owls.grounding.WSDLAtomicGrounding;
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březinaimport org.mindswap.owls.process.AtomicProcess;
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina * This class is intended for the developers of the API to perform quick tests.
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina * Do use this class for whatever you intend to, but do never ask for support :-)
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina * @author Michael D�nzer, University of Zurich
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina * @date 16.01.2007
769347ad4d35d43488eb98f980143495b0db415dStef Walter private void removeTest() {
769347ad4d35d43488eb98f980143495b0db415dStef Walter kb.getReader().getCache().setLocalCacheDirectory("E://Workspaces//NExT//Ontologies//ont_cache");
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina service = kb.readService("http://www.mindswap.org/2004/owl-s/1.1/BabelFishTranslator.owl");
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina// service = kb.readService("http://www.ifi.unizh.ch/ddis/ont/next/kb/ProcessLibrary/processes/Add.owl");
769347ad4d35d43488eb98f980143495b0db415dStef Walter Input in = service.getProcess().getInputs().inputAt(0);
769347ad4d35d43488eb98f980143495b0db415dStef Walter Output out = service.getProcess().getOutputs().outputAt(0);
769347ad4d35d43488eb98f980143495b0db415dStef Walter WSDLAtomicGrounding ground = (WSDLAtomicGrounding) ((AtomicProcess) service.getProcess()).getGrounding();
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina private void languageTest() {
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina kb.getReader().getCache().setLocalCacheDirectory("E://Workspaces//NExT//Ontologies//ont_cache");
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov service = kb.readService("http://www.ifi.unizh.ch/ddis/ont/next/kb/ProcessLibrary/AtomicProcesses/Add.owl");
83a79d93035c2d75a1941f3b54426119174044a0Pavel Březina List dataProps = kb.getNonLanguageDataProperties();
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina List objProps = kb.getNonLanguageObjectProperties();
65976ea5e9767bfaced81dfb97dc87d59f50b57eSimo Sorce System.out.println(((OWLClass) classes.get(i)).getURI());
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina System.out.println("--------------------------------------");
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina System.out.println("--------------------------------------");
7c9fe57ad82747a32721ca0a08c5569282f3e0c4Pavel Březina private void pelletErrorTest() {
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3Pavel Březina kb.getReader().getCache().setLocalCacheDirectory("E://Workspaces//NExT//Ontologies//ont_cache");