<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    一路拾遺
    Collect By Finding All The Way ......
    posts - 81,comments - 41,trackbacks - 0
    import java.net.URI;

    import org.mindswap.owl.OWLFactory;
    import org.mindswap.owl.OWLKnowledgeBase;
    import org.mindswap.owl.OWLOntology;
    import org.mindswap.owls.OWLSFactory;
    import org.mindswap.owls.process.Process;
    import org.mindswap.owls.process.execution.ProcessExecutionEngine;
    import org.mindswap.owls.service.Service;
    import org.mindswap.query.ValueMap;

    public class CallService {

        
    public static void main(String[] args) throws Exception {
            
             
    // create a URI for the service (note that this is a 0.9 version file)   
            URI uri = new URI("http://www.mindswap.org/2004/owl-s/1.1/Dictionary.owl");

            
    // create a KB  
            OWLKnowledgeBase kb = OWLFactory.createKB();
            
            
    // set the Reasoner
            kb.setReasoner("Pellet");

            
    // create a generic reader and a 1.0 writer
            OWLOntology ont = kb.read(uri);
        
            
    // get the service
            Service service = ont.getService();
            
            
    // get the process of the service
            Process process = service.getProcess();

            
    // create an execution engine 
            ProcessExecutionEngine exec = OWLSFactory.createExecutionEngine(); 

            
    // create an empty value map
            ValueMap values = new ValueMap();
            
            
    // set the value of input parameter
            values.setDataValue(process.getInput("InputString"), "man");    
            
    // execute the process with the given input bindings
         
            values 
    = exec.execute(process, values);
        
            
    // get the output value as a string
            String outValue = values.getStringValue(process.getOutput());
            
            
    // display the result
            System.out.println("Output = " + outValue);
        }

    }

    posted on 2008-08-02 19:57 胖胖泡泡 閱讀(464) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     
    主站蜘蛛池模板: 精品久久久久成人码免费动漫 | 两性色午夜视频免费网| 永久免费AV无码网站在线观看| 亚洲视频在线观看免费视频| 黄色网站软件app在线观看免费| 亚洲日韩在线中文字幕第一页| 美女被吸屁股免费网站| 又爽又高潮的BB视频免费看| 真正全免费视频a毛片| 国产福利免费观看| 无忧传媒视频免费观看入口| 久久精品夜色噜噜亚洲A∨| 国产精品免费视频观看拍拍| 国产成人精品日本亚洲专区| eeuss草民免费| 亚洲国产无套无码av电影| 久久国产精品一区免费下载| 亚洲黄色三级网站| 91在线视频免费看| 在线观看亚洲专区| 浮力影院亚洲国产第一页| 很黄很污的网站免费| 亚洲精品中文字幕麻豆| 日韩精品无码区免费专区 | jjzz亚洲亚洲女人| 国产精品69白浆在线观看免费| 亚洲国产高清视频在线观看| 成年美女黄网站18禁免费| 久久精品视频亚洲| 99视频全部免费精品全部四虎 | 又硬又粗又长又爽免费看 | 一级毛片免费不卡直观看| 亚洲AV中文无码乱人伦下载 | 免费一级特黄特色大片| 亚洲精品无码MV在线观看 | 久久不见久久见中文字幕免费| 国产成人精品亚洲一区| 亚洲精品国产精品乱码在线观看| 57pao一国产成永久免费| 久久亚洲国产中v天仙www| 91麻豆最新在线人成免费观看 |