⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ontology.html

📁 本体推理工具 共八个例子:从如何建立本体到做一些简单的的本体推理
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DD>This method removes all axioms from an ontology.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error</DL>
</DD>
</DL>
<HR>

<A NAME="suspendNotifications()"><!-- --></A><H3>
suspendNotifications</H3>
<PRE>
void <B>suspendNotifications</B>()</PRE>
<DL>
<DD>Suspends the change notifications for this ontology.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="resumeNotifications()"><!-- --></A><H3>
resumeNotifications</H3>
<PRE>
void <B>resumeNotifications</B>()</PRE>
<DL>
<DD>Resumes the the change notifications for this ontology.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addOntologyListener(org.semanticweb.kaon2.api.OntologyListener)"><!-- --></A><H3>
addOntologyListener</H3>
<PRE>
void <B>addOntologyListener</B>(<A HREF="../../../../org/semanticweb/kaon2/api/OntologyListener.html" title="interface in org.semanticweb.kaon2.api">OntologyListener</A>&nbsp;ontologyListener)</PRE>
<DL>
<DD>Adds a listener to this ontology.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ontologyListener</CODE> - the listener object</DL>
</DD>
</DL>
<HR>

<A NAME="removeOntologyListener(org.semanticweb.kaon2.api.OntologyListener)"><!-- --></A><H3>
removeOntologyListener</H3>
<PRE>
void <B>removeOntologyListener</B>(<A HREF="../../../../org/semanticweb/kaon2/api/OntologyListener.html" title="interface in org.semanticweb.kaon2.api">OntologyListener</A>&nbsp;ontologyListener)</PRE>
<DL>
<DD>Removes a listener from this ontology.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ontologyListener</CODE> - the listener object</DL>
</DD>
</DL>
<HR>

<A NAME="getLockTimeout()"><!-- --></A><H3>
getLockTimeout</H3>
<PRE>
long <B>getLockTimeout</B>()</PRE>
<DL>
<DD>Returns the time how much this ontology waits to acquire locks.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>lockTimeout                      the amount of time in miliseconds to wait for a lock (-1 means it waits forever)</DL>
</DD>
</DL>
<HR>

<A NAME="setLockTimeout(long)"><!-- --></A><H3>
setLockTimeout</H3>
<PRE>
void <B>setLockTimeout</B>(long&nbsp;lockTimeout)</PRE>
<DL>
<DD>Determines the time in miliseconds how much one should wait for acquiring locks.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lockTimeout</CODE> - the amount of time in miliseconds to wait for a lock (-1 means wait forever)</DL>
</DD>
</DL>
<HR>

<A NAME="getDuplicateAxiomsThrowException()"><!-- --></A><H3>
getDuplicateAxiomsThrowException</H3>
<PRE>
boolean <B>getDuplicateAxiomsThrowException</B>()
                                         throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Returns <code>true</code> if duplicate additions of axioms to this ontology result in an exception. By default this property is always <code>true</code>.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if duplicate additions of axioms result in an exception
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error (e.g. if value does not exist)</DL>
</DD>
</DL>
<HR>

<A NAME="setDuplicateAxiomsThrowException(boolean)"><!-- --></A><H3>
setDuplicateAxiomsThrowException</H3>
<PRE>
void <B>setDuplicateAxiomsThrowException</B>(boolean&nbsp;throwExceptionOnDuplicates)
                                      throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Determines if duplicate additions of axioms to this ontology should result in an exception.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>throwExceptionOnDuplicates</CODE> - <code>true</code> if duplicate additions of axioms should result in an exception
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error (e.g. if value does not exist)</DL>
</DD>
</DL>
<HR>

<A NAME="containsAxiom(org.semanticweb.kaon2.api.Axiom, boolean)"><!-- --></A><H3>
containsAxiom</H3>
<PRE>
boolean <B>containsAxiom</B>(<A HREF="../../../../org/semanticweb/kaon2/api/Axiom.html" title="interface in org.semanticweb.kaon2.api">Axiom</A>&nbsp;axiom,
                      boolean&nbsp;checkImportedOntologies)
                      throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Checks whether given axiom is contained in this ontology.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axiom</CODE> - the axiom to be checked<DD><CODE>checkImportedOntologies</CODE> - if <code>true</code>, then imported ontologies are checked for the axiom as well
<DT><B>Returns:</B><DD><code>true</code> if the ontology contains the axiom
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error</DL>
</DD>
</DL>
<HR>

