?? kaon2connection.html
字號:
<BR>
Returns the set of logical URIs of all ontologies open by the connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Connection.html#getParameter(java.lang.String)">getParameter</A></B>(java.lang.String parameterName)</CODE>
<BR>
Returns the value of the parameter with the given name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Connection.html#isOpen()">isOpen</A></B>()</CODE>
<BR>
Returns <code>true</code> if this connection is open.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../org/semanticweb/kaon2/api/Ontology.html" title="interface in org.semanticweb.kaon2.api">Ontology</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Connection.html#openOntology(java.lang.String, java.util.Map)">openOntology</A></B>(java.lang.String ontologyURI,
java.util.Map<java.lang.String,java.lang.Object> parameters)</CODE>
<BR>
Opens an ontology with given ontology URI.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../org/semanticweb/kaon2/api/Ontology.html" title="interface in org.semanticweb.kaon2.api">Ontology</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Connection.html#openOntology(java.lang.String, java.util.Map, org.semanticweb.kaon2.api.ProgressListener)">openOntology</A></B>(java.lang.String ontologyURI,
java.util.Map<java.lang.String,java.lang.Object> parameters,
<A HREF="../../../../org/semanticweb/kaon2/api/ProgressListener.html" title="interface in org.semanticweb.kaon2.api">ProgressListener</A> progressListener)</CODE>
<BR>
Opens an ontology with given ontology URI.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Connection.html#setOntologyResolver(org.semanticweb.kaon2.api.OntologyResolver)">setOntologyResolver</A></B>(<A HREF="../../../../org/semanticweb/kaon2/api/OntologyResolver.html" title="interface in org.semanticweb.kaon2.api">OntologyResolver</A> ontologyResolver)</CODE>
<BR>
Registers the ontology resolver into this connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/semanticweb/kaon2/api/KAON2Connection.html#setParameter(java.lang.String, java.lang.Object)">setParameter</A></B>(java.lang.String parameterName,
java.lang.Object parameterValue)</CODE>
<BR>
Sets the connection property with the given name.</TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="LOAD_FROM_INPUT_STREAM"><!-- --></A><H3>
LOAD_FROM_INPUT_STREAM</H3>
<PRE>
static final java.lang.String <B>LOAD_FROM_INPUT_STREAM</B></PRE>
<DL>
<DD>This property can be used in the map of parameters to the openOntology() call to specify that the contents of the ontology should be loaded from a stream.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.semanticweb.kaon2.api.KAON2Connection.LOAD_FROM_INPUT_STREAM">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="LOAD_FROM_READER"><!-- --></A><H3>
LOAD_FROM_READER</H3>
<PRE>
static final java.lang.String <B>LOAD_FROM_READER</B></PRE>
<DL>
<DD>This property can be used in the map of parameters to the openOntology() call to specify that the contents of the ontology should be loaded from a read.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.semanticweb.kaon2.api.KAON2Connection.LOAD_FROM_READER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="USE_PROXY"><!-- --></A><H3>
USE_PROXY</H3>
<PRE>
static final java.lang.String <B>USE_PROXY</B></PRE>
<DL>
<DD>This property can be used in the map of parameters to the openOntology() call to specify that the ontology should be accessed through a proxy.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.semanticweb.kaon2.api.KAON2Connection.USE_PROXY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="USE_SIMPLIFIED_RDF_PARSING"><!-- --></A><H3>
USE_SIMPLIFIED_RDF_PARSING</H3>
<PRE>
static final java.lang.String <B>USE_SIMPLIFIED_RDF_PARSING</B></PRE>
<DL>
<DD>This property can be set to Boolean.TRUE in the map of parameters to the openOntology() call to specify that the simplified, but incomplete, algorithms should be used when reading RDF files.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.semanticweb.kaon2.api.KAON2Connection.USE_SIMPLIFIED_RDF_PARSING">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="USE_FORMAT_NAME"><!-- --></A><H3>
USE_FORMAT_NAME</H3>
<PRE>
static final java.lang.String <B>USE_FORMAT_NAME</B></PRE>
<DL>
<DD>This property can be used in the map of parameters to the openOntology() call to specify the format of the file being opened.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.semanticweb.kaon2.api.KAON2Connection.USE_FORMAT_NAME">Constant Field Values</A></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="accept(org.semanticweb.kaon2.api.KAON2Visitor)"><!-- --></A><H3>
accept</H3>
<PRE>
java.lang.Object <B>accept</B>(<A HREF="../../../../org/semanticweb/kaon2/api/KAON2Visitor.html" title="interface in org.semanticweb.kaon2.api">KAON2Visitor</A> visitor)</PRE>
<DL>
<DD>Accepts a visitor for this object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>visitor</CODE> - the visitor for this object
<DT><B>Returns:</B><DD>the return value of the visitor (can be <code>null</code>)</DL>
</DD>
</DL>
<HR>
<A NAME="setOntologyResolver(org.semanticweb.kaon2.api.OntologyResolver)"><!-- --></A><H3>
setOntologyResolver</H3>
<PRE>
void <B>setOntologyResolver</B>(<A HREF="../../../../org/semanticweb/kaon2/api/OntologyResolver.html" title="interface in org.semanticweb.kaon2.api">OntologyResolver</A> ontologyResolver)</PRE>
<DL>
<DD>Registers the ontology resolver into this connection.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ontologyResolver</CODE> - the ontology resolver</DL>
</DD>
</DL>
<HR>
<A NAME="getOntologyResolver()"><!-- --></A><H3>
getOntologyResolver</H3>
<PRE>
<A HREF="../../../../org/semanticweb/kaon2/api/OntologyResolver.html" title="interface in org.semanticweb.kaon2.api">OntologyResolver</A> <B>getOntologyResolver</B>()</PRE>
<DL>
<DD>Returns the ontology resolver used by this connection.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the ontology resolved that this connection uses</DL>
</DD>
</DL>
<HR>
<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
void <B>close</B>()
throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Closes this connection. All child connections created by this connection are also closed.
<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="isOpen()"><!-- --></A><H3>
isOpen</H3>
<PRE>
boolean <B>isOpen</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 this connection is open.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if the connection is open
<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="setParameter(java.lang.String, java.lang.Object)"><!-- --></A><H3>
setParameter</H3>
<PRE>
void <B>setParameter</B>(java.lang.String parameterName,
java.lang.Object parameterValue)
throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Sets the connection property with the given name.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parameterName</CODE> - the name of the parameter<DD><CODE>parameterValue</CODE> - the value of the parameter
<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 parameter name is incorrect)</DL>
</DD>
</DL>
<HR>
<A NAME="getParameter(java.lang.String)"><!-- --></A><H3>
getParameter</H3>
<PRE>
java.lang.Object <B>getParameter</B>(java.lang.String parameterName)
throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Returns the value of the parameter with the given name.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parameterName</CODE> - the name of the parameter
<DT><B>Returns:</B><DD>the value of the parameter
<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 parameter name is incorrect)</DL>
</DD>
</DL>
<HR>
<A NAME="getOntology(java.lang.String)"><!-- --></A><H3>
getOntology</H3>
<PRE>
<A HREF="../../../../org/semanticweb/kaon2/api/Ontology.html" title="interface in org.semanticweb.kaon2.api">Ontology</A> <B>getOntology</B>(java.lang.String ontologyURI)
throws <A HREF="../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Returns an ontology with a given ontology URI, provided that it was opened or created before.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ontologyURI</CODE> - the ontology URI of the ontology
<DT><B>Returns:</B><DD>the ontology, or <code>null</code> if the onotlogy was not opened or created
<DT><B>Throws:</B>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -