亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? example02.java

?? 本體推理工具 共八個例子:從如何建立本體到做一些簡單的的本體推理
?? JAVA
字號:
package ex02;

import java.util.*;
import java.io.*;

import org.semanticweb.kaon2.api.*;
import org.semanticweb.kaon2.api.owl.elements.*;
import org.semanticweb.kaon2.api.owl.axioms.*;
import org.semanticweb.kaon2.api.formatting.*;

/**
 * This example demonstrates how to create and save an ontology. Please make sure
 * you understand Example 1 before you try to understand this example.
 * To understand this example, it is necessary to understand the syntax of OWL language.
 * A good source to learn OWL is the OWL Guide, available at http://www.w3.org/TR/owl-guide/.
 */
public class Example02 {
    public static void main(String[] args) throws Exception {
        // To create an ontology, we again start by creating a connection.
        // We again need to register a resolver that will provide a physical URI
        // for the ontology. In this example, the physical URI is relative to the current directory.
        KAON2Connection connection=KAON2Manager.newConnection();
        DefaultOntologyResolver resolver=new DefaultOntologyResolver();
        resolver.registerReplacement("http://kaon2.semanticweb.org/example02","file:example02.xml");
        connection.setOntologyResolver(resolver);

        // We create an ontology by specifying its logical URI. The resolver provides the physical URI.
        Ontology ontology=connection.createOntology("http://kaon2.semanticweb.org/example02",new HashMap<String,Object>());

        // An ontology can be viewed as a set of axioms. In fact, axioms are the only
        // types of objects that can be added or removed to an ontology. The types
        // of axioms supported by the API is determined by the OWL language.
        // We now create an axiom that states that '#cat' is a type of '#animal'.
        // Axioms are created by the factory, which can be obtained from KAON2Manager.
        OWLClass cat=KAON2Manager.factory().owlClass("http://kaon2.semanticweb.org/example02#cat");
        OWLClass animal=KAON2Manager.factory().owlClass("http://kaon2.semanticweb.org/example02#animal");
        SubClassOf catIsAnimal=KAON2Manager.factory().subClassOf(cat,animal);

        // Often one needs to perform a series of operations on an ontology. Hence, KAON2 supports
        // bulk updates: instead of adding axioms one-by-one, it is possible to construct a list of
        // changes, and send all of them to the ontology for processing. This may seem as an overkill
        // in small examples, such as this one, but has proven indispensable in larger applications.
        // Hence, we now construct a list of OntologyChangeEvent objects. Each OntologyChangeEvent
        // contains an axioms, and specifies whether the axiom should be added or removed from an ontology.
        List<OntologyChangeEvent> changes=new ArrayList<OntologyChangeEvent>();
        changes.add(new OntologyChangeEvent(catIsAnimal,OntologyChangeEvent.ChangeType.ADD));

        // We not apply the changes to the ontology. Notice that the following method call
        // will work, even though classes '#cat' and '#animal' are not a part of the ontology.
        // In fact, in KAON2 API, you don't need to 'declare' entities in the ontology before you use
        // them. On the contrary, an entity becomes a part of the ontology as soon as it is referenced
        // by some axiom. When the last axiom referencing an entity is removed from an ontology,
        // the entity becomes no longer a part of the ontology. This may seem counterintuitive at first:
        // it is a common practice to declare stuff before you use it. However, in the context of Semantic
        // Web, I found this difficult to enforce, especially due to ontology inclusion facility.
        // Hence, KAON2 does not require you to declare stuff before you use it, but leaves this decision
        // to the application.
        ontology.applyChanges(changes);

        // Typing in namespaces is tedious; for this, you can use the Namespaces object. This object
        // maintains a list of (prefix, namespace URI) pairs, and is used below to save me from typing too much.
        Namespaces namespaces=new Namespaces();
        namespaces.registerPrefix("example02","http://kaon2.semanticweb.org/example02#");

        // Creating axioms though object structures might be difficult. Hence, KAON2 has its internal
        // LISP-like syntax for axioms. This syntax is not yet documented, but you may take a look at
        // org.semanticweb.kaon2.memoryapi.test.OWL2XMLExporterTest for some hints.
        // The following axiom says that '#dog' is also a type of animal.
        SubClassOf dogIsAnimal=(SubClassOf)KAON2Manager.factory().axiom("[subClassOf example02:dog example02:animal]",namespaces);

        // We now add this axiom in the same way as before.
        changes.clear();
        changes.add(new OntologyChangeEvent(dogIsAnimal,OntologyChangeEvent.ChangeType.ADD));
        ontology.applyChanges(changes);

        // We now save the ontology by calling the serializer. Observe that the
        // location where the ontology is stored does not need to be the same
        // as the physical URI. This is deliberate, as this allows you to implement
        // 'Save As' operation. The second parameter defines the character encoding used
        // in the XML file. we save the ontology into 'c:\temp\example02.xml'.
        System.out.println("The ontology will be saved into 'c:\\temp\\example02.xml'.");
        System.out.println("Please ensure that 'c:\\temp' directory exists.");
        ontology.saveOntology(OntologyFileFormat.OWL_XML,new File("c:\\temp\\example02.xml"),"ISO-8859-1");

        // Don't forget to close the connection!
        connection.close();

        System.out.println("The ontology was saved successfully into 'c:\\temp\\example02.xml'.");
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
狠狠色狠狠色合久久伊人| 91小视频在线| 一级中文字幕一区二区| 久久先锋影音av鲁色资源网| 91久久久免费一区二区| 国产在线不卡一卡二卡三卡四卡| 中文久久乱码一区二区| 91麻豆精品国产91久久久久久 | 日韩视频在线你懂得| 国产成a人亚洲精品| 日本网站在线观看一区二区三区| 中文字幕一区二区三区四区 | 国产成人99久久亚洲综合精品| 亚洲成人免费影院| 亚洲欧洲成人av每日更新| 精品国产区一区| 5858s免费视频成人| 91老司机福利 在线| 粉嫩欧美一区二区三区高清影视 | 成人网在线播放| 日本在线播放一区二区三区| 一区二区三区国产| 日韩精品成人一区二区在线| 亚洲日本成人在线观看| 国产欧美一区二区精品忘忧草| 日韩三级伦理片妻子的秘密按摩| 91久久奴性调教| 色偷偷久久一区二区三区| 成人激情黄色小说| 国产.精品.日韩.另类.中文.在线.播放 | 成人在线一区二区三区| 国产精一区二区三区| 开心九九激情九九欧美日韩精美视频电影| 午夜视频一区二区| 性做久久久久久| 五月婷婷久久综合| 亚洲成a人v欧美综合天堂| 亚洲精品久久嫩草网站秘色| 亚洲精品写真福利| 亚洲精品va在线观看| 亚洲自拍与偷拍| 亚洲午夜久久久久| 日日骚欧美日韩| 午夜精品福利一区二区三区蜜桃| 亚洲午夜激情av| 视频一区在线视频| 免费在线观看不卡| 国产一区二区中文字幕| 国产高清精品久久久久| 国产成人自拍高清视频在线免费播放| 国产精品自拍网站| 99久久精品久久久久久清纯| 99re成人精品视频| 欧美撒尿777hd撒尿| 91麻豆精品国产91久久久更新时间 | 亚洲精品一区二区三区精华液| 日韩免费视频一区| 国产亲近乱来精品视频| 中文字幕一区二区三区不卡在线| 亚洲欧美日韩成人高清在线一区| 亚洲黄色尤物视频| 日本人妖一区二区| 国产激情一区二区三区桃花岛亚洲 | 亚洲国产日韩精品| 日韩不卡在线观看日韩不卡视频| 精品一区二区三区蜜桃| 国产一区二区三区不卡在线观看 | 色综合久久久久久久久久久| 欧美三级视频在线| 日韩午夜在线影院| 国产精品进线69影院| 一区二区三区美女视频| 日本不卡一二三区黄网| 国产麻豆成人传媒免费观看| av亚洲精华国产精华| 精品视频在线视频| 2023国产一二三区日本精品2022| 国产精品国产三级国产普通话99| 亚洲一区二区三区在线| 久久精品av麻豆的观看方式| 成人av动漫在线| 91精品在线观看入口| 中文字幕欧美日韩一区| 亚洲国产一区二区a毛片| 国产精品综合久久| 欧美私人免费视频| 国产午夜精品在线观看| 夜夜嗨av一区二区三区中文字幕| 久久99精品国产麻豆不卡| 91色综合久久久久婷婷| 欧美电影免费提供在线观看| 国产精品家庭影院| 激情丁香综合五月| 欧美日韩日日骚| 国产精品国产成人国产三级| 日本aⅴ免费视频一区二区三区 | 免费人成在线不卡| a4yy欧美一区二区三区| 日韩欧美中文一区二区| 亚洲男人的天堂在线观看| 国产一区二区按摩在线观看| 在线不卡免费av| 亚洲激情综合网| 成人aa视频在线观看| 精品99一区二区三区| 日韩精品高清不卡| 欧美午夜寂寞影院| 中文字幕在线一区免费| 国产在线播放一区| 日韩一区二区影院| 亚洲成人资源在线| 日本韩国精品在线| 亚洲欧洲日韩女同| 国产成人在线视频网址| 欧美mv日韩mv国产网站app| 婷婷中文字幕综合| 在线亚洲人成电影网站色www| 国产精品少妇自拍| 国产一区二区三区黄视频 | 国产精品理伦片| 国产一区在线精品| 欧美成人vps| 美女视频黄 久久| 欧美放荡的少妇| 日韩精品91亚洲二区在线观看| 欧美伊人精品成人久久综合97| 最好看的中文字幕久久| 不卡的av网站| 国产精品久久久久久久蜜臀| 岛国av在线一区| 日本一区二区三区国色天香 | 美日韩黄色大片| 日韩一区二区三区电影| 日韩精品成人一区二区三区| 51精品久久久久久久蜜臀| 五月天精品一区二区三区| 欧美日韩在线播放三区四区| 一区二区三区国产| 欧美日韩激情一区二区三区| 视频一区欧美日韩| 91精品国产91热久久久做人人| 天堂一区二区在线免费观看| 正在播放一区二区| 久久97超碰色| 国产欧美一区视频| 91片在线免费观看| 一区二区日韩av| 欧美人体做爰大胆视频| 蜜桃精品视频在线| 国产女人水真多18毛片18精品视频| 国产白丝精品91爽爽久久| 国产欧美一区视频| 色综合天天视频在线观看| 亚洲国产美女搞黄色| 337p亚洲精品色噜噜狠狠| 精品中文字幕一区二区| 国产欧美日韩激情| 色综合久久88色综合天天| 日韩国产欧美一区二区三区| 亚洲精品在线免费播放| 成人在线视频一区| 亚洲在线视频免费观看| 日韩午夜av电影| 成人中文字幕合集| 亚洲伊人色欲综合网| 日韩精品一区在线观看| 不卡av免费在线观看| 亚洲成人中文在线| 久久久久国产免费免费| 欧洲av一区二区嗯嗯嗯啊| 人妖欧美一区二区| 国产精品网曝门| 欧美日本精品一区二区三区| 国产高清在线精品| 性久久久久久久久久久久| 久久久久久久久久久久久女国产乱| 97超碰欧美中文字幕| 日本不卡免费在线视频| 国产精品久久久久久久久久久免费看| 欧美片在线播放| 成人免费不卡视频| 蜜臀a∨国产成人精品| 最近日韩中文字幕| 精品奇米国产一区二区三区| 97精品国产露脸对白| 精品一区二区在线看| 亚洲欧美色综合| 久久久久久久久久美女| 欧美日本在线看| 99国产精品久久久| 国产一区二三区好的| 天堂蜜桃91精品| 亚洲欧洲精品一区二区精品久久久 | 91精品国产欧美一区二区| 99riav一区二区三区| 国产在线一区观看| 午夜精品久久久久影视| 国产精品久久久久久久久动漫| 精品久久五月天| 欧美日韩国产综合一区二区|