<A NAME="getDeclaringOntology(org.semanticweb.kaon2.api.Axiom)"><!-- --></A><H3>
getDeclaringOntology</H3>
<PRE>
<A HREF="../../../../org/semanticweb/kaon2/api/Ontology.html" title="interface in org.semanticweb.kaon2.api">Ontology</A> <B>getDeclaringOntology</B>(<A HREF="../../../../org/semanticweb/kaon2/api/Axiom.html" title="interface in org.semanticweb.kaon2.api">Axiom</A>&nbsp;axiom)
                              throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Returns the ontology where the given axiom is declared. This method searches this and all imported ontologies and returnes an ontology which contains the axiom. If no ontology contains the axiom, <code>null</code> is retruned. If more then one ontology contains the axiom, one of them is chosen non-deterministically.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axiom</CODE> - the axiom whose declaring ontology should be determined
<DT><B>Returns:</B><DD>the ontology containing the axiom
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error</DL>
</DD>
</DL>
<HR>

<A NAME="containsEntity(org.semanticweb.kaon2.api.Entity, boolean)"><!-- --></A><H3>
containsEntity</H3>
<PRE>
boolean <B>containsEntity</B>(<A HREF="../../../../org/semanticweb/kaon2/api/Entity.html" title="interface in org.semanticweb.kaon2.api">Entity</A>&nbsp;entity,
                       boolean&nbsp;checkImportedOntologies)
                       throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Checks whether given entity is contained in this ontology. Notice that an entity is contained in an ontology as soon as some axiom uses it, i.e. there is no notion of "creating" an entity in an ontology.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>entity</CODE> - the entity to be checked<DD><CODE>checkImportedOntologies</CODE> - if <code>true</code>, then imported ontologies are checked for the entity as well
<DT><B>Returns:</B><DD><code>true</code> if the ontology contains the entity
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error</DL>
</DD>
</DL>
<HR>

<A NAME="createAxiomRequest()"><!-- --></A><H3>
createAxiomRequest</H3>
<PRE>
<A HREF="../../../../org/semanticweb/kaon2/api/Request.html" title="interface in org.semanticweb.kaon2.api">Request</A>&lt;<A HREF="../../../../org/semanticweb/kaon2/api/Axiom.html" title="interface in org.semanticweb.kaon2.api">Axiom</A>&gt; <B>createAxiomRequest</B>()</PRE>
<DL>
<DD>Returns an object that can be used to retrieve axioms.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>an object for retrieving axioms</DL>
</DD>
</DL>
<HR>

<A NAME="createAxiomRequest(java.lang.Class)"><!-- --></A><H3>
createAxiomRequest</H3>
<PRE>
&lt;E extends <A HREF="../../../../org/semanticweb/kaon2/api/Axiom.html" title="interface in org.semanticweb.kaon2.api">Axiom</A>&gt; <A HREF="../../../../org/semanticweb/kaon2/api/Request.html" title="interface in org.semanticweb.kaon2.api">Request</A>&lt;E&gt; <B>createAxiomRequest</B>(java.lang.Class&lt;E&gt;&nbsp;axiomType)</PRE>
<DL>
<DD>Returns an object that can be used to retrieve axioms of given type.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axiomType</CODE> - the type of the axioms to be retrieved
<DT><B>Returns:</B><DD>an object for retrieving axioms of given type</DL>
</DD>
</DL>
<HR>

<A NAME="createEntityRequest()"><!-- --></A><H3>
createEntityRequest</H3>
<PRE>
<A HREF="../../../../org/semanticweb/kaon2/api/Request.html" title="interface in org.semanticweb.kaon2.api">Request</A>&lt;<A HREF="../../../../org/semanticweb/kaon2/api/Entity.html" title="interface in org.semanticweb.kaon2.api">Entity</A>&gt; <B>createEntityRequest</B>()</PRE>
<DL>
<DD>Returns an object that can be used to retrieve existing entities.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>an object for retrieving entities</DL>
</DD>
</DL>
<HR>

<A NAME="createEntityRequest(java.lang.Class)"><!-- --></A><H3>
createEntityRequest</H3>
<PRE>
&lt;E extends <A HREF="../../../../org/semanticweb/kaon2/api/Entity.html" title="interface in org.semanticweb.kaon2.api">Entity</A>&gt; <A HREF="../../../../org/semanticweb/kaon2/api/Request.html" title="interface in org.semanticweb.kaon2.api">Request</A>&lt;E&gt; <B>createEntityRequest</B>(java.lang.Class&lt;E&gt;&nbsp;entityType)</PRE>
<DL>
<DD>Returns an object that can be used to retrieve existing entities of given type.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>entityType</CODE> - the type of the entity
<DT><B>Returns:</B><DD>an object for retrieving entities of given type</DL>
</DD>
</DL>
<HR>

<A NAME="getOntologyFormatting()"><!-- --></A><H3>
getOntologyFormatting</H3>
<PRE>
<A HREF="../../../../org/semanticweb/kaon2/api/formatting/OntologyFormatting.html" title="interface in org.semanticweb.kaon2.api.formatting">OntologyFormatting</A> <B>getOntologyFormatting</B>()
                                         throws <A HREF="../../../../org/semanti

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -