<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永久综合在线观看尤物| 尤物视频在线免费观看| 在线视频免费观看www动漫| 污视频网站免费在线观看| 国产亚洲人成无码网在线观看| 91高清免费国产自产| 国产成人亚洲精品蜜芽影院| 久久亚洲精品成人综合| 免费观看大片毛片| 一级毛片在线观看免费| 国产精品亚洲а∨无码播放麻豆 | 日韩免费观看的一级毛片| 久久久受www免费人成| 亚洲av无码不卡久久| 国产亚洲精品a在线观看| 18勿入网站免费永久| 日韩精品视频在线观看免费| 亚洲精品动漫在线| 国产成人综合亚洲AV第一页| 欧美日韩国产免费一区二区三区 | 国产va在线观看免费| 亚洲国产精品成人综合色在线| 久久亚洲精品成人综合| 亚洲AV无码之日韩精品| 亚洲中文无码永久免费 | 国产zzjjzzjj视频全免费| 99在线视频免费| 不卡视频免费在线观看| MM1313亚洲国产精品| 亚洲人成综合在线播放| 国产AV无码专区亚洲AVJULIA| 免费一级黄色毛片| 成人免费777777| 精品成在人线AV无码免费看 | 一级特级女人18毛片免费视频| 亚洲an日韩专区在线| 亚洲天堂男人天堂| 亚洲综合网站色欲色欲| 婷婷综合缴情亚洲狠狠尤物| 夫妻免费无码V看片| 天天影视色香欲综合免费